Changeset 13461 for trunk/ppImage/src/ppImageDetrendReadout.c
- Timestamp:
- May 21, 2007, 6:23:24 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDetrendReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendReadout.c
r10415 r13461 15 15 // find the currently selected readout 16 16 pmReadout *input = pmFPAfileThisReadout(config->files, view, "PPIMAGE.INPUT"); 17 18 // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine. 19 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) { 20 // create the target mask and weight images 21 pmReadoutGenerateMaskWeight(input, true); 22 } 23 // apply the externally supplied mask to the input->mask pixels 24 if (options->doMask) { 25 pmReadout *mask = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.MASK"); 26 pmMaskBadPixels(input, mask, options->maskValue); 27 } 17 28 18 29 # if 0 … … 41 52 } 42 53 43 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) {44 // create the target mask and weight images45 pmReadoutGenerateMaskWeight(input, true);46 }47 48 // apply the externally supplied mask to the input->mask pixels49 if (options->doMask) {50 pmReadout *mask = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.MASK");51 pmMaskBadPixels(input, mask, options->maskValue);52 }53 54 54 // Shutter correction 55 55 if (options->doShutter) { … … 62 62 // Flat-field correction (no options used?) 63 63 if (options->doFlat) { 64 pmReadoutGenerateMaskWeight(input, true);65 64 pmReadout *flat = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.FLAT"); 66 65 if (!pmFlatField(input, flat)) {
Note:
See TracChangeset
for help on using the changeset viewer.
