IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 25, 2007, 5:29:11 PM (19 years ago)
Author:
Paul Price
Message:

Check mask value before warning about non-finite value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsReadout.c

    r14359 r14392  
    7171            int x = j % image->numCols;
    7272            sampleValues->data.F32[i] = image->data.F32[y][x];
    73             if (!isfinite(sampleValues->data.F32[i])) {
     73            if (mask && (!mask->data.PS_TYPE_MASK_DATA[y][x] & maskVal) &&
     74                !isfinite(sampleValues->data.F32[i])) {
    7475                if (!warnNonFinite) {
    7576                    psWarning("Non-finite value detected at %d,%d", x, y);
Note: See TracChangeset for help on using the changeset viewer.