IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2004, 10:34:23 AM (22 years ago)
Author:
eugene
Message:

added psStats and psPolynomial2D structures & support

File:
1 edited

Legend:

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

    r206 r215  
    7474              int ny,                   ///< width of region in y
    7575              int direction,            ///< direction of vector along slice
    76               psStatMode statmode       ///< statistic applied to pixel group to find output value
     76              psStats *stats            ///< defines statistics used to find output values
    7777);
    7878
     
    8585            float ye,                   ///< ending y coord of cut
    8686            float dw,                   ///< width of cut
    87             psStatMode statmode         ///< statistic applied to pixel group to find output value
     87            psStats *stats              ///< defines statistics used to find output values
    8888    );
    8989
     
    9595                  float radius,         ///< outer radius of annulii
    9696                  float dr,             ///< radial step size of annulii
    97                   psStatMode statmode   ///< statistic applied to pixel group to find output value
     97                  psStats *stats                ///< defines statistics used to find output values
    9898    );
    9999
     
    110110psImageRebin (psImage *input,           ///< rebin this image
    111111              float scale,              ///< rebinning scale: doutput = scale*dinput
    112               psStatMode statmode       ///< statistic used in performing interpolation / summing
     112              psStats *stats            ///< defines statistics used to find output values
    113113);
    114114
     
    137137
    138138/// Determine statistics for image (or subimage).
    139 /// Should we have one function for all stats, or multiple functions?
    140 /// How to represent the output values?
    141 void
    142 psImageGetStats (psImage *input, psStatMode statmode);
     139psStats *
     140psImageGetStats (psImage *input,        ///< image (or subimage) to calculate stats
     141                 psStats *stats);       ///< defines statistics to be calculated
    143142
    144143/// Construct a histogram from an image (or subimage).
     
    149148
    150149/// Fit a 2-D polynomial surface to an image.
    151 psFloatArrayArray *
     150psPolynomial2D *
    152151psImageFitPolynomial (psImage *input,   ///< image to fit
    153                       int xorder,       ///< order of polynomial in x-dir
    154                       int yorder        ///< order of polynomial in y-dir
     152                      psPolynomial2D *coeffs ///< coefficient structure carries in desired terms
     153);
     154
     155/// Evaluate a 2-D polynomial surface to image pixels.
     156int
     157psImageEvalPolynomial (psImage *input,  ///< image to fit
     158                       psPolynomial2D *coeffs ///< coefficient structure carries in desired terms
    155159);
    156160
Note: See TracChangeset for help on using the changeset viewer.