IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2007, 5:28:31 PM (19 years ago)
Author:
Paul Price
Message:

Propagate error from statistics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r12654 r12693  
    369369
    370370            // Combination
    371             psVectorStats(stats, pixels, errors, mask, 1);
     371            if (!psVectorStats(stats, pixels, errors, mask, 1)) {
     372                psError(PS_ERR_UNKNOWN, false, "Error in statistics.");
     373                psFree(index);
     374                psFree(pixels);
     375                psFree(mask);
     376                psFree(weights);
     377                psFree(errors);
     378                psFree(stats);
     379                psFree(invScale);
     380                return false;
     381            }
     382
    372383            outputImage[yOut][xOut] = psStatsGetValue(stats, params->combine);
    373384            if (params->weights) {
Note: See TracChangeset for help on using the changeset viewer.