Changeset 26887 for trunk/ppSmooth/src/ppSmoothReadout.c
- Timestamp:
- Feb 10, 2010, 6:43:51 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppSmooth/src/ppSmoothReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSmooth/src/ppSmoothReadout.c
r26008 r26887 51 51 psImageSmoothMask_Threaded(input->variance, input->variance, input->mask, maskVal, sigma * M_SQRT1_2, nSigma, minGauss); 52 52 psLogMsg("ppSmooth", PS_LOG_MINUTIA, "smooth variance: %f sec\n", psTimerMark("ppSmooth")); 53 psImageConvolveSetThreads(oldThreads); 53 54 54 55 // determine covariance matrix for this smoothing, replace existing kernel 56 oldThreads = psImageCovarianceSetThreads(true); 55 57 psKernel *kernel = psImageSmoothKernel(sigma, nSigma); // Kernel used for smoothing 56 58 psKernel *covar = psImageCovarianceCalculate(kernel, input->covariance); // Covariance matrix … … 58 60 input->covariance = covar; 59 61 psFree(kernel); 60 61 // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing62 62 float factor = 1.0 / psImageCovarianceFactor(covar); 63 psImageCovarianceSetThreads(oldThreads); 63 64 64 65 // record the effective area and significance scaling factor … … 66 67 psMetadataAddF32(recipe, PS_LIST_TAIL, "EFFECTIVE_AREA", PS_META_REPLACE, "Effective Area", effArea); 67 68 psMetadataAddF32(recipe, PS_LIST_TAIL, "SIGNIFICANCE_SCALE_FACTOR", PS_META_REPLACE, "Signicance scale factor", factor); 68 69 psImageConvolveSetThreads(oldThreads);70 69 71 70 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
