IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29595


Ignore:
Timestamp:
Oct 28, 2010, 5:42:58 PM (16 years ago)
Author:
eugene
Message:

separate the calculation of the kernel normalization from the moments; calculate the moments using fabs(flux), since the kernel may have negative flux

File:
1 edited

Legend:

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

    r29594 r29595  
    105105        int fullSize = 2 * size + 1;    // Full size of kernel
    106106
    107         /* in the CENTRAL_DELTA case, the final convolution kernel replaces the central delta
    108            function which was subtracted to force zero flux for each kernel.  for other cases,
    109            we have to include the zero order component of the normalization here.
    110          */
    111 
    112         //# if (CENTRAL_DELTA)
    113 # if (1)
    114107        float norm = 0.0;               // Normalisation (kernel sum)
    115 # else
    116         float norm = 1.0;               // Normalisation (kernel sum)
    117 # endif
    118108        for (int y = 0; y < fullSize; y++) {
    119109            for (int x = 0; x < fullSize; x++) {
Note: See TracChangeset for help on using the changeset viewer.