IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 12, 2006, 1:50:45 PM (20 years ago)
Author:
Paul Price
Message:

pmFringeStats stuff compiles; separated pmFringeStats into pmFringeRegions and pmFringeStats --- the regions are common to all the images, while the stats are measured per image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/detrend/pmFringeStats.h

    r6761 r6842  
    55 *  @author Eugene Magnier, IfA
    66 *
    7  *  @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-04-04 18:41:38 $
     7 *  @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-04-12 23:50:45 $
    99 *
    1010 *  Copyright 2004 IfA, University of Hawaii
     
    1414# define PM_FRINGE_STATS
    1515
    16 /** Fringe Stats structure to hold the fringe statistics
    17  *   for a given image
     16/** Structure to hold the fringe measurement regions.
    1817 */
    1918typedef struct
     
    2524    psU32 nX;    // large-scale smoothing in x (col)
    2625    psU32 nY;    // large-scale smoothing in y (row)
    27     psVector x;    // fringe point coordinates (col)
    28     psVector y;    // fringe point coordinates (row)
    29     psVector f;    // fringe point median
    30     psVector df;   // fringe point stdev
    31     psVector mask;   // fringe point on/off mask
     26    psVector *x;    // fringe point coordinates (col)
     27    psVector *y;    // fringe point coordinates (row)
     28    psVector *mask;   // fringe point on/off mask
    3229}
    33 pmFringeStats;
     30pmFringeRegions;
    3431
    35 pmFringeStats *pmFringeStatsAlloc (
     32pmFringeRegions *pmFringeRegionsAlloc (
    3633    int nPts,     // number of points to create
    3734    int dX,     // half-width of fringe boxes
     
    4037    int nY    // smoothing scale in y
    4138);
     39
     40/** Structure to hold the fringe measurements for a particular image
     41 */
     42typedef struct
     43{
     44    pmFringeRegions *regions;           // Fringe regions
     45    psVector *f;    // fringe point median
     46    psVector *df;   // fringe point stdev
     47}
     48pmFringeStats;
     49
     50pmFringeStats *pmFringeStatsAlloc(pmFringeRegions *regions);
     51
    4252
    4353/** the pmFringeScale structure defines the relationship between two fringe measurements
     
    6070 *  @return  bool: True or false for success or failure
    6171 */
    62 bool pmFringeStatsMeasure(
    63     pmFringeStats *fringe,  ///< results are placed here
    64     psImage *image   ///< measure fringes on this image
     72pmFringeStats *pmFringeStatsMeasure(
     73    pmFringeRegions *fringe,            ///< fringe regions
     74    pmReadout *readout,                 ///< measure fringes on this readout
     75    psMaskType maskVal                  ///< Mask value for statistics
    6576);
    6677
     
    6879 *
    6980 *  Given a science image, a set of fringe stats and a matched set of fringe images, correct the science image
    70  *  for the fringe images. 
     81 *  for the fringe images.
    7182 *
    72  *  @return  psImage: corrected science image
     83 *  @return  psImage: summed fringe image
    7384 */
    74 psImage *pmFringeCorrect(
    75     psImage *out,   // place corrected image here (allocate if NULL)
    76     psMetadata *info,   // place info about results here
    77     psImage *science,   // image to be corrected
    78     psArray *fringeImage,  // fringe images to use in correction
    79     psArray *fringeStats  // fringe stats to use in correction
    80 );
     85psImage *pmFringeCorrect(pmReadout *in, // place info about results here
     86                         pmFringeRegions *fringes, // The fringe regions used
     87                         psArray *fringeImages, // fringe images to use in correction
     88                         psArray *fringeStats, // fringe stats to use in correction
     89                         psMaskType maskVal // Value to mask
     90                        );
    8191
    8292# endif
Note: See TracChangeset for help on using the changeset viewer.