IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2007, 4:28:24 PM (19 years ago)
Author:
Paul Price
Message:

Adding function pmSubtractionOrder (choice of name is probably not the best) to determine which of the two images under consideration should be convolved to match the other. Originally was doing this by solving for a RING kernel of width 1, going both ways, and comparing the deviations for each. However, when doing stacks this didn't work (convolving the wider fake Gaussian image gave smaller deviations than convolving the narrower input image), so have settled on measuring the second moments for each stamp, and using the ratio of moments between the two images to determine which is wider; this seems to work for both subtracting and stacking images. In the process, plugged a few memory leaks, and added code to support convolving either way (or both ways; this will be useful when it comes time to code the dual convolution algorithm).

File:
1 edited

Legend:

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

    r14804 r15443  
    1515                                                      const pmSubtractionStampList *stamps, ///< Stamps
    1616                                                      int footprint, ///< Convolution footprint for stamps
    17                                                       float tolerance ///< Maximum difference in chi^2
     17                                                      float tolerance, ///< Maximum difference in chi^2
     18                                                      pmSubtractionMode mode // Mode for subtraction
    1819    );
    1920
Note: See TracChangeset for help on using the changeset viewer.