IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20667


Ignore:
Timestamp:
Nov 10, 2008, 4:33:46 PM (17 years ago)
Author:
Paul Price
Message:

Error handling when can't measure the background.

File:
1 edited

Legend:

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

    r20666 r20667  
    3030    psStats *stats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV); // Statistics
    3131    if (!psImageBackground(stats, NULL, image, mask, maskVal, rng)) {
     32        // Probably means the entire readout is bad
     33        psErrorClear();
    3234        psWarning("Unable to calculate image statistics: masking entire readout.");
    3335        psBinaryOp(mask, mask, "|", psScalarAlloc(maskRem, PS_TYPE_MASK));
    3436        psFree(stats);
    3537        psFree(rng);
    36         return false;
     38        return true;
    3739    }
    3840    psFree(rng);
Note: See TracChangeset for help on using the changeset viewer.