Changeset 6427 for trunk/psphot/src/psphotBasicDeblend.c
- Timestamp:
- Feb 14, 2006, 6:33:17 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBasicDeblend.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBasicDeblend.c
r6379 r6427 2 2 3 3 // 2006.02.07 : no leaks 4 bool psphotBasicDeblend (psArray *sources, psMetadata *config , psStats *sky) {4 bool psphotBasicDeblend (psArray *sources, psMetadata *config) { 5 5 6 6 int N; … … 18 18 float NSIGMA = psMetadataLookupF32 (&status, config, "DEBLEND_SKY_NSIGMA"); 19 19 if (!status) NSIGMA = 5.0; 20 21 float minThreshold = NSIGMA*sky->sampleStdev;22 20 23 21 // we need sources spatially-sorted to find overlaps … … 83 81 // generate source contour (1/4 peak counts) 84 82 // set the threshold based on user inputs 85 threshold = FRACTION * (source->peak->counts - source->moments->Sky) + source->moments->Sky; 86 threshold = PS_MAX (threshold, minThreshold); 83 84 // threshold is fraction of the source peak flux 85 // image is background subtracted; source->moments->Sky should always be 0.0 86 threshold = FRACTION * source->moments->Peak; 87 // threshold is no less than NSIGMA above the local median sigma? 88 threshold = PS_MAX (threshold, NSIGMA*source->moments->dSky); 87 89 88 90 // generate a basic contour (set of x,y coordinates at-or-below flux level)
Note:
See TracChangeset
for help on using the changeset viewer.
