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/ppStack/src/ppStackMatch.c

    r20508 r20568  
    151151            int footprint = psMetadataLookupS32(NULL, ppsub, "STAMP.FOOTPRINT"); // Stamp half-size
    152152            float threshold = psMetadataLookupF32(NULL, ppsub, "STAMP.THRESHOLD"); // Threshold for stmps
     153            int stride = psMetadataLookupS32(NULL, ppsub, "STRIDE"); // Size of convolution patches
    153154            int iter = psMetadataLookupS32(NULL, ppsub, "ITER"); // Rejection iterations
    154155            float rej = psMetadataLookupF32(NULL, ppsub, "REJ"); // Rejection threshold
     
    228229
    229230            // Do the image matching
    230             if (!pmSubtractionMatch(output, NULL, readout, fake, footprint, regionSize, spacing, threshold,
    231                                     sources, stampsName, type, size, order, widths, orders, inner, ringsOrder,
    232                                     binning, penalty, optimum, optWidths, optOrder, optThresh, iter, rej,
    233                                     sysError, maskVal, maskBad, maskPoor, poorFrac, badFrac,
     231            if (!pmSubtractionMatch(output, NULL, readout, fake, footprint, stride, regionSize, spacing,
     232                                    threshold, sources, stampsName, type, size, order, widths, orders, inner,
     233                                    ringsOrder, binning, penalty, optimum, optWidths, optOrder, optThresh,
     234                                    iter, rej, sysError, maskVal, maskBad, maskPoor, poorFrac, badFrac,
    234235                                    PM_SUBTRACTION_MODE_1)) {
    235236                psError(PS_ERR_UNKNOWN, false, "Unable to match images.");
Note: See TracChangeset for help on using the changeset viewer.