Changeset 1920 for trunk/psLib/src/image/psImageExtraction.h
- Timestamp:
- Sep 28, 2004, 1:26:49 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageExtraction.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageExtraction.h
r1918 r1920 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-09-28 02:27:58 $12 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-09-28 23:26:48 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 76 76 * 77 77 * Trim the specified image in-place, which involves shuffling the pixels 78 * around in memory. The pixels in the region [x0:x1,y0:y1] (inclusive) 79 * shall consist the output image. 80 * 81 * N.b., An image that has a parent image will be orphaned from the parent 82 * upon trimming. Any children of the trimmed image will also be obliterated, 78 * around in memory. The pixels in the region [col0:col1,row0:row1] shall consist 79 * the output image. The column col1 and row row1 are NOT included in the range. 80 * In the event that x1 or y1 are non-positive, they shall be interpreted as 81 * being relative to the size of the parent image in that dimension. 82 * 83 * If the entire specified subimage is not contained within the parent 84 * image, an error results and the return value will be NULL. 85 * 86 * N.B. If the input psImage is a child of another psImage, no pixel data 87 * will be trimmed, rather it equivalent to calling psImageSubset. If the input 88 * psImage is, however, a parent psImage, any children will be obliterated, 83 89 * i.e., freed from memory. 84 90 * … … 87 93 psImage* psImageTrim( 88 94 psImage* image, ///< image to trim 89 int x0,///< column of trim region's left boundary90 int x1, ///< column of trim region's rightboundary91 int y0, ///< row of trim region's lowerboundary92 int y1///< row of trim region's upper boundary95 int col0, ///< column of trim region's left boundary 96 int row0, ///< row of trim region's lower boundary 97 int col1, ///< column of trim region's right boundary 98 int row1 ///< row of trim region's upper boundary 93 99 ); 94 100
Note:
See TracChangeset
for help on using the changeset viewer.
