Changeset 4216 for trunk/psphot/src/find_peaks.c
- Timestamp:
- Jun 12, 2005, 3:49:21 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/find_peaks.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/find_peaks.c
r4215 r4216 16 16 NSIGMA = psMetadataLookupF32 (&status, config, "SMOOTH_NSIGMA"); 17 17 18 psImage *image = imdata->image; 19 psImage *smooth = psImageCopy (NULL, image, PS_TYPE_F32); 18 psImage *smooth = psImageCopy (NULL, imdata->image, PS_TYPE_F32); 20 19 psImageSmooth (smooth, SIGMA, NSIGMA); 21 20 22 21 psLogMsg ("psphot", 4, "smooth: %f sec\n", psTimerMark ("psphot")); 23 24 22 25 23 // find the peaks in the smoothed image … … 33 31 psArray *peaks = pmFindImagePeaks (smooth, threshold); 34 32 if (peaks == NULL) psAbort ("find peaks", "no peaks found"); 33 psFree (smooth); 35 34 // XXX Need to gracefully handle no source detections 36 35
Note:
See TracChangeset
for help on using the changeset viewer.
