IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2010, 4:29:36 AM (16 years ago)
Author:
Paul Price
Message:

Use new function to speed up calculation of covariance factor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psphot/src/psphotSignificanceImage.c

    r25383 r26705  
    7777    // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing
    7878    psKernel *kernel = psImageSmoothKernel(SIGMA_SMTH, NSIGMA_SMTH); // Kernel used for smoothing
    79     psKernel *covar = psImageCovarianceCalculate(kernel, readout->covariance); // Covariance matrix
     79    float factor = 1.0 / psImageCovarianceCalculateFactor(kernel, readout->covariance);
    8080    psFree(kernel);
    81     float factor = 1.0 / psImageCovarianceFactor(covar);
    82     psFree(covar);
    8381
    8482    // record the effective area and significance scaling factor
Note: See TracChangeset for help on using the changeset viewer.