IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2009, 2:51:53 PM (17 years ago)
Author:
Paul Price
Message:

Convering 'weight' to 'variance' where appropriate. Mostly just propagating changes from psModules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/psphot/src/psphotSignificanceImage.c

    r21183 r21213  
    11# include "psphotInternal.h"
    22
    3 // In this function, we smooth the image and weight, then generate the significance image :
     3// In this function, we smooth the image and variance, then generate the significance image :
    44// (S/N)^2.  If FWMH_X,Y have been recorded, use them, otherwise use PEAKS_SMOOTH_SIGMA for the
    55// smoothing kernel.
     
    1010    bool guess = false;
    1111
    12     // smooth the image and weight map
     12    // smooth the image and variance map
    1313    psTimerStart ("psphot.smooth");
    1414    bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading in psImageConvolve
     
    4848    psLogMsg("psphot", PS_LOG_MINUTIA, "smooth image: %f sec\n", psTimerMark("psphot.smooth"));
    4949
    50     // Smooth the weight, applying the mask as we go.  The variance is smoothed by the PSF^2,
     50    // Smooth the variance, applying the mask as we go.  The variance is smoothed by the PSF^2,
    5151    // renomalized to maintain the input level of the variance.  We achieve this by smoothing
    5252    // with a Gaussian with sigma = SIGMA_SMTH/sqrt(2) with unity normalization.  Note that
     
    5555    // measurements based on apertures comparable to or larger than the smoothing kernel, the
    5656    // effective per-pixel variance is maintained.
    57     psImage *smooth_wt = psImageCopy(NULL, readout->weight, PS_TYPE_F32);
     57    psImage *smooth_wt = psImageCopy(NULL, readout->variance, PS_TYPE_F32);
    5858    psImageSmoothMask_Threaded(smooth_wt, smooth_wt, readout->mask, maskVal, SIGMA_SMTH * M_SQRT1_2,
    5959                      NSIGMA_SMTH, minGauss);
    60     psLogMsg("psphot", PS_LOG_MINUTIA, "smooth weight: %f sec\n", psTimerMark("psphot.smooth"));
     60    psLogMsg("psphot", PS_LOG_MINUTIA, "smooth variance: %f sec\n", psTimerMark("psphot.smooth"));
    6161
    6262    psImage *mask = readout->mask;
Note: See TracChangeset for help on using the changeset viewer.