Changeset 664 for trunk/psLib/src/image/psImage.h
- Timestamp:
- May 13, 2004, 10:03:35 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImage.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImage.h
r649 r664 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-05-1 2 19:46:52$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-05-13 20:03:35 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 35 35 typedef struct psImage 36 36 { 37 psType type; ///< Image data type and dimension.38 int nCols;///< Number of rows in image39 int nRows;///< Number of columns in image.40 int col0; ///< Row position relative to parent.41 int row0; ///< Column position relative to parent.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. 42 42 43 43 union { 44 char **rowsC ///< Pointers to char integer data. 45 short **rowsS; ///< Pointers to short integer data. 46 int **rowsI; ///< Pointers to integer data. 47 long **rowsL ; ///< Pointers to long integer data. 48 unsigned char **rowsUC; ///< Pointers to unsigned char integer data. 49 unsigned short **rowsUS; ///< Pointers to unsigned short integer data. 50 unsigned int **rowsUI; ///< Pointers to unsigned integer data. 51 unsigned long **rowsUL; ///< Pointers to unsigned long integer data. 52 float **rowsF; ///< Pointers to floating point data. 53 double **rowsD; ///< Pointers to double precision data. 54 complex float **rowsCF; ///< Pointers to complex floating point data. 55 } rows; ///< Union for data types. 56 struct psImage *parent; ///< Parent, if a subimage. 57 int nChildren; ///< Number of subimages. 58 struct psImage *children; ///< Children of this region. 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. 50 } data; ///< Union for data types. 51 struct psImage *parent; ///< Parent, if a subimage. 52 int nChildren; ///< Number of subimages. 53 struct psImage *children; ///< Children of this region. 59 54 } 60 55 psImage; … … 67 62 /** Create an image of the specified size and type. 68 63 * 69 * Uses psLib memory allocation functions to create an image struct of the specified size and type. 64 * Uses psLib memory allocation functions to create an image struct of the specified size and type. 70 65 * 71 66 * @return psImage*: Pointer to psImage. … … 73 68 */ 74 69 psImage *psImageAlloc( 75 int nCols,///< Number of rows in image.76 int nRows,///< Number of columns in image.77 psType type ///< Type of data for image.70 unsigned int numCols, ///< Number of rows in image. 71 unsigned int numRows, ///< Number of columns in image. 72 psType type ///< Type of data for image. 78 73 ); 79 74 80 75 /** Create a subimage of the specified area. 81 76 * 82 * Uses psLib memory allocation functions to create an image based on a larger one. 77 * Uses psLib memory allocation functions to create an image based on a larger one. 83 78 * 84 79 * @return psImage*: Pointer to psImage. … … 86 81 */ 87 82 psImage *psImageSubset( 88 psImage *out, ///< Subimage to return, or NULL.89 const psImage *image, ///< Parent image.90 int nCols,///< Subimage width (<= image.nCols - col0).91 int nRows,///< Subimage height (<= image.nRows - row0).92 int col0, ///< Subimage col-offset (0 <= col0 < nCol).93 int row0 ///< Subimage row-offset (0 <= row0 < nCol).83 psImage *out, ///< Subimage to return, or NULL. 84 const psImage *image, ///< Parent image. 85 unsigned int numCols, ///< Subimage width (<= image.nCols - col0). 86 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). 94 89 ); 95 90 96 91 /** Destroy the specified image. 97 92 * 98 * Uses psLib memory deallocation functions to free an image and any existing children. 93 * Uses psLib memory deallocation functions to free an image and any existing children. 99 94 * 100 95 * @return psImage*: Pointer to psImage. … … 102 97 */ 103 98 void psImageFree( 104 psImage *restrict image ///< Free psImage99 psImage *restrict image ///< Free psImage 105 100 ); 106 101
Note:
See TracChangeset
for help on using the changeset viewer.
