Changeset 18556 for trunk/ppImage/src/ppImageOptions.c
- Timestamp:
- Jul 15, 2008, 10:26:37 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageOptions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageOptions.c
r17688 r18556 50 50 51 51 // default flags for various activities 52 options->maskValue = 0x00; // Default mask value 53 options->satMask = 0x00; // Saturated pixels 54 options->badMask = 0x00; // Bad pixels 55 options->flatMask = 0x00; // Bad flat pixels 56 options->blankMask = 0x00; // Blank (no data, cell gap) pixels 52 options->maskValue = 0x00; // Default mask value (used to skip / ignore pixels) 53 options->satMask = 0x00; // Saturated pixels (supplied to pmReadoutGenerateMask) 54 options->badMask = 0x00; // Bad (low) pixels (supplied to pmReadoutGenerateMask) 55 options->flatMask = 0x00; // Bad flat pixels (supplied to pmFlatField) 56 options->blankMask = 0x00; // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic) 57 options->markValue = 0x00; // A safe bit for internal marking 57 58 58 59 // Non-linearity default options … … 190 191 options->doWeightBuild = psMetadataLookupBool(NULL, recipe, "WEIGHT.BUILD"); 191 192 192 // Mask recipe options 193 // Mask recipe options (note that mask bit values are set in ppImageSetMaskBits.c) 193 194 options->doMask = psMetadataLookupBool(NULL, recipe, "MASK"); 194 const char *masks = psMetadataLookupStr(&status, recipe, "MASK.VALUE");195 if (status) {196 options->maskValue = pmConfigMask(masks, config);197 }198 options->satMask = pmConfigMask("SAT", config);199 options->badMask = pmConfigMask("BAD", config);200 options->flatMask = pmConfigMask("FLAT", config);201 options->blankMask = pmConfigMask("BLANK", config);202 // XXX should it be an error for these to not exist?203 195 204 196 options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
Note:
See TracChangeset
for help on using the changeset viewer.
