IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2007, 4:45:40 PM (19 years ago)
Author:
Paul Price
Message:

Allowing use of FFT convolution for masks. The program was spending a lot of time doing a direct convolution of the mask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMatch.c

    r15305 r15325  
    1515#include "pmSubtraction.h"
    1616#include "pmSubtractionMatch.h"
     17
     18
     19static bool useFFT = true;              // Do convolutions using FFT
    1720
    1821
     
    223226    memCheck("start");
    224227
    225     subMask = pmSubtractionMask(reference->mask, inMask, maskBad, size, footprint, badFrac);
    226     if (subMask) {
     228    subMask = pmSubtractionMask(reference->mask, inMask, maskBad, size, footprint, badFrac, useFFT);
     229    if (!subMask) {
    227230        psError(PS_ERR_UNKNOWN, false, "Unable to generate subtraction mask.");
    228231        return false;
     
    417420            if (!pmSubtractionConvolve(&convolved->image, &convolved->weight, &convolved->mask,
    418421                                       reference->image, reference->weight, subMask, maskBlank, region,
    419                                        solution, kernels, true)) {
     422                                       solution, kernels, useFFT)) {
    420423                psError(PS_ERR_UNKNOWN, false, "Unable to convolve reference image.");
    421424                goto ERROR;
Note: See TracChangeset for help on using the changeset viewer.