IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34294


Ignore:
Timestamp:
Aug 6, 2012, 11:07:35 AM (14 years ago)
Author:
bills
Message:

make sure that all pixels non-finite image or variance pixels are masked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20120802/psphot/src/psphotMaskReadout.c

    r34086 r34294  
    5858            return false;
    5959        }
     60    }
     61
     62    // insure than any non-finite pixels in image or variance are masked
     63    // get the PSPHOT.MASK value from the config
     64    psImageMaskType maskValue;
     65    if (!pmConfigMaskSetBits (&maskValue, NULL, config)) {
     66        psError (PS_ERR_UNKNOWN, false, "Unable to define the mask bit values");
     67        return false;
     68    }
     69    if (!pmReadoutMaskInvalid(readout, maskValue, maskSat)) {
     70        psError (PS_ERR_UNKNOWN, false,  "Unable to mask invalid pixels in readout.");
     71        return false;
    6072    }
    6173
Note: See TracChangeset for help on using the changeset viewer.