IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2009, 7:49:45 AM (17 years ago)
Author:
eugene
Message:

make it optional to set the mask bits for low and/or sat; renamed bad to low internally

File:
1 edited

Legend:

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

    r23426 r23825  
    1717    // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine.
    1818    if (options->doMaskBuild) {
    19         pmReadoutGenerateMask(input, options->satMask, options->badMask);
     19        psImageMaskType satMask = options->doMaskSat ? options->satMask : 0;
     20        psImageMaskType lowMask = options->doMaskLow ? options->lowMask : 0;
     21        pmReadoutGenerateMask(input, satMask, lowMask);
    2022    }
    2123    // apply the externally supplied mask to the input->mask pixels
     
    7476
    7577    if (options->doRemnance) {
    76         if (!pmRemnance(input, options->maskValue, options->badMask,
     78        if (!pmRemnance(input, options->maskValue, options->lowMask,
    7779                        options->remnanceSize, options->remnanceThresh)) {
    7880            psError(PS_ERR_UNKNOWN, false, "Unable to mask remnance.");
Note: See TracChangeset for help on using the changeset viewer.