IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30220


Ignore:
Timestamp:
Jan 7, 2011, 2:09:48 PM (15 years ago)
Author:
eugene
Message:

the culling process was slightly wrong: we should keep any significant peak which is separated from a brighter peak by the min threshold (nominally 1 sigma above sky); the old code was rejecting things if the min threshold was higher than the downward deviation (true for faint sources)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psModules/src/objects/pmFootprintCullPeaks.c

    r29004 r30220  
    2828  * Examine the peaks in a pmFootprint, and throw away the ones that are not sufficiently
    2929  * isolated.  More precisely, for each peak find the highest coll that you'd have to traverse
    30   * to reach a still higher peak --- and if that coll's more than nsigma DN below your
     30  * to reach a still higher peak --- and if that coll's more (less?) than nsigma DN below your
    3131  * starting point, discard the peak.
    3232  */
     
    9999        float threshold = flux - nsigma_delta*stdev_pad;
    100100
    101         if (isnan(threshold) || threshold < min_threshold) {
     101        if (isnan(threshold)) {
    102102            // min_threshold is assumed to be below the detection threshold,
    103103            // so all the peaks are pmFootprint, and this isn't the brightest
     
    109109            threshold = subImg->data.F32[y][x] - 10*FLT_EPSILON;
    110110        }
     111
     112        if (threshold < min_threshold) {
     113            threshold = min_threshold;
     114        }
    111115
    112116        // init peakFootprint here?
Note: See TracChangeset for help on using the changeset viewer.