IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2004, 10:00:21 AM (22 years ago)
Author:
desonia
Message:

Added some psfits and pslist changes. More work needs to be done to make it match the current SDRS.

File:
1 edited

Legend:

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

    r2204 r2375  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-10-27 00:57:31 $
     13 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-11-16 20:00:21 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7575psImage;
    7676
     77/** Basic image region structure.
     78 *
     79 * Struct for specifying a rectangular area in an image.
     80 *
     81 */
     82typedef struct
     83{
     84    double x0;                         ///< the first column of the region.
     85    double x1;                         ///< the last column of the region.
     86    double y0;                         ///< the first row of the region.
     87    double y1;                         ///< the last row of the region.
     88}
     89psRegion;
     90
    7791/** Create an image of the specified size and type.
    7892 *
     
    8498 */
    8599psImage* psImageAlloc(
    86     psU32 numCols,              ///< Number of rows in image.
    87     psU32 numRows,              ///< Number of columns in image.
     100    psU32 numCols,                     ///< Number of rows in image.
     101    psU32 numRows,                     ///< Number of columns in image.
    88102    const psElemType type              ///< Type of data for image.
     103);
     104
     105/** Create an image of the specified size and type.
     106 *
     107 * Uses psLib memory allocation functions to create an image struct of the
     108 * specified size and type.
     109 *
     110 * @return psImage* : Pointer to psImage.
     111 *
     112 */
     113psRegion* psRegionAlloc(
     114    double x0,                         ///< the first column of the region.
     115    double x1,                         ///< the last column of the region.
     116    double y0,                         ///< the first row of the region.
     117    double y1                          ///< the last row of the region.
     118);
     119
     120psRegion* psRegionFromString(
     121    char* region                       ///< image rectangular region in the form '[x0:x1,y0:y1]'
    89122);
    90123
     
    96129psImage* psImageRecycle(
    97130    psImage* old,                      ///< the psImage to recycle by resizing image buffer
    98     psU32 numCols,              ///< the desired number of columns in image
    99     psU32 numRows,              ///< the desired number of rows in image
     131    psU32 numCols,                     ///< the desired number of columns in image
     132    psU32 numRows,                     ///< the desired number of rows in image
    100133    const psElemType type              ///< the desired datatype of the image
    101134);
Note: See TracChangeset for help on using the changeset viewer.