IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2006, 5:14:54 AM (20 years ago)
Author:
rhl
Message:

Fix smoothing (and normalisation) of weight map --- we're adding them in quadrature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFindPeaks.c

    r9835 r10175  
    2323
    2424    psImage *smooth_wt = psImageCopy (NULL, readout->weight, PS_TYPE_F32);
    25     psImageSmooth (smooth_wt, SIGMA, NSIGMA);
     25    psImageSmooth (smooth_wt, SIGMA/sqrt(2), NSIGMA);
     26    smooth_wt = (psImage*)psBinaryOp(smooth_wt, smooth_wt, "*",
     27                                     psScalarAlloc(1/(4*M_PI*PS_SQR(SIGMA)), PS_TYPE_F32));
    2628    psLogMsg ("psphot", 4, "smooth weight: %f sec\n", psTimerMark ("psphot"));
    2729
Note: See TracChangeset for help on using the changeset viewer.