Changeset 42021
- Timestamp:
- Feb 7, 2022, 11:02:54 AM (4 years ago)
- Location:
- branches/eam_branches/ipp-20211108/psphot/src
- Files:
-
- 2 edited
-
psphotBlendFit.c (modified) (1 diff)
-
psphotFindPeaks.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psphot/src/psphotBlendFit.c
r42015 r42021 79 79 80 80 fitOptions->nIter = psMetadataLookupS32(&status, recipe, "EXT_FIT_ITER"); // Max number of fit iterations 81 assert (status && fit Iter > 0);81 assert (status && fitOptions->nIter > 0); 82 82 83 83 fitOptions->minTol = psMetadataLookupF32 (&status, recipe, "EXT_FIT_MIN_TOL"); // Fit tolerance -
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.
