Changeset 6842 for branches/rel10_ifa/psModules/src/detrend/pmFringeStats.h
- Timestamp:
- Apr 12, 2006, 1:50:45 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/detrend/pmFringeStats.h
r6761 r6842 5 5 * @author Eugene Magnier, IfA 6 6 * 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 $ 9 9 * 10 10 * Copyright 2004 IfA, University of Hawaii … … 14 14 # define PM_FRINGE_STATS 15 15 16 /** Fringe Stats structure to hold the fringe statistics 17 * for a given image 16 /** Structure to hold the fringe measurement regions. 18 17 */ 19 18 typedef struct … … 25 24 psU32 nX; // large-scale smoothing in x (col) 26 25 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 32 29 } 33 pmFringe Stats;30 pmFringeRegions; 34 31 35 pmFringe Stats *pmFringeStatsAlloc (32 pmFringeRegions *pmFringeRegionsAlloc ( 36 33 int nPts, // number of points to create 37 34 int dX, // half-width of fringe boxes … … 40 37 int nY // smoothing scale in y 41 38 ); 39 40 /** Structure to hold the fringe measurements for a particular image 41 */ 42 typedef struct 43 { 44 pmFringeRegions *regions; // Fringe regions 45 psVector *f; // fringe point median 46 psVector *df; // fringe point stdev 47 } 48 pmFringeStats; 49 50 pmFringeStats *pmFringeStatsAlloc(pmFringeRegions *regions); 51 42 52 43 53 /** the pmFringeScale structure defines the relationship between two fringe measurements … … 60 70 * @return bool: True or false for success or failure 61 71 */ 62 bool pmFringeStatsMeasure( 63 pmFringeStats *fringe, ///< results are placed here 64 psImage *image ///< measure fringes on this image 72 pmFringeStats *pmFringeStatsMeasure( 73 pmFringeRegions *fringe, ///< fringe regions 74 pmReadout *readout, ///< measure fringes on this readout 75 psMaskType maskVal ///< Mask value for statistics 65 76 ); 66 77 … … 68 79 * 69 80 * 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. 71 82 * 72 * @return psImage: corrected science image83 * @return psImage: summed fringe image 73 84 */ 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 ); 85 psImage *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 ); 81 91 82 92 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
