IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 24, 2004, 2:04:01 PM (22 years ago)
Author:
desonia
Message:

added psImageTrim and psImageSubsection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImageExtraction.h

    r1606 r1613  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-23 22:36:03 $
     12*  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-25 00:04:01 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6262    psImage* image,                    ///< Parent image.
    6363    const char* section                ///< Subsection in the form '[x1:x2,y1:y2]'
     64);
     65
     66/** Trim an image
     67 *
     68 *  Trim the specified image in-place, which involves shuffling the pixels
     69 *  around in memory.  The pixels in the region [x0:x1,y0:y1] (inclusive)
     70 *  shall consist the output image.
     71 *
     72 *  N.b., An image that has a parent image will be orphaned from the parent
     73 *  upon trimming.  Any children of the trimmed image will also be obliterated,
     74 *  i.e., freed from memory.
     75 *
     76 *  @return psImage*  trimmed image result
     77 */
     78psImage* psImageTrim(
     79    psImage* image,                    ///< image to trim
     80    int x0,                            ///< column of trim region's left boundary
     81    int x1,                            ///< column of trim region's right boundary
     82    int y0,                            ///< row of trim region's lower boundary
     83    int y1                             ///< row of trim region's upper boundary
    6484);
    6585
Note: See TracChangeset for help on using the changeset viewer.