IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26590


Ignore:
Timestamp:
Jan 13, 2010, 5:26:17 PM (16 years ago)
Author:
Paul Price
Message:

Use RMS instead of MAX for scaling odd functions.

File:
1 edited

Legend:

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

    r26589 r26590  
    211211            // Odd functions: choose normalisation so that parameters have about the same strength as for even
    212212            // functions, no subtraction of null pixel because the sum is already (near) zero
    213             scale2D = 1.0 / max;
     213            scale2D = 1.0 / sqrt(sum2);
    214214            zeroNull = false;
    215215        }
     
    226226    if (!forceZeroNull && ((uOrder % 2) || (vOrder % 2))) {
    227227        // Odd function
    228         scale2D = 1.0 / max;
     228        scale2D = 1.0 / sqrt(sum2);
    229229    }
    230230
Note: See TracChangeset for help on using the changeset viewer.