Changeset 25027 for branches/pap/ppImage/src/ppImageOptions.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ppImage
- Property svn:mergeinfo deleted
-
branches/pap/ppImage/src/ppImageOptions.c
r23845 r25027 25 25 options->doNonLin = false; // Non-linearity correction 26 26 options->doOverscan = false; // Overscan subtraction 27 options->doNoiseMap = false; // Apply Read Noise Map 27 28 options->doBias = false; // Bias subtraction 28 29 options->doDark = false; // Dark subtraction … … 30 31 options->doShutter = false; // Shutter correction 31 32 options->doFlat = false; // Flat-field normalisation 33 options->doPattern = false; // Pattern noise subtraction 32 34 options->doFringe = false; // Fringe subtraction 33 35 options->doPhotom = false; // Source identification and photometry … … 36 38 options->doStats = false; // Measure and save image statistics 37 39 options->checkCTE = false; // Measure pixel-based variance 40 options->applyParity = false; // Apply Cell parities 38 41 39 42 // output files requested … … 58 61 options->lowMask = 0x00; // out-of-bounds (low) pixels (supplied to pmReadoutGenerateMask) 59 62 options->flatMask = 0x00; // Bad flat pixels (supplied to pmFlatField) 63 options->darkMask = 0x00; // Bad dark pixels (supplied to pmDarkApply) 60 64 options->blankMask = 0x00; // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic) 61 65 options->markValue = 0x00; // A safe bit for internal marking … … 83 87 options->fringeIter = 0; // Fringe iterations 84 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->patternThresh = NAN; // Threshold for ignoring pixels 96 options->patternMean = PS_STAT_NONE; // Statistic for mean 97 options->patternStdev = PS_STAT_NONE; // Statistic for standard deviation 85 98 86 99 // Remnance values … … 215 228 options->doCrosstalkCorrect = psMetadataLookupBool(NULL, recipe, "CROSSTALK.CORRECT"); 216 229 230 options->doNoiseMap = psMetadataLookupBool(NULL, recipe, "NOISEMAP"); 217 231 options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS"); 218 232 options->doDark = psMetadataLookupBool(NULL, recipe, "DARK"); … … 221 235 options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE"); 222 236 options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER"); 237 options->doPattern = psMetadataLookupBool(NULL, recipe, "PATTERN"); 223 238 224 239 options->doStats = false; … … 228 243 } 229 244 245 options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY"); 246 230 247 // binned image options 231 248 options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN"); … … 274 291 275 292 // even if not requested explicitly, if any of these are set, build an internal mask and variance: 276 if (options->do Bias || options->doOverscan || options->doDark || options->doShutter || options->doFlat ||293 if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat || 277 294 options->doPhotom) { 278 295 options->doMaskBuild = true; … … 292 309 options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP"); 293 310 311 // Pattern noise 312 options->patternOrder = psMetadataLookupS32(NULL, recipe, "PATTERN.ORDER"); 313 options->patternIter = psMetadataLookupS32(NULL, recipe, "PATTERN.ITER"); 314 options->patternRej = psMetadataLookupF32(NULL, recipe, "PATTERN.REJ"); 315 options->patternThresh = psMetadataLookupF32(NULL, recipe, "PATTERN.THRESH"); 316 options->patternMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.MEAN")); 317 options->patternStdev = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.STDEV")); 318 294 319 // Remnance options 295 320 options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE");
Note:
See TracChangeset
for help on using the changeset viewer.
