IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26887


Ignore:
Timestamp:
Feb 10, 2010, 6:43:51 PM (16 years ago)
Author:
eugene
Message:

updates from eam_branches/20091201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSmooth/src/ppSmoothReadout.c

    r26008 r26887  
    5151    psImageSmoothMask_Threaded(input->variance, input->variance, input->mask, maskVal, sigma * M_SQRT1_2, nSigma, minGauss);
    5252    psLogMsg("ppSmooth", PS_LOG_MINUTIA, "smooth variance: %f sec\n", psTimerMark("ppSmooth"));
     53    psImageConvolveSetThreads(oldThreads);
    5354
    5455    // determine covariance matrix for this smoothing, replace existing kernel
     56    oldThreads = psImageCovarianceSetThreads(true);
    5557    psKernel *kernel = psImageSmoothKernel(sigma, nSigma); // Kernel used for smoothing
    5658    psKernel *covar = psImageCovarianceCalculate(kernel, input->covariance); // Covariance matrix
     
    5860    input->covariance = covar;
    5961    psFree(kernel);
    60    
    61     // Calculate correction factor for the covariance produced by the (potentially multiple) smoothing
    6262    float factor = 1.0 / psImageCovarianceFactor(covar);
     63    psImageCovarianceSetThreads(oldThreads);
    6364
    6465    // record the effective area and significance scaling factor
     
    6667    psMetadataAddF32(recipe, PS_LIST_TAIL, "EFFECTIVE_AREA", PS_META_REPLACE, "Effective Area", effArea);
    6768    psMetadataAddF32(recipe, PS_LIST_TAIL, "SIGNIFICANCE_SCALE_FACTOR", PS_META_REPLACE, "Signicance scale factor", factor);
    68 
    69     psImageConvolveSetThreads(oldThreads);
    7069
    7170    return true;
Note: See TracChangeset for help on using the changeset viewer.