Changeset 24892
- Timestamp:
- Jul 22, 2009, 9:33:24 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ippconfig/recipes/ppImage.config (modified) (3 diffs)
-
ppImage/src/ppImage.h (modified) (3 diffs)
-
ppImage/src/ppImageDetrendReadout.c (modified) (1 diff)
-
ppImage/src/ppImageOptions.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/ppImage.config
r24891 r24892 17 17 MASK.LOW BOOL TRUE # Mask pixels below valid range 18 18 VARIANCE.BUILD BOOL FALSE # Build internal variance image 19 PATTERN BOOL FALSE # Fit and remove pattern noise? 19 20 FRINGE BOOL FALSE # Fringe subtraction 20 21 PHOTOM BOOL FALSE # Source identification and photometry … … 25 26 USE.DEBURNED.IMAGE BOOL FALSE # use burntool-repaired image? 26 27 TILTYSTREAK.APPLY BOOL FALSE # apply the 'tiltystreak' tool 27 28 PATTERN BOOL FALSE # Fit and remove pattern noise?29 PATTERN.ORDER S32 1 # Polynomial order30 PATTERN.ITER S32 3 # Rejection iterations31 PATTERN.REJ F32 2.0 # Rejection threshold32 PATTERN.MEAN STR ROBUST_MEDIAN # Statistic for mean33 PATTERN.STDEV STR ROBUST_STDEV # Statistic for standard deviation34 28 35 29 … … 86 80 OVERSCAN.CONSTANT BOOL FALSE # Apply a known, fixed value? 87 81 OVERSCAN.VALUE F32 0.0 # value to apply, if requested 82 83 # Pattern subtraction options 84 PATTERN.ORDER S32 2 # Polynomial order 85 PATTERN.ITER S32 4 # Rejection iterations 86 PATTERN.REJ F32 2.5 # Rejection threshold 87 PATTERN.MEAN STR SAMPLE_MEAN # Statistic for mean 88 PATTERN.STDEV STR SAMPLE_STDEV # Statistic for standard deviation 88 89 89 90 # Fringe subtraction options -
trunk/ppImage/src/ppImage.h
r24485 r24892 37 37 bool doShutter; // Shutter correction 38 38 bool doFlat; // Flat-field normalisation 39 bool doPattern; // Pattern noise subtraction 39 40 bool doFringe; // Fringe subtraction 40 41 bool doPhotom; // Source identification and photometry … … 44 45 bool doStats; // call ppStats on the image 45 46 bool checkCTE; // measure pixel-based variance 46 bool applyParity; // Apply Cell parities47 bool applyParity; // Apply Cell parities 47 48 48 49 bool doCrosstalkMeasure; // measure crosstalk signal … … 93 94 float fringeKeep; // Fringe keep fraction 94 95 96 // Pattern noise subtraction 97 int patternOrder; // Polynomial order 98 int patternIter; // Clipping iterations 99 float patternRej; // Clipping threshold 100 psStatsOptions patternMean; // Statistic for mean 101 psStatsOptions patternStdev; // Statistic for stdev 102 95 103 int remnanceSize; // Size for remnance detection 96 104 float remnanceThresh; // Threshold for remnance detection -
trunk/ppImage/src/ppImageDetrendReadout.c
r24891 r24892 126 126 // Pattern noise correction 127 127 if (options->doPattern) { 128 if (!pmPatternRow(input, options->patternOrder, 129 options->patternIter, options->patternRej, options->patternMean, 130 options->patternStdev)) { 131 psFree(detview); 132 return false; 133 } 134 } 135 128 if (!pmPatternRow(input, options->patternOrder, options->patternIter, options->patternRej, 129 options->patternMean, options->patternStdev)) { 130 psFree(detview); 131 return false; 132 } 133 } 136 134 137 135 // Normalization by a single (known) constant -
trunk/ppImage/src/ppImageOptions.c
r24485 r24892 31 31 options->doShutter = false; // Shutter correction 32 32 options->doFlat = false; // Flat-field normalisation 33 options->doPattern = false; // Pattern noise subtraction 33 34 options->doFringe = false; // Fringe subtraction 34 35 options->doPhotom = false; // Source identification and photometry … … 86 87 options->fringeIter = 0; // Fringe iterations 87 88 options->fringeKeep = 1.0; // Fringe keep fraction 89 90 // Pattern noise values 91 92 options->patternOrder = 0; // Polynomial order 93 options->patternIter = 0; // Clipping iterations 94 options->patternRej = NAN; // Clipping rejection threshold 95 options->patternMean = PS_STAT_NONE; // Statistic for mean 96 options->patternStdev = PS_STAT_NONE; // Statistic for standard deviation 88 97 89 98 // Remnance values … … 225 234 options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE"); 226 235 options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER"); 236 options->doPattern = psMetadataLookupBool(NULL, recipe, "PATTERN"); 227 237 228 238 options->doStats = false; … … 298 308 options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP"); 299 309 310 // Pattern noise 311 options->patternOrder = psMetadataLookupS32(NULL, recipe, "PATTERN.ORDER"); 312 options->patternIter = psMetadataLookupS32(NULL, recipe, "PATTERN.ITER"); 313 options->patternRej = psMetadataLookupF32(NULL, recipe, "PATTERN.REJ"); 314 options->patternMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.MEAN")); 315 options->patternStdev = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.STDEV")); 316 300 317 // Remnance options 301 318 options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE");
Note:
See TracChangeset
for help on using the changeset viewer.
