Changeset 33761 for trunk/psphot/src/psphotFindPeaks.c
- Timestamp:
- Apr 11, 2012, 11:56:11 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFindPeaks.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFindPeaks.c
r32348 r33761 4 4 // image must be constructed to represent (S/N)^2. If nMax is non-zero, only return a maximum 5 5 // of nMax peaks 6 psArray *psphotFindPeaks (pmReadout *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax ) {6 psArray *psphotFindPeaks (pmReadout *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax, int *totalPeaks) { 7 7 8 8 bool status = false; … … 18 18 psError(PSPHOT_ERR_DATA, false, "no peaks found in this image"); 19 19 return NULL; 20 } 21 // return the total number of peaks found before the nMax limit is applied 22 if (totalPeaks) { 23 *totalPeaks = peaks->n; 20 24 } 21 25
Note:
See TracChangeset
for help on using the changeset viewer.
