Changeset 30220
- Timestamp:
- Jan 7, 2011, 2:09:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psModules/src/objects/pmFootprintCullPeaks.c
r29004 r30220 28 28 * Examine the peaks in a pmFootprint, and throw away the ones that are not sufficiently 29 29 * 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 your30 * to reach a still higher peak --- and if that coll's more (less?) than nsigma DN below your 31 31 * starting point, discard the peak. 32 32 */ … … 99 99 float threshold = flux - nsigma_delta*stdev_pad; 100 100 101 if (isnan(threshold) || threshold < min_threshold) {101 if (isnan(threshold)) { 102 102 // min_threshold is assumed to be below the detection threshold, 103 103 // so all the peaks are pmFootprint, and this isn't the brightest … … 109 109 threshold = subImg->data.F32[y][x] - 10*FLT_EPSILON; 110 110 } 111 112 if (threshold < min_threshold) { 113 threshold = min_threshold; 114 } 111 115 112 116 // init peakFootprint here?
Note:
See TracChangeset
for help on using the changeset viewer.
