IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2010, 3:14:03 PM (16 years ago)
Author:
Paul Price
Message:

Threading psImageCovarianceCalculate and psImageCovarianceBin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/imcombine/pmSubtraction.c

    r26769 r26794  
    13251325
    13261326    // Calculate covariances
    1327     // This can take a while, so we only do it for a single instance
    1328     // XXX psImageCovarianceCalculate could be multithreaded
     1327    // This can be fairly involved, so we only do it for a single instance
     1328    // Enable threads for covariance calculation, since we're not threading on top of it.
     1329    oldThreads = psImageCovarianceSetThreads(true);
    13291330    if (kernels->mode == PM_SUBTRACTION_MODE_1 || kernels->mode == PM_SUBTRACTION_MODE_DUAL) {
    13301331        psKernel *kernel = pmSubtractionKernel(kernels, 0.0, 0.0, false); // Convolution kernel
     
    13401341        psFree(kernel);
    13411342    }
     1343    psImageCovarianceSetThreads(oldThreads);
    13421344
    13431345    // Copy anything that wasn't convolved
Note: See TracChangeset for help on using the changeset viewer.