IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2011, 2:10:35 PM (15 years ago)
Author:
eugene
Message:

we had 3 items conceptually equivalent to the brightness of a peak: "value", "flux", and "SN"; Ive modified pmPeak to carry explicitly named elements "rawFlux", "smoothFlux", and "detValue". Ive also added the corresponding variance values for rawFlux and smoothFlux. This lets us choose independently of the peak detection process whether flux comparisons are done relative to the smoothed or unsmoothed image. It also simplifies tests of the peak flux compared to something else

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotBasicDeblend.c

    r29936 r30975  
    6363    for (int i = 0; i < SN->n; i++) {
    6464        source = sources->data[i];
    65         SN->data.F32[i] = source->peak->SN;
     65        SN->data.F32[i] = source->peak->rawFlux;
    6666    }
    6767    psVector *index = psVectorSortIndex (NULL, SN);
     
    115115        // threshold is fraction of the source peak flux
    116116        // image is background subtracted; source->moments->Sky should always be 0.0
    117         threshold = FRACTION * source->peak->SN;
     117        threshold = FRACTION * sqrt(source->peak->detValue);
    118118        // threshold is no less than NSIGMA
    119119        threshold = PS_MAX (threshold, NSIGMA);
     
    138138            testSource = overlap->data[k];
    139139            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;
    141141            for (int j = 0; j < xv->n; j+=2) {
    142142                if (fabs(yv->data.F32[j] - testSource->peak->y) > 0.5) continue;
Note: See TracChangeset for help on using the changeset viewer.