IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2007, 10:55:23 AM (19 years ago)
Author:
Paul Price
Message:

Adding function pmSubtractionKernelsOptimumISIS, which derives an optimum set of kernels for ISIS (and GUNK). Its use necessitated a few API changes to the other parts of the image subtraction.

File:
1 edited

Legend:

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

    r14534 r14671  
    239239
    240240bool pmSubtractionExtractStamps(psArray *stamps, psImage *reference, psImage *input, psImage *weight,
    241                                 int footprint, const pmSubtractionKernels *kernels)
     241                                int footprint, int kernelSize)
    242242{
    243243    PS_ASSERT_ARRAY_NON_NULL(stamps, false);
     
    254254        PS_ASSERT_IMAGE_TYPE(weight, PS_TYPE_F32, false);
    255255    }
     256    PS_ASSERT_INT_NONNEGATIVE(footprint, false);
     257    PS_ASSERT_INT_NONNEGATIVE(kernelSize, false);
    256258
    257259    int numCols = reference->numCols, numRows = reference->numRows; // Size of images
    258     int size = kernels->size + footprint; // Size of postage stamps
     260    int size = kernelSize + footprint; // Size of postage stamps
    259261
    260262    if (!weight) {
     
    303305
    304306
    305 bool pmSubtractionGenerateStamps(psArray *stamps, float fwhm, int footprint,
    306                                  const pmSubtractionKernels *kernels)
     307bool pmSubtractionGenerateStamps(psArray *stamps, float fwhm, int footprint, int kernelSize)
    307308{
    308309    PS_ASSERT_ARRAY_NON_NULL(stamps, false);
     
    310311    PS_ASSERT_INT_NONNEGATIVE(footprint, false);
    311312
    312     int size = kernels->size + footprint; // Size of postage stamps
     313    int size = kernelSize + footprint; // Size of postage stamps
    313314    int num = stamps->n;                // Number of stamps
    314315    float sigma = fwhm / (2.0 * sqrtf(2.0 * log(2.0))); // Gaussian sigma
Note: See TracChangeset for help on using the changeset viewer.