IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18293


Ignore:
Timestamp:
Jun 23, 2008, 12:46:54 PM (18 years ago)
Author:
Paul Price
Message:

Merging in dual convolution subtraction development.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackMatch.c

    r18206 r18293  
    3737    int renormWidth = psMetadataLookupS32(&mdok, config->arguments,
    3838                                          "RENORM.WIDTH"); // Width for renormalisation box
     39    float penalty = psMetadataLookupF32(NULL, config->arguments, "PENALTY"); // Penalty for wideness
    3940
    4041    if (!pmReadoutMaskNonfinite(readout, maskBad)) {
     
    115116        if (!pmSubtractionMatch(output, NULL, readout, fake, footprint, regionSize, spacing, threshold,
    116117                                sources, stampsName, type, size, order, widths, orders, inner, ringsOrder,
    117                                 binning, optimum, optWidths, optOrder, optThresh, iter, rej, maskBad,
    118                                 maskBlank, badFrac, PM_SUBTRACTION_MODE_1)) {
     118                                binning, penalty, optimum, optWidths, optOrder, optThresh, iter, rej,
     119                                maskBad, maskBlank, badFrac, PM_SUBTRACTION_MODE_1)) {
    119120            psError(PS_ERR_UNKNOWN, false, "Unable to match images.");
    120121            psFree(fake);
     
    151152                         PS_DATA_REGION | PS_META_DUPLICATE_OK, "Fake subtraction region", region);
    152153        psFree(region);
    153         pmSubtractionKernels *kernels = pmSubtractionKernelsPOIS(FAKE_SIZE, 0, PM_SUBTRACTION_MODE_1);
     154        pmSubtractionKernels *kernels = pmSubtractionKernelsPOIS(FAKE_SIZE, 0, penalty,
     155                                                                 PM_SUBTRACTION_MODE_1);
    154156        // Set solution to delta function
    155157        kernels->solution1 = psVectorAlloc(kernels->num + 2, PS_TYPE_F64);
Note: See TracChangeset for help on using the changeset viewer.