Changeset 13593 for trunk/ppImage/src
- Timestamp:
- Jun 1, 2007, 6:16:29 PM (19 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 3 edited
-
ppImageDetrendReadout.c (modified) (2 diffs)
-
ppImageOptions.c (modified) (2 diffs)
-
ppImageOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendReadout.c
r13506 r13593 18 18 // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine. 19 19 if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) { 20 pmReadoutGenerateMask(input );20 pmReadoutGenerateMask(input, options->satMask, options->badMask); 21 21 } 22 22 // apply the externally supplied mask to the input->mask pixels … … 68 68 if (options->doFlat) { 69 69 pmReadout *flat = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.FLAT"); 70 if (!pmFlatField(input, flat )) {70 if (!pmFlatField(input, flat, options->flatMask)) { 71 71 return false; 72 72 } -
trunk/ppImage/src/ppImageOptions.c
r10214 r13593 24 24 // default flags for various activities 25 25 options->doMask = false; // Mask bad pixels 26 options->maskValue = 0xff; // Default mask value 26 options->maskValue = 0x00; // Default mask value 27 options->satMask = 0x00; // Saturated pixels 28 options->badMask = 0x00; // Bad pixels 29 options->flatMask = 0x00; // Bad flat pixels 27 30 28 31 options->doNonLin = false; // Non-linearity correction … … 163 166 // Mask recipe options 164 167 options->doMask = psMetadataLookupBool(NULL, recipe, "MASK"); 165 psMaskType maskValue = psMetadataLookupU8(&status, recipe, "MASK.VALUE");168 const char *masks = psMetadataLookupStr(&status, recipe, "MASK.VALUE"); 166 169 if (status) { 167 options->maskValue = maskValue; 168 } 170 options->maskValue = pmConfigMask(masks, config); 171 } 172 options->satMask = pmConfigMask("SAT", config); 173 options->badMask = pmConfigMask("BAD", config); 174 options->flatMask = pmConfigMask("FLAT", config); 175 169 176 170 177 options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS"); -
trunk/ppImage/src/ppImageOptions.h
r9857 r13593 6 6 bool doMask; // Mask bad pixels 7 7 psMaskType maskValue; // apply this bit-mask to choose masked bits 8 psMaskType satMask; // Mask value to give saturated pixels 9 psMaskType badMask; // Mask value to give bad pixels 10 psMaskType flatMask; // Mask value to give bad flat pixels 8 11 9 12 bool doBias; // Bias subtraction
Note:
See TracChangeset
for help on using the changeset viewer.
