IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 14, 2004, 12:39:58 PM (22 years ago)
Author:
desonia
Message:

Interim/pretest version.

File:
1 edited

Legend:

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

    r664 r692  
    77 *  @author Ross Harman, MHPCC
    88 *   
    9  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-05-13 20:03:35 $
     9 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-05-14 22:39:58 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616
    1717#include <complex.h>
     18
     19#include "psType.h"
    1820
    1921/******************************************************************************/
     
    3537typedef struct psImage
    3638{
    37     psType type;                        ///< Image data type and dimension.
    38     unsigned int numCols;               ///< Number of rows in image
    39     unsigned int numRows;               ///< Number of columns in image.
    40     int col0;                           ///< Row position relative to parent.
    41     int row0;                           ///< Column position relative to parent.
     39    const psType type;                  ///< Image data type and dimension.
     40    const unsigned int numCols;         ///< Number of columns in image
     41    const unsigned int numRows;         ///< Number of rows in image.
     42    const int col0;                     ///< Column position relative to parent.
     43    const int row0;                     ///< Row position relative to parent.
    4244
    4345    union {
    44         void    **v;                    ///< void pointer to data
    45         uint8_t **ui8;                  ///< Pointers to char integer data.
    46         int16_t **i16;                  ///< Pointers to short integer data.
    47         int32_t **i32;                  ///< Pointers to integer data.
    48         float **f32;                    ///< Pointers to floating point data.
    49         complex float **c32;            ///< Pointers to complex floating point data.
     46        uint8_t **ui8;                  ///< unsigned 8-bit integer data.
     47        uint16_t **ui16;                ///< unsigned 16-bit integer data.
     48        uint32_t **ui32;                ///< unsigned 32-bit integer data.
     49        int8_t **i8;                    ///< signed 8-bit integer data.
     50        int16_t **i16;                  ///< signed 16-bit integer data.
     51        int32_t **i32;                  ///< signed 32-bit integer data.
     52        float **f32;                    ///< single-precision float data.
     53        double **f64;                   ///< double-precision float data.
     54        complex float **c32;            ///< single-precision complex data.
     55        void    **v;                    ///< void pointers to data
    5056    } data;                             ///< Union for data types.
    51     struct psImage *parent;             ///< Parent, if a subimage.
     57    const struct psImage *parent;       ///< Parent, if a subimage.
    5258    int nChildren;                      ///< Number of subimages.
    53     struct psImage *children;           ///< Children of this region.
     59    struct psImage** children;          ///< Children of this region.
    5460}
    5561psImage;
     
    7076    unsigned int numCols,               ///< Number of rows in image.
    7177    unsigned int numRows,               ///< Number of columns in image.
    72     psType type                         ///< Type of data for image.
     78    const psElemType type               ///< Type of data for image.
    7379);
    7480
     
    8288psImage *psImageSubset(
    8389    psImage *out,                       ///< Subimage to return, or NULL.
    84     const psImage *image,               ///< Parent image.
     90    psImage *image,                     ///< Parent image.
    8591    unsigned int numCols,               ///< Subimage width (<= image.nCols - col0).
    8692    unsigned int numRows,               ///< Subimage height (<= image.nRows - row0).
    87     int col0,                           ///< Subimage col-offset (0 <= col0 < nCol).
    88     int row0                            ///< Subimage row-offset (0 <= row0 < nCol).
     93    unsigned int col0,                  ///< Subimage col-offset (0 <= col0 < nCol).
     94    unsigned int row0                   ///< Subimage row-offset (0 <= row0 < nCol).
    8995);
    9096
Note: See TracChangeset for help on using the changeset viewer.