IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2010, 5:32:15 PM (16 years ago)
Author:
Paul Price
Message:

Attempting to use a wide function for the normalisation component, rather than delta-function.

File:
1 edited

Legend:

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

    r26593 r26717  
    1212    PM_SUBTRACTION_KERNEL_ISIS_RADIAL,  ///< ISIS + higher-order radial Hermitians
    1313    PM_SUBTRACTION_KERNEL_HERM,         ///< Hermitian polynomial kernels
    14     PM_SUBTRACTION_KERNEL_DECONV_HERM,  ///< Deconvolved Hermitian polynomial kernels
     14    PM_SUBTRACTION_KERNEL_DECONV_HERM,  ///< Deconvolved Hermitian polynomial kernels
    1515    PM_SUBTRACTION_KERNEL_SPAM,         ///< Summed Pixels for Advanced Matching --- summed delta functions
    1616    PM_SUBTRACTION_KERNEL_FRIES,        ///< Fibonacci Radius Increases Excellence of Subtraction
     
    3737    psVector *uStop, *vStop;            ///< Width of kernel element (SPAM,FRIES only)
    3838    psArray *preCalc;                   ///< Array of images containing pre-calculated kernel (for ISIS, HERM or DECONV_HERM)
     39    psKernel *norm;                     ///< Normalisation component
    3940    float penalty;                      ///< Penalty for wideness
    4041    psVector *penalties;                ///< Penalty for each kernel component
     
    4950    float mean, rms;                    ///< Mean and RMS of chi^2 from stamps
    5051    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
    57     psArray *sampleStamps;              ///< array of brightest set of stamps for output visualizations
     52    float fSigResMean;                  ///< mean fractional stdev of residuals
     53    float fSigResStdev;                 ///< stdev of fractional stdev of residuals
     54    float fMaxResMean;                  ///< mean fractional positive swing in residuals
     55    float fMaxResStdev;                 ///< stdev of fractional positive swing in residuals
     56    float fMinResMean;                  ///< mean fractional negative swing in residuals
     57    float fMinResStdev;                 ///< stdev of fractional negative swing in residuals
     58    psArray *sampleStamps;              ///< array of brightest set of stamps for output visualizations
    5859} pmSubtractionKernels;
    5960
    6061// pmSubtractionKernels->preCalc is an array of pmSubtractionKernelPreCalc structures
    6162typedef struct {
    62     psVector *uCoords;                  // used by RINGS
    63     psVector *vCoords;                  // used by RINGS
    64     psVector *poly;                     // used by RINGS
    65 
    66     psVector *xKernel;                  // used by ISIS, HERM, DECONV_HERM
    67     psVector *yKernel;                  // used by ISIS, HERM, DECONV_HERM
    68     psKernel *kernel;                   // used by ISIS, HERM, DECONV_HERM
     63    psVector *uCoords;                  // used by RINGS
     64    psVector *vCoords;                  // used by RINGS
     65    psVector *poly;                     // used by RINGS
     66
     67    psVector *xKernel;                  // used by ISIS, HERM, DECONV_HERM
     68    psVector *yKernel;                  // used by ISIS, HERM, DECONV_HERM
     69    psKernel *kernel;                   // used by ISIS, HERM, DECONV_HERM
    6970} pmSubtractionKernelPreCalc;
    7071
     
    168169pmSubtractionKernelPreCalc *pmSubtractionKernelPreCalcAlloc(
    169170    pmSubtractionKernelsType type, ///< type of kernel to allocate (not all can be pre-calculated)
    170     int uOrder,                    ///< order in x-direction
    171     int vOrder,                    ///< order in x-direction
    172     int size,                      ///< Half-size of the kernel
    173     float sigma                    ///< sigma of gaussian kernel
     171    int uOrder,                    ///< order in x-direction
     172    int vOrder,                    ///< order in x-direction
     173    int size,                      ///< Half-size of the kernel
     174    float sigma                    ///< sigma of gaussian kernel
    174175    );
    175176
     
    202203/// Generate ISIS + RADIAL_HERM kernels
    203204pmSubtractionKernels *pmSubtractionKernelsISIS_RADIAL(int size, ///< Half-size of the kernel
    204                                                       int spatialOrder, ///< Order of spatial variations
    205                                                       const psVector *fwhms, ///< Gaussian FWHMs
    206                                                       const psVector *orders, ///< Polynomial order of gaussians
    207                                                       float penalty, ///< Penalty for wideness
    208                                                       pmSubtractionMode mode ///< Mode for subtraction
     205                                                      int spatialOrder, ///< Order of spatial variations
     206                                                      const psVector *fwhms, ///< Gaussian FWHMs
     207                                                      const psVector *orders, ///< Polynomial order of gaussians
     208                                                      float penalty, ///< Penalty for wideness
     209                                                      pmSubtractionMode mode ///< Mode for subtraction
    209210                                               );
    210211
     
    220221/// Generate DECONV_HERM kernels
    221222pmSubtractionKernels *pmSubtractionKernelsDECONV_HERM(int size, ///< Half-size of the kernel
    222                                                      int spatialOrder, ///< Order of spatial variations
    223                                                      const psVector *fwhms, ///< Gaussian FWHMs
    224                                                      const psVector *orders, ///< order of hermitian polynomials
    225                                                      float penalty, ///< Penalty for wideness
    226                                                      pmSubtractionMode mode ///< Mode for subtraction
     223                                                     int spatialOrder, ///< Order of spatial variations
     224                                                     const psVector *fwhms, ///< Gaussian FWHMs
     225                                                     const psVector *orders, ///< order of hermitian polynomials
     226                                                     float penalty, ///< Penalty for wideness
     227                                                     pmSubtractionMode mode ///< Mode for subtraction
    227228    );
    228229
Note: See TracChangeset for help on using the changeset viewer.