IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 12:44:25 PM (22 years ago)
Author:
desonia
Message:

fixed some stupid indent-induced formating problems and added doxygen
comments.

File:
1 edited

Legend:

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

    r1407 r1426  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-08-07 00:06:06 $
     14 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-08-09 22:44:25 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1818 */
    1919#ifndef PS_IMAGE_H
    20 #    define PS_IMAGE_H
     20#define PS_IMAGE_H
    2121
    22 #    include <complex.h>
     22#include <complex.h>
    2323
    24 #    include "psType.h"
     24#include "psType.h"
    2525
    2626/// @addtogroup Image
    2727/// @{
    2828
     29/** enumeration of options in interpolation
     30 *
     31 */
    2932typedef enum {
    30     PS_INTERPOLATE_FLAT,
    31     PS_INTERPOLATE_BILINEAR
     33    PS_INTERPOLATE_FLAT,               ///< 'flat' interpolation (nearest pixel)
     34    PS_INTERPOLATE_BILINEAR            ///< bi-linear interpolation
    3235} psImageInterpolateMode;
    3336
     
    4043typedef struct psImage
    4144{
    42     const psType type;          // /< Image data type and dimension.
    43     const unsigned int numCols; // /< Number of columns in image
    44     const unsigned int numRows; // /< Number of rows in image.
    45     const int col0;             // /< Column position relative to parent.
    46     const int row0;             // /< Row position relative to parent.
     45    const psType type;          ///< Image data type and dimension.
     46    const unsigned int numCols; ///< Number of columns in image
     47    const unsigned int numRows; ///< Number of rows in image.
     48    const int col0;             ///< Column position relative to parent.
     49    const int row0;             ///< Row position relative to parent.
    4750
    4851    union {
    49         psU8 **U8;              // /< Unsigned 8-bit integer data.
    50         psU16 **U16;            // /< Unsigned 16-bit integer data.
    51         psU32 **U32;            // /< Unsigned 32-bit integer data.
    52         psU64 **U64;            // /< Unsigned 64-bit integer data.
    53         psS8 **S8;              // /< Signed 8-bit integer data.
    54         psS16 **S16;            // /< Signed 16-bit integer data.
    55         psS32 **S32;            // /< Signed 32-bit integer data.
    56         psS64 **S64;            // /< Signed 64-bit integer data.
    57         psF32 **F32;            // /< Single-precision float data.
    58         psF64 **F64;            // /< Double-precision float data.
    59         psC32 **C32;            // /< Single-precision complex data.
    60         psC64 **C64;            // /< Double-precision complex data.
    61         psPTR **PTR;            // /< Void pointers.
    62         psPTR *V;               // /< Pointer to data.
    63     } data;                     // /< Union for data types.
    64     const struct psImage *parent;       // /< Parent, if a subimage.
    65     int nChildren;              // /< Number of subimages.
    66     struct psImage **children;  // /< Children of this region.
     52        psU8 **U8;              ///< Unsigned 8-bit integer data.
     53        psU16 **U16;            ///< Unsigned 16-bit integer data.
     54        psU32 **U32;            ///< Unsigned 32-bit integer data.
     55        psU64 **U64;            ///< Unsigned 64-bit integer data.
     56        psS8 **S8;              ///< Signed 8-bit integer data.
     57        psS16 **S16;            ///< Signed 16-bit integer data.
     58        psS32 **S32;            ///< Signed 32-bit integer data.
     59        psS64 **S64;            ///< Signed 64-bit integer data.
     60        psF32 **F32;            ///< Single-precision float data.
     61        psF64 **F64;            ///< Double-precision float data.
     62        psC32 **C32;            ///< Single-precision complex data.
     63        psC64 **C64;            ///< Double-precision complex data.
     64        psPTR **PTR;            ///< Void pointers.
     65        psPTR *V;               ///< Pointer to data.
     66    } data;                     ///< Union for data types.
     67    const struct psImage *parent;       ///< Parent, if a subimage.
     68    int nChildren;              ///< Number of subimages.
     69    struct psImage **children;  ///< Children of this region.
    6770}
    6871psImage;
     
    8285 *
    8386 */
    84 psImage *psImageAlloc(unsigned int numCols,     // /< Number of rows in image.
    85                       unsigned int numRows,     // /< Number of columns in image.
    86                       const psElemType type     // /< Type of data for image.
     87psImage *psImageAlloc(unsigned int numCols,     ///< Number of rows in image.
     88                      unsigned int numRows,     ///< Number of columns in image.
     89                      const psElemType type     ///< Type of data for image.
    8790                     );
    8891
     
    9295 *
    9396 */
    94 psImage *psImageRecycle(psImage * old,  // /< the psImage to recycle by resizing image buffer
    95                         unsigned int numCols,   // /< the desired number of columns in image
    96                         unsigned int numRows,   // /< the desired number of rows in image
    97                         const psElemType type   // /< the desired datatype of the image
     97psImage *psImageRecycle(psImage * old,  ///< the psImage to recycle by resizing image buffer
     98                        unsigned int numCols,   ///< the desired number of columns in image
     99                        unsigned int numRows,   ///< the desired number of rows in image
     100                        const psElemType type   ///< the desired datatype of the image
    98101                       );
    99102
Note: See TracChangeset for help on using the changeset viewer.