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/psLib/src/imageops/psImageMapFit.c

    r21183 r23989  
    7373
    7474        // XXX does ROBUST_MEDIAN work with weight?
    75         psVectorStats(map->stats, f, NULL, mask, maskValue);
     75        if (!psVectorStats(map->stats, f, NULL, mask, maskValue)) {
     76            psError(PS_ERR_UNKNOWN, false, "failure to measure stats");
     77            return false;
     78        }
    7679
    7780        map->map->data.F32[0][0]   = psStatsGetValue(map->stats, mean);
Note: See TracChangeset for help on using the changeset viewer.