IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2008, 10:26:37 AM (18 years ago)
Author:
eugene
Message:

re-org and cleanup of the mask bits to make it consistent with the pmConfigMaskSetBits concepts; ensure mark and mask are correctly used and supplied to psphot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageOptions.c

    r17688 r18556  
    5050
    5151    // 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
    5758
    5859    // Non-linearity default options
     
    190191    options->doWeightBuild = psMetadataLookupBool(NULL, recipe, "WEIGHT.BUILD");
    191192
    192     // Mask recipe options
     193    // Mask recipe options (note that mask bit values are set in ppImageSetMaskBits.c)
    193194    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?
    203195
    204196    options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
Note: See TracChangeset for help on using the changeset viewer.