IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2007, 3:57:15 PM (18 years ago)
Author:
Paul Price
Message:

Implementing dual-convolution. This required reworking those
functions involved with calculating and solving the equations; moved
these into a separate file and made various other cleanups (e.g.,
assertions for pmSubtractionKernels). Removed the normalisation
(central pixel) term from all kernels, because this shouldn't be in
the second kernel (there's only one normalisation term between the two
kernels); the normalisation is treated explicitly in the equations,
along with the background (still only a constant background is
supported for now, but there's a lot of support for a polynomial
background for when I get around to putting it in the equations).
Tested the single convolution, and it's working; same results as
before, apparently. Haven't tested dual convolution yet.

File:
1 edited

Legend:

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

    r15443 r15756  
    232232    psVectorInit(orders, maxOrder);
    233233    pmSubtractionKernels *kernels = p_pmSubtractionKernelsRawISIS(size, spatialOrder,
    234                                                                   fwhms, orders); // Kernels
     234                                                                  fwhms, orders, mode); // Kernels
    235235    psFree(orders);
    236236    psFree(kernels->description);
     
    279279            continue;
    280280        }
    281         if (!pmSubtractionConvolveStamp(stamp, kernels, footprint, mode)) {
     281        if (!pmSubtractionConvolveStamp(stamp, kernels, footprint)) {
    282282            psError(PS_ERR_UNKNOWN, false, "Unable to convolve stamp %d.", i);
    283283            psFree(targets);
     
    505505
    506506        kernels->type = PM_SUBTRACTION_KERNEL_GUNK;
    507 
    508         kernels->subIndex = PS_SQR(2 * inner + 1) / 2 + numGaussians;
    509         assert(kernels->u->data.S32[kernels->subIndex] == 0 &&
    510                kernels->v->data.S32[kernels->subIndex] == 0);
    511507    }
    512508
Note: See TracChangeset for help on using the changeset viewer.