Changeset 680 for trunk/archive/pslib/include/psImage.h
- Timestamp:
- May 13, 2004, 3:21:30 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psImage.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psImage.h
r671 r680 10 10 typedef struct psImage { 11 11 psType type; ///< image data type and dimension 12 const int n x, ny;///< size of image12 const int ncols, nrows; ///< size of image 13 13 const int x0, y0; ///< data region relative to parent 14 14 union { 15 float **rows; ///< Pointers to floating-point data (default) 16 short int **rows_si; ///< Pointers to short-integer data 17 int **rows_i; ///< Pointers to integer data 18 long int **rows_li; ///< Pointers to long-integer data 19 unsigned short int **rows_usi; ///< Pointers to unsigned-short-integer data 20 unsigned int **rows_ui; ///< Pointers to unsigned-integer data 21 unsigned long int **rows_uli; ///< Pointers to unsigned-long-integer data 22 float **rows_f; ///< Pointers to floating-point data 23 double **rows_d; ///< Pointers to double-precision data 24 complex float **rows_complex; ///< Pointers to complex floating-point data 15 psF32 **rows; ///< Pointers to floating-point data (default) 16 psS8 **rows_S8; ///< Pointers to char data 17 psS16 **rows_S16; ///< Pointers to short-integer data 18 psS32 **rows_S32; ///< Pointers to integer data 19 psS64 **rows_S64; ///< Pointers to long-integer data 20 psU8 **rows_U8; ///< Pointers to unsigned-char data 21 psU16 **rows_U16; ///< Pointers to unsigned-short-integer data 22 psU32 **rows_U32; ///< Pointers to unsigned-integer data 23 psU64 **rows_U64; ///< Pointers to unsigned-long-integer data 24 psF32 **rows_F32; ///< Pointers to floating-point data 25 psF64 **rows_F64; ///< Pointers to double-precision data 26 psC32 **rows_C32; ///< Pointers to complex floating-point data 25 27 } rows; 26 28 const struct psImage *parent; ///< parent, if a subimage … … 38 40 /// Create an image of the specified size and type. 39 41 psImage * 40 psImageAlloc (int nx, ///< image width41 int ny, ///< image height42 psImageAlloc (int width, ///< image width (ncols) 43 int height, ///< image height (nrows) 42 44 psElemType type) ///< image data type 43 45 ; … … 46 48 psImage * 47 49 psImageSubset(const psImage *image, ///< parent image 48 int nx, ///< subimage width (<= image.nx - x0)49 int ny, ///< subimage width (<= image.ny - y0)50 int x0, ///< subimage x-offset (0 <= x0 < nx)51 int y0) ///< subimage y-offset (0 <= y0 < ny)50 int width, ///< subimage width (<= image.ncols - col0) 51 int height, ///< subimage height (<= image.nrows - row0) 52 int x0, ///< subimage starting col (0 <= col0 < ncols) 53 int y0) ///< subimage starting row (0 <= row0 < nrows) 52 54 ; 53 55 … … 77 79 int x, ///< starting x coord of region to slice 78 80 int y, ///< starting y coord of region to slice 79 int nx, ///< width of region in x80 int ny, ///< width of region in y81 int nx, ///< length of region in x 82 int ny, ///< length of region in y 81 83 int direction, ///< direction of vector along slice 82 84 const psStats *stats) ///< defines statistics used to find output values
Note:
See TracChangeset
for help on using the changeset viewer.
