IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2004, 12:36:04 PM (22 years ago)
Author:
desonia
Message:

changed psImageSubset to subset an image without making a deep copy.

File:
1 edited

Legend:

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

    r1441 r1606  
    1010*  @author Robert DeSonia, MHPCC
    1111*
    12 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-08-09 23:40:55 $
     12*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-08-23 22:36:03 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4444 */
    4545psImage* psImageSubset(
    46     psImage* out,                      ///< image to recycle, or NULL.
    4746    psImage* image,                    ///< Parent image.
    4847    unsigned int numCols,              ///< Subimage width (<= image.nCols - col0).
     
    5049    unsigned int col0,                 ///< Subimage col-offset (0 <= col0 < nCol).
    5150    unsigned int row0                  ///< Subimage row-offset (0 <= row0 < nCol).
     51);
     52
     53/** Create a subimage of the specified area.
     54 *
     55 * Uses psLib memory allocation functions to create an image based on a larger
     56 * one.
     57 *
     58 * @return psImage* : Pointer to psImage.
     59 *
     60 */
     61psImage* psImageSubsection(
     62    psImage* image,                    ///< Parent image.
     63    const char* section                ///< Subsection in the form '[x1:x2,y1:y2]'
    5264);
    5365
Note: See TracChangeset for help on using the changeset viewer.