Changeset 4642 for trunk/psphot/src/find_peaks.c
- Timestamp:
- Jul 28, 2005, 7:04:10 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/find_peaks.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/find_peaks.c
r4216 r4642 9 9 10 10 // smooth the image 11 // should we also subtract a super-binned image? (as an option?)12 11 13 12 psTimerStart ("psphot"); … … 18 17 psImage *smooth = psImageCopy (NULL, imdata->image, PS_TYPE_F32); 19 18 psImageSmooth (smooth, SIGMA, NSIGMA); 20 21 19 psLogMsg ("psphot", 4, "smooth: %f sec\n", psTimerMark ("psphot")); 22 23 // find the peaks in the smoothed image24 20 25 21 psTimerStart ("psphot"); 26 22 23 // find the peaks in the smoothed image 27 24 NSIGMA = psMetadataLookupF32 (&status, config, "PEAK_NSIGMA"); 28 25 threshold = NSIGMA*sky->sampleStdev + sky->sampleMean; … … 32 29 if (peaks == NULL) psAbort ("find peaks", "no peaks found"); 33 30 psFree (smooth); 34 // XXX Need to gracefully handle no source detections35 31 36 32 // make this optional … … 41 37 return (peaks); 42 38 } 39 40 // In this function, we smooth the image, then search for the peaks 41 // Should we also subtract a super-binned image? (as an option?) 42 // We need to gracefully handle no source detections
Note:
See TracChangeset
for help on using the changeset viewer.
