- Timestamp:
- Feb 7, 2022, 11:02:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psphot/src/psphotFindPeaks.c
r41968 r42021 41 41 // psVectorStats will only fail due to a programming error (e.g., invalid vector type) 42 42 psError(PSPHOT_ERR_UNKNOWN, false, "Unable to perform statistics to measure image quality"); 43 psFree (SNvalues); 43 44 return NULL; 44 45 } 46 psFree (SNvalues); 47 45 48 if (!isfinite(stats->sampleMedian)) { 46 49 // could not determine relationship between SN threshold and image values 47 50 // XXX fall-back could be the standard analysis above. 48 51 psLogMsg ("psphot", PS_LOG_INFO, "failure to map SN to image values"); 52 psFree (stats); 49 53 goto use_significance; 50 54 } 51 55 52 56 float alt_threshold = stats->sampleMedian; 57 psFree (stats); 58 53 59 peaks = pmPeaksInImage (significance->image, alt_threshold); 54 60 if (peaks == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
