- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psModules merged eligible /branches/eam_branches/stackphot.20100406/psModules 27623-27653 /branches/pap_delete/psModules 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psModules/src/camera/pmFPAMaskWeight.h
r24483 r27840 16 16 /// @{ 17 17 18 #if 0 19 /// Pixel mask values 20 typedef enum { 21 PM_MASK_CLEAR = 0x00, ///< The pixel is not masked 22 PM_MASK_BLANK = 0x01, ///< The pixel is blank or has no (valid) data 23 PM_MASK_FLAT = 0x02, ///< The pixel is non-positive in the flat-field 24 PM_MASK_DETECTOR = 0x02, ///< The detector pixel is bad (e.g., bad column, charge trap) 25 PM_MASK_SAT = 0x04, ///< The pixel is saturated in the image of interest 26 PM_MASK_BAD = 0x04, ///< The pixel is low in the image of interest 27 PM_MASK_RANGE = 0x04, ///< The pixel is out of range in the image of interest 28 PM_MASK_CR = 0x08, ///< The pixel is probably a CR 29 PM_MASK_SPARE1 = 0x10, ///< Spare mask value 30 PM_MASK_SPARE2 = 0x20, ///< Spare mask value 31 PM_MASK_SUSPECT = 0x40, ///< The pixel is suspected of being bad, but may not be 32 PM_MASK_MARK = 0x80, ///< The pixel is marked as temporarily ignored 33 } pmMaskValue; 34 #define PM_MASK_MARK 0x80 ///< The pixel is marked as temporarily ignored 35 #define PM_MASK_SAT 0x04 ///< The pixel is saturated in the image of interest 36 #endif 18 #define PM_READOUT_ANALYSIS_RENORM "READOUT.RENORM" // Name on analysis metadata for renormalisation 37 19 38 20 /// Set a temporary readout mask using CELL.SATURATION and CELL.BAD … … 54 36 /// can't be generated. 55 37 bool pmReadoutSetVariance(pmReadout *readout, ///< Readout for which to set variance 56 const psImage *noiseMap, ///< 2D image of the read noise in DN38 const psImage *noiseMap, ///< 2D image of the read noise in DN 57 39 bool poisson ///< Include poisson variance (in addition to read noise)? 58 40 ); … … 73 55 /// with HDU entry). This is intended for most operations. 74 56 bool pmReadoutGenerateVariance(pmReadout *readout, ///< Readout for which to generate variance 75 const psImage *noiseMap, ///< 2D image of the read noise in DN57 const psImage *noiseMap, ///< 2D image of the read noise in DN 76 58 bool poisson ///< Include poisson variance (in addition to read noise)? 77 59 ); … … 83 65 psImageMaskType sat, ///< Mask value to give saturated pixels 84 66 psImageMaskType bad, ///< Mask value to give bad (low) pixels 85 const psImage *noiseMap, ///< 2D image of the read noise in DN67 const psImage *noiseMap, ///< 2D image of the read noise in DN 86 68 bool poisson ///< Include poisson variance (in addition to read noise)? 87 69 ); … … 93 75 psImageMaskType sat, ///< Mask value to give saturated pixels 94 76 psImageMaskType bad, ///< Mask value to give bad (low) pixels 95 const psImage *noiseMap, ///< 2D image of the read noise in DN77 const psImage *noiseMap, ///< 2D image of the read noise in DN 96 78 bool poisson ///< Include poisson variance (in addition to read noise)? 97 79 ); … … 100 82 /// 101 83 /// The variance map is adjusted so that the mean matches the actual pixel variance in the image 102 bool pmReadoutVarianceRenormPixels( 103 const pmReadout *readout, ///< Readout to normalise 104 psImageMaskType maskVal, ///< Value to mask 105 psStatsOptions meanStat, ///< Statistic to measure the mean (of the variance map) 106 psStatsOptions stdevStat, ///< Statistic to measure the stdev (of the image) 107 psRandom *rng ///< Random number generator 108 ); 109 110 /// Renormalise the variance map to match the actual photometry variance 111 /// 112 /// The variance map is adjusted so that the actual significance of fake sources matches the 113 /// guestimated significance 114 bool pmReadoutVarianceRenormPhot( 84 bool pmReadoutVarianceRenormalise( 115 85 const pmReadout *readout, ///< Readout to normalise 116 86 psImageMaskType maskVal, ///< Value to mask 117 int num, ///< Number of instances to measure over the image 118 float width, ///< Photometry width 119 psStatsOptions meanStat, ///< Statistic to measure the mean 120 psStatsOptions stdevStat, ///< Statistic to measure the stdev 121 psRandom *rng ///< Random number generator 122 ); 123 124 /// Renormalise the variance map to match the actual variance 125 /// 126 /// The variance in the image is measured in patches, and the variance map is adjusted so that the mean for 127 /// that patch corresponds. 128 bool pmReadoutVarianceRenorm(const pmReadout *readout, // Readout to normalise 129 psImageMaskType maskVal, // Value to mask 130 psStatsOptions meanStat, // Statistic to measure the mean (of the variance map) 131 psStatsOptions stdevStat, // Statistic to measure the stdev (of the image) 132 int width, // Width of patch (pixels) 133 psRandom *rng // Random number generator (for sub-sampling images) 87 int sample, ///< Sample size 88 float minValid, ///< Minimum valid renormalisation, or NAN 89 float maxValid ///< Maximum valid renormalisation, or NAN 134 90 ); 135 91
Note:
See TracChangeset
for help on using the changeset viewer.
