IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15664


Ignore:
Timestamp:
Nov 20, 2007, 3:04:54 PM (18 years ago)
Author:
Paul Price
Message:

Mask pixel if flat-field is not finite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmFlatField.c

    r13591 r15664  
    7777        for (int i = 0; i < inImage->numCols; i++) { \
    7878            ps##TYPE flatValue = flatImage->data.TYPE[j + yOffset][i + xOffset]; \
    79             if (flatValue <= 0.0 || (flatMask && flatMask->data.U8[j + yOffset][i + xOffset])) { \
     79            if (!isfinite(flatValue) || flatValue <= 0.0 ||
     80                (flatMask && flatMask->data.U8[j + yOffset][i + xOffset])) { \
    8081                if (inMask) { \
    8182                    inMask->data.PS_TYPE_MASK_DATA[j][i] |= badFlat; \
Note: See TracChangeset for help on using the changeset viewer.