IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26575


Ignore:
Timestamp:
Jan 12, 2010, 3:55:27 PM (16 years ago)
Author:
eugene
Message:

add ISIS_RADIAL (ISIS + radial Hermitian); add fields for new residual stats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/imcombine/pmSubtractionKernels.h

    r26491 r26575  
    1010    PM_SUBTRACTION_KERNEL_POIS,         ///< Pan-STARRS Optimal Image Subtraction --- delta functions
    1111    PM_SUBTRACTION_KERNEL_ISIS,         ///< Traditional kernel --- gaussians modified by polynomials
     12    PM_SUBTRACTION_KERNEL_ISIS_RADIAL,  ///< ISIS + higher-order radial Hermitians
    1213    PM_SUBTRACTION_KERNEL_HERM,         ///< Hermitian polynomial kernels
    1314    PM_SUBTRACTION_KERNEL_DECONV_HERM,  ///< Deconvolved Hermitian polynomial kernels
     
    4849    float mean, rms;                    ///< Mean and RMS of chi^2 from stamps
    4950    int numStamps;                      ///< Number of good stamps
     51    float fSigResMean;                  ///< mean fractional stdev of residuals
     52    float fSigResStdev;                 ///< stdev of fractional stdev of residuals
     53    float fMaxResMean;                  ///< mean fractional positive swing in residuals
     54    float fMaxResStdev;                 ///< stdev of fractional positive swing in residuals
     55    float fMinResMean;                  ///< mean fractional negative swing in residuals
     56    float fMinResStdev;                 ///< stdev of fractional negative swing in residuals
    5057} pmSubtractionKernels;
    5158
     
    7380    PS_ASSERT_VECTOR_SIZE((KERNELS)->v, (KERNELS)->num, RETURNVALUE); \
    7481    if ((KERNELS)->type == PM_SUBTRACTION_KERNEL_ISIS) { \
     82        PS_ASSERT_VECTOR_NON_NULL((KERNELS)->widths, RETURNVALUE); \
     83        PS_ASSERT_VECTOR_TYPE((KERNELS)->widths, PS_TYPE_F32, RETURNVALUE); \
     84        PS_ASSERT_VECTOR_SIZE((KERNELS)->widths, (KERNELS)->num, RETURNVALUE); \
     85    } \
     86    if ((KERNELS)->type == PM_SUBTRACTION_KERNEL_ISIS_RADIAL) { \
    7587        PS_ASSERT_VECTOR_NON_NULL((KERNELS)->widths, RETURNVALUE); \
    7688        PS_ASSERT_VECTOR_TYPE((KERNELS)->widths, PS_TYPE_F32, RETURNVALUE); \
     
    122134}
    123135
     136// Generate 1D convolution kernel for ISIS
    124137psVector *pmSubtractionKernelISIS(float sigma, // Gaussian width
    125138                                       int order, // Polynomial order
     
    127140    );
    128141
     142// Generate 1D convolution kernel for HERM (normalized for 2D)
    129143psVector *pmSubtractionKernelHERM(float sigma, // Gaussian width
    130144                                       int order, // Polynomial order
     
    183197                                               float penalty, ///< Penalty for wideness
    184198                                               pmSubtractionMode mode ///< Mode for subtraction
     199                                               );
     200
     201/// Generate ISIS + RADIAL_HERM kernels
     202pmSubtractionKernels *pmSubtractionKernelsISIS_RADIAL(int size, ///< Half-size of the kernel
     203                                                      int spatialOrder, ///< Order of spatial variations
     204                                                      const psVector *fwhms, ///< Gaussian FWHMs
     205                                                      const psVector *orders, ///< Polynomial order of gaussians
     206                                                      float penalty, ///< Penalty for wideness
     207                                                      pmSubtractionMode mode ///< Mode for subtraction
    185208                                               );
    186209
Note: See TracChangeset for help on using the changeset viewer.