Changeset 11248 for trunk/psLib/src/imageops/psImageStructManip.h
- Timestamp:
- Jan 23, 2007, 12:47:23 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStructManip.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStructManip.h
r6874 r11248 1 1 /** @file psImageStructManip.h 2 2 * 3 * @brief Contains basic image structure manipulation operations, as specified 4 * in the PSLIB SDRS sections "Image Structure Manipulation". 5 * 6 * @ingroup Image 3 * @brief basic image structure manipulation operations 7 4 * 8 5 * @author Robert DeSonia, MHPCC 9 6 * 10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-04-17 22:00:03 $ 12 * 7 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-01-23 22:47:23 $ 13 9 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 10 */ … … 17 13 #define PSIMAGE_STRUCT_MANIP_H 18 14 15 /// @addtogroup ImageOps Image Operations 16 /// @{ 17 19 18 #include "psImage.h" 20 19 #include "psRegion.h" 21 20 22 /// @addtogroup Image23 /// @{24 25 21 /** Create a subimage of the specified area. 26 22 * 27 * Deï¬ne a subimage of the speciï¬ed area of the given image. This function 28 * must raise an error if the requested subset area lies outside of the 29 * parent image and return NULL. The argument image is the parent image, 30 * region.x0, region.y0 specify the starting pixel of the subraster, and 31 * region.x1,region.y1 specify the extent of the desired subraster. Note 32 * that the row and column of this âupper right-hand cornerâ are NOT included 33 * in the region. In the event that x1 or y1 are negative, they shall be 34 * interpreted as being relative to the size of the parent image in that 35 * dimension. The entire subraster must be contained within the raster of the 36 * parent image. Note that the refCounter for the parent should be 37 * incremented. This function must be deï¬ned for the following types: psU8, 38 * psU16, psS8, psS16, psF32, psF64, psC32, psC64. 23 * Define a subimage of the specified area of the given image. This function must raise an 24 * error if the requested subset area lies outside of the parent image and return NULL. The 25 * argument image is the parent image, region.x0, region.y0 specify the starting pixel of the 26 * subraster, and region.x1,region.y1 specify the extent of the desired subraster. Note that 27 * the row and column of this upper right-hand corner NOT included in the region. In the event 28 * that x1 or y1 are negative, they shall be interpreted as being relative to the size of the 29 * parent image in that dimension. The entire subraster must be contained within the raster of 30 * the parent image. Note that the refCounter for the parent should be incremented. This 31 * function must be defined for the following types: psU8, psU16, psS8, psS16, psF32, psF64, 32 * psC32, psC64. 39 33 * 40 34 * @return psImage* : Pointer to psImage. … … 60 54 /** Trim an image 61 55 * 62 * Trim the specified image in-place, which involves shuffling the pixels 63 * around in memory. The pixels in the region [col0:col1,row0:row1] shall consist64 * the output image. The column col1 and row row1 are NOT included in the range.65 * In the event that x1 or y1 are non-positive, they shall be interpreted as66 * being relative to the size of the parent imagein that dimension.56 * Trim the specified image in-place, which involves shuffling the pixels around in memory. 57 * The pixels in the region [col0:col1,row0:row1] shall consist the output image. The column 58 * col1 and row row1 are NOT included in the range. In the event that x1 or y1 are 59 * non-positive, they shall be interpreted as being relative to the size of the parent image 60 * in that dimension. 67 61 * 68 * If the entire specified subimage is not contained within the parent 69 * image, an error resultsand the return value will be NULL.62 * If the entire specified subimage is not contained within the parent image, an error results 63 * and the return value will be NULL. 70 64 * 71 * N.B. If the input psImage is a child of another psImage, no pixel data 72 * will be trimmed, rather it equivalent to calling psImageSubset. If the input 73 * psImage is, however, a parent psImage, any children will be obliterated, 74 * i.e., freed from memory. 65 * N.B. If the input psImage is a child of another psImage, no pixel data will be trimmed, 66 * rather it equivalent to calling psImageSubset. If the input psImage is, however, a parent 67 * psImage, any children will be obliterated, i.e., freed from memory. 75 68 * 76 69 * @return psImage* trimmed image result … … 82 75 83 76 /// @} 84 85 77 #endif // #ifndef PSIMAGE_STRUCT_MANIP_H
Note:
See TracChangeset
for help on using the changeset viewer.
