IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13349


Ignore:
Timestamp:
May 11, 2007, 4:52:27 AM (19 years ago)
Author:
rhl
Message:

stdev can be NaN where we subtracted residuals, so deal with threshold being NaN

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/pmFootprint.c

    r13301 r13349  
    10331033        const float stdev = sqrt(subWt->data.F32[y][x]);
    10341034        float threshold = subImg->data.F32[y][x] - nsigma_delta*stdev;
    1035         if (threshold < min_threshold) {
     1035        if (isnan(threshold) || threshold < min_threshold) {
    10361036#if 1                                   // min_threshold is assumed to be below the detection threshold,
    10371037                                        // so all the peaks are pmFootprint, and this isn't the brightest
Note: See TracChangeset for help on using the changeset viewer.