Changeset 4901 for trunk/psphot/src/find_peaks.c
- Timestamp:
- Aug 29, 2005, 5:44:55 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
r4642 r4901 21 21 psTimerStart ("psphot"); 22 22 23 // find the peaks in the smoothed image23 // set peak threshold 24 24 NSIGMA = psMetadataLookupF32 (&status, config, "PEAK_NSIGMA"); 25 25 threshold = NSIGMA*sky->sampleStdev + sky->sampleMean; 26 26 psLogMsg ("psphot", 3, "threshold: %f DN\n", threshold); 27 27 28 // find the peaks in the smoothed image 28 29 psArray *peaks = pmFindImagePeaks (smooth, threshold); 29 30 if (peaks == NULL) psAbort ("find peaks", "no peaks found"); … … 31 32 32 33 // make this optional 33 DumpPeaks (peaks, "peaks.dat");34 // DumpPeaks (peaks, "peaks.dat"); 34 35 35 36 psLogMsg ("psphot", 3, "%d peaks: %f sec\n", peaks->n, psTimerMark ("psphot"));
Note:
See TracChangeset
for help on using the changeset viewer.
