IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2011, 12:19:53 PM (15 years ago)
Author:
eugene
Message:

some code reorganzation (move all types into pmSubtractionTypes.h); add stage to check on different mode and order options, choosing best based on chisq of subtraction; careful with the window and the kernel sizes: if the measured kron radius is too large, allow the window to grow as needed; use the 1st radial moment measured on the stamps to set the kernel scaling; remove some cruft from the code; calling program now passes in kernel scaling options to be used when 1st radial moment is measured; new function to update the kernel description string used for kernel I/O; update the kernel description after the spatial order and direction is chosen; need to carry the kernel fwhms and spatial order to allow for update; calculate the psf-match solution errors; psf solution now uses the weights to get sensible chisq values, window is used to calculate the moments; penalty scale is now adjusted to be consistent with sensible reduced chisq; improved visualizations; use range-limiter in SVD of 1e-10; calculate chisq and moments for the solution and use in the evaluation; split out the stamp selection / convolution steps; reject sources after fitting a model to the chisq assuming non-zero systematic error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMatch.h

    r29543 r30622  
    88#include <pmSubtractionKernels.h>
    99#include <pmSubtractionStamps.h>
     10#include <pmSubtraction.h>
    1011
    1112/// Match two images
     
    2627                        int size,       ///< Kernel half-size
    2728                        int order,      ///< Spatial polynomial order
    28                         const psVector *widths, ///< ISIS Gaussian widths
     29                        psVector *widths, ///< ISIS Gaussian widths
    2930                        const psVector *orders, ///< ISIS Polynomial orders
    3031                        int inner,      ///< Inner radius for various kernel types
     
    100101
    101102/// Scale subtraction parameters according to the FWHMs of the inputs
    102 bool pmSubtractionParamsScale(
    103     int *kernelSize,                    ///< Half-size of the kernel
    104     int *stampSize,                     ///< Half-size of the stamp (footprint)
    105     psVector *widths,                   ///< ISIS widths
    106     float scaleRef,                     ///< Reference width for scaling
    107     float scaleMin,                     ///< Minimum scaling ratio, or NAN
    108     float scaleMax                      ///< Maximum scaling ratio, or NAN
     103// bool pmSubtractionParamsScale(
     104//     int *kernelSize,                    ///< Half-size of the kernel
     105//     int *stampSize,                     ///< Half-size of the stamp (footprint)
     106//     psVector *widths,                   ///< ISIS widths
     107//     float scaleRef,                     ///< Reference width for scaling
     108//     float scaleMin,                     ///< Minimum scaling ratio, or NAN
     109//     float scaleMax                      ///< Maximum scaling ratio, or NAN
     110//     );
     111
     112bool pmSubtractionParamsScale(int *kernelSize, int *stampSize, psVector *widths, float fwhm1, float fwhm2);
     113
     114bool pmSubtractionParamScaleOptions(bool scale, float scaleRef, float scaleMin, float scaleMax);
     115
     116bool pmSubtractionMatchAttempt(
     117    pmSubtractionQuality **bestMatch,
     118    pmSubtractionKernels *kernels,
     119    pmSubtractionStampList *stamps,
     120    pmSubtractionMode mode,
     121    int spatialOrder,
     122    bool final
    109123    );
    110124
Note: See TracChangeset for help on using the changeset viewer.