IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2004, 5:54:55 PM (22 years ago)
Author:
rhl
Message:

Misc changes to make code actually compile

File:
1 edited

Legend:

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

    r189 r198  
    11# ifndef PS_IMAGES_H
    22# define PS_IMAGES_H
     3
     4#include "psStdArrays.h"
     5#include "psUtils.h"
     6#include "psObjects.h"
     7#include "psMetaData.h"
     8#include "psStats.h"
    39
    410/** General image manipulation functions.
     
    1521
    1622PS_DECLARE_ARRAY_TYPE(psFloatArray);    ///< Declare an array of real vectors (psFloatArrayArray).
    17 PS_CREATE_ARRAY_TYPE(psFloatArray);     ///< Create the data type (psFloatArrayArray).
    1823
    1924typedef unsigned char  psU8;            ///< BITPIX 8   (unsigned short)
     
    3439    psF32 **rows_f32;                   ///< pointers to psF32 data
    3540    psF64 **rows_f64;                   ///< pointers to psF64 data
    36     psImage *parent;                    ///< parent, if a subimage
    37     psImage *children;                  ///< children of this region
     41    struct psImage *parent;             ///< parent, if a subimage
     42    struct psImage *children;           ///< children of this region
    3843    int Nchildren;                      ///< number of subimages
    39     psDlist md;                         ///< metadata associated with image
    40     psObjectTable objtable;             ///< objects associated with image
     44    struct psMetaDataSet *md;           ///< metadata associated with image
     45    psObjectArray *objtable;            ///< objects associated with image
    4146} psImage;
    4247
     
    7580
    7681/*** various image pixel extractions ***/
     82
     83typedef enum { PS_STAT_MODE_MEDIAN } psStatMode;
     84
    7785/// Extract pixels from rectlinear region to a vector.
    7886psFloatArray *
     
    8290              int nx,                   ///< width of region in x
    8391              int ny,                   ///< width of region in y
    84               enum direction,           ///< direction of vector along slice
    85               enum statmode             ///< statistic applied to pixel group to find output value
     92              int direction,            ///< direction of vector along slice
     93              psStatMode statmode       ///< statistic applied to pixel group to find output value
    8694);
    8795
     
    94102            float ye,                   ///< ending y coord of cut
    95103            float dw,                   ///< width of cut
    96             enum statmode               ///< statistic applied to pixel group to find output value
    97 );
     104            psStatMode statmode         ///< statistic applied to pixel group to find output value
     105    );
    98106
    99107/// Extract radial annulii data to a vector.
     
    104112                  float radius,         ///< outer radius of annulii
    105113                  float dr,             ///< radial step size of annulii
    106                   enum statmode         ///< statistic applied to pixel group to find output value
    107 );
     114                  psStatMode statmode   ///< statistic applied to pixel group to find output value
     115    );
    108116
    109117/// Extract a 2-d contour from an image at the given threshold.
     
    114122);
    115123
    116 /// Extract a 2-d contour from an image at the given threshold.
    117 psSpanArray *
    118 psImageContour (psImage *input,         ///< create contour for this image
    119                 float threshold         ///<  image at this threshold
    120 );
    121 
    122124/*** various image geometry manipulation ***/
    123125/// Rebin image to new scale.
     
    125127psImageRebin (psImage *input,           ///< rebin this image
    126128              float scale,              ///< rebinning scale: doutput = scale*dinput
    127               enum statmode             ///< statistic used in performing interpolation / summing
     129              psStatMode statmode       ///< statistic used in performing interpolation / summing
    128130);
    129131
     
    155157/// How to represent the output values?
    156158void
    157 psImageGetStats (psImage *input, enum statmode);
     159psImageGetStats (psImage *input, psStatMode statmode);
    158160
    159161/// Construct a histogram from an image (or subimage).
    160162psHistogram *
    161 psImageHistogram (psHistogram        ///< input histogram description & target
    162                   psImage *input,       ///< determine histogram of this image
    163 );
     163psImageHistogram (psHistogram *hist,    ///< input histogram description & target
     164                  psImage *input        ///< determine histogram of this image
     165    );
    164166
    165167/// Fit a 2-D polynomial surface to an image.
    166168psFloatArrayArray *
    167169psImageFitPolynomial (psImage *input,   ///< image to fit
    168                       int xorder        ///< order of polynomial in x-dir
     170                      int xorder,       ///< order of polynomial in x-dir
    169171                      int yorder        ///< order of polynomial in y-dir
    170172);
     
    207209/// Write an image section to named file (which may exist).
    208210psImage *
    209 psImageFWriteSection (psImage *input,   ///< image to write out
    210                       int x,            ///< starting x coord of region           
    211                       int y,            ///< starting y coord of region           
    212                       int z,            ///< plane of interest                     
    213                       char *extname,    ///< MEF extension name                   
    214                       FILE *f           ///< file descriptor to write data to             
     211psImageFWriteSection(psImage *input,    ///< image to write out
     212                     int x,             ///< starting x coord of region           
     213                     int y,             ///< starting y coord of region           
     214                     int z,             ///< plane of interest                     
     215                     char *extname,     ///< MEF extension name                   
     216                     FILE *f            ///< file descriptor to write data to             
    215217);
    216218
    217219/// Read only header from image file.
    218 psMetadata *
    219 psImageReadHeader (psMetadata *output,  ///< read data to this structure
    220                    char *extname,       ///< MEF extension name ("PHU" for primary header)
    221                    char *filename       ///< file to read from
     220struct psMetadata *
     221psImageReadHeader(struct psMetadata *output,    ///< read data to this structure
     222                  char *extname,        ///< MEF extension name ("PHU" for primary header)
     223                  char *filename        ///< file to read from
    222224);
    223225
    224226/// Read only header from image file descriptor.
    225 psMetadata *
    226 psImageFReadHeader (psMetadata *output,         ///< read data to this structure
     227struct psMetadata *
     228psImageFReadHeader (struct psMetadata *output, ///< read data to this structure
    227229                   char *extname,       ///< MEF extension name ("PHU" for primary header)
    228230                   FILE *f              ///< file descriptor to read from
     
    233235psImage *
    234236psImageFFT (psImage *input,             ///< image to FFT
    235             enum direction              ///< FFT direction
     237            int direction               ///< FFT direction
    236238);
    237239
Note: See TracChangeset for help on using the changeset viewer.