Changeset 1918 for trunk/psLib/src/image/psImageExtraction.h
- Timestamp:
- Sep 27, 2004, 4:27:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageExtraction.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageExtraction.h
r1897 r1918 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-09-2 5 02:06:12$12 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-09-28 02:27:58 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 /** Create a subimage of the specified area. 38 38 * 39 * Uses psLib memory allocation functions to create an image based on a larger 40 * one. 39 * Extracts a subimage starting at (col0,row0) to (col1-1,row1-1). Note: 40 * the column col1 and row row1 are NOT included in the resulting subimage. 41 * In the event that x1 or y1 are non-positive, they shall be interpreted as 42 * being relative to the size of the parent image in that dimension. 41 43 * 42 * @return psImage* : Pointer to psImage. 44 * If the entire specified subimage is not contained within the parent 45 * image, an error results and the return value will be NULL. 46 * 47 * The resulting psImage does not create a copy of the underlying image 48 * data. Future changes in the parent may be reflecting in the child 49 * subimage and vis versa. 50 * 51 * @return psImage* : Pointer to psImage. 43 52 * 44 53 */ 45 54 psImage* psImageSubset( 46 55 psImage* image, ///< Parent image. 47 unsigned int numCols, ///< Subimage width (<= image.nCols - col0).48 unsigned int numRows, ///< Subimage height (<= image.nRows - row0).49 unsigned int col0, ///< Subimage col-offset (0 <= col0 < nCol).50 unsigned int row0 ///< Subimage row-offset (0 <= row0 < nCol).56 int col0, ///< starting column of subimage 57 int row0, ///< starting row of subimage 58 int col1, ///< exclusive end column of subimage. 59 int row1 ///< exclusive end row of subimage 51 60 ); 52 61
Note:
See TracChangeset
for help on using the changeset viewer.
