Changeset 692 for trunk/psLib/src/image/psImage.h
- Timestamp:
- May 14, 2004, 12:39:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r664 r692 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-05-1 3 20:03:35$9 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-05-14 22:39:58 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 17 17 #include <complex.h> 18 19 #include "psType.h" 18 20 19 21 /******************************************************************************/ … … 35 37 typedef struct psImage 36 38 { 37 psType type;///< Image data type and dimension.38 unsigned int numCols; ///< Number of rows in image39 unsigned int numRows; ///< Number of columns in image.40 int col0; ///< Rowposition relative to parent.41 int row0; ///< Columnposition 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. 42 44 43 45 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 50 56 } data; ///< Union for data types. 51 struct psImage *parent;///< Parent, if a subimage.57 const struct psImage *parent; ///< Parent, if a subimage. 52 58 int nChildren; ///< Number of subimages. 53 struct psImage *children;///< Children of this region.59 struct psImage** children; ///< Children of this region. 54 60 } 55 61 psImage; … … 70 76 unsigned int numCols, ///< Number of rows in image. 71 77 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. 73 79 ); 74 80 … … 82 88 psImage *psImageSubset( 83 89 psImage *out, ///< Subimage to return, or NULL. 84 const psImage *image,///< Parent image.90 psImage *image, ///< Parent image. 85 91 unsigned int numCols, ///< Subimage width (<= image.nCols - col0). 86 92 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). 89 95 ); 90 96
Note:
See TracChangeset
for help on using the changeset viewer.
