- Timestamp:
- Jul 30, 2010, 9:39:15 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100621/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotSignificanceImage.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psphot
- Property svn:mergeinfo changed
/branches/pap/psphot merged: 28484-28485,28534-28535
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20100621/psphot/src/psphotSignificanceImage.c
r26894 r28797 76 76 // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing 77 77 psKernel *kernel = psImageSmoothKernel(SIGMA_SMTH, NSIGMA_SMTH); // Kernel used for smoothing 78 float factor = 1.0 / psImageCovarianceCalculateFactor(kernel, readout->covariance); 78 double sum2 = 0.0; // Sum of kernel squared 79 for (int y = kernel->yMin; y <= kernel->yMax; y++) { 80 for (int x = kernel->xMin; x <= kernel->xMax; x++) { 81 sum2 += PS_SQR(kernel->kernel[y][x]); 82 } 83 } 84 float factor = 1.0 / (sum2 * psImageCovarianceCalculateFactor(kernel, readout->covariance)); 79 85 psFree(kernel); 80 86
Note:
See TracChangeset
for help on using the changeset viewer.
