IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2004, 3:21:30 PM (22 years ago)
Author:
eugene
Message:

adjusted the type names to the form psS8, psF32, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psImage.h

    r671 r680  
    1010typedef struct psImage {
    1111    psType type;                        ///< image data type and dimension
    12     const int nx, ny;                   ///< size of image
     12    const int ncols, nrows;             ///< size of image
    1313    const int x0, y0;                   ///< data region relative to parent
    1414    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
    2527    } rows;
    2628    const struct psImage *parent;       ///< parent, if a subimage
     
    3840/// Create an image of the specified size and type.
    3941psImage *
    40 psImageAlloc (int nx,                   ///< image width
    41               int ny,                   ///< image height
     42psImageAlloc (int width,                ///< image width (ncols)
     43              int height,               ///< image height (nrows)
    4244              psElemType type)          ///< image data type
    4345;
     
    4648psImage *
    4749psImageSubset(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)   
    5254;
    5355
     
    7779             int x,                     ///< starting x coord of region to slice
    7880             int y,                     ///< starting y coord of region to slice
    79              int nx,                    ///< width of region in x
    80              int ny,                    ///< width of region in y
     81             int nx,                    ///< length of region in x
     82             int ny,                    ///< length of region in y
    8183             int direction,             ///< direction of vector along slice
    8284             const psStats *stats)      ///< defines statistics used to find output values
Note: See TracChangeset for help on using the changeset viewer.