IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2008, 4:38:23 PM (18 years ago)
Author:
Paul Price
Message:

Mask non-finite values when there's no provided mask.

File:
1 edited

Legend:

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

    r15374 r17221  
    7171            int x = j % image->numCols;
    7272            sampleValues->data.F32[i] = image->data.F32[y][x];
    73             if (mask && (!mask->data.PS_TYPE_MASK_DATA[y][x] & data->maskVal) &&
     73            if ((!mask || !(mask->data.PS_TYPE_MASK_DATA[y][x] & data->maskVal)) &&
    7474                !isfinite(sampleValues->data.F32[i])) {
    7575                if (!warnNonFinite) {
    76                     psWarning("Unmasked non-finite value detected at %d,%d", x, y);
     76                    psWarning("Unmasked non-finite value detected at %d,%d; "
     77                              "further warnings will be suppressed", x, y);
    7778                    warnNonFinite = true;
    7879                }
Note: See TracChangeset for help on using the changeset viewer.