- Timestamp:
- Mar 18, 2011, 2:10:35 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psphot/src/psphotBasicDeblend.c
r29936 r30975 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.
