Changeset 31154 for trunk/psphot/src/psphotBasicDeblend.c
- Timestamp:
- Apr 4, 2011, 1:12:39 PM (15 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
src/psphotBasicDeblend.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
- Property svn:ignore
-
old new 19 19 psphot-config 20 20 Doxyfile 21 a.out.dSYM
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
trunk/psphot/src/psphotBasicDeblend.c
r29936 r31154 63 63 for (int i = 0; i < SN->n; i++) { 64 64 source = sources->data[i]; 65 SN->data.F32[i] = source->peak-> SN;65 SN->data.F32[i] = source->peak->rawFlux; 66 66 } 67 67 psVector *index = psVectorSortIndex (NULL, SN); … … 115 115 // threshold is fraction of the source peak flux 116 116 // image is background subtracted; source->moments->Sky should always be 0.0 117 threshold = FRACTION * s ource->peak->SN;117 threshold = FRACTION * sqrt(source->peak->detValue); 118 118 // threshold is no less than NSIGMA 119 119 threshold = PS_MAX (threshold, NSIGMA); … … 138 138 testSource = overlap->data[k]; 139 139 if (testSource->mode & PM_SOURCE_MODE_BLEND) continue; 140 if (testSource->peak-> value > source->peak->value) continue;140 if (testSource->peak->rawFlux > source->peak->rawFlux) continue; 141 141 for (int j = 0; j < xv->n; j+=2) { 142 142 if (fabs(yv->data.F32[j] - testSource->peak->y) > 0.5) continue;
Note:
See TracChangeset
for help on using the changeset viewer.
