IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2009, 11:21:56 AM (17 years ago)
Author:
eugene
Message:

always handle psVectorStats false return status (is an error); check for NAN results and handle as possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageMeasureCrosstalk.c

    r23903 r23989  
    149149
    150150                psStatsInit (stats);
    151                 psVectorStats (stats, vector, NULL, NULL, 0);
     151                if (!psVectorStats (stats, vector, NULL, NULL, 0)) {
     152                    psError(PS_ERR_UNKNOWN, false, "failure to measure stats");
     153                    return false;
     154                }
    152155                   
    153156                float background = psMetadataLookupF32 (&status, cell->analysis, "XTALK.REF");
Note: See TracChangeset for help on using the changeset viewer.