IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2008, 2:07:23 PM (18 years ago)
Author:
Paul Price
Message:

Adding parameter 'stride' to control the size of convolution patches (in pmSubtractionConvolve). Previously we have made this the (full) size of the kernel, but there's no reason why it can't be bigger. Making this value larger means the kernel doesn't have to be generated as often.

File:
1 edited

Legend:

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

    r20505 r20568  
    9292
    9393bool pmSubtractionMatch(pmReadout *conv1, pmReadout *conv2, const pmReadout *ro1, const pmReadout *ro2,
    94                         int footprint, float regionSize, float stampSpacing, float threshold,
     94                        int footprint, int stride, float regionSize, float stampSpacing, float threshold,
    9595                        const psArray *sources, const char *stampsName,
    9696                        pmSubtractionKernelsType type, int size, int spatialOrder,
     
    139139
    140140    PS_ASSERT_INT_NONNEGATIVE(footprint, false);
     141    PS_ASSERT_INT_NONNEGATIVE(stride, false);
    141142    // regionSize can be just about anything (except maybe negative, but it can be NAN)
    142143    PS_ASSERT_FLOAT_LARGER_THAN(stampSpacing, 0.0, false);
     
    396397
    397398            psTrace("psModules.imcombine", 2, "Convolving...\n");
    398             if (!pmSubtractionConvolve(conv1, conv2, ro1, ro2, subMask, maskBad, maskPoor, poorFrac,
     399            if (!pmSubtractionConvolve(conv1, conv2, ro1, ro2, subMask, stride, maskBad, maskPoor, poorFrac,
    399400                                       sysError, region, kernels, true, useFFT)) {
    400401                psError(PS_ERR_UNKNOWN, false, "Unable to convolve image.");
Note: See TracChangeset for help on using the changeset viewer.