IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26031


Ignore:
Timestamp:
Nov 4, 2009, 2:29:14 PM (17 years ago)
Author:
Paul Price
Message:

Ensure threshold is positive.

File:
1 edited

Legend:

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

    r25999 r26031  
    10161016            #define TOL 1.0e-5
    10171017            int normIndex = PM_SUBTRACTION_INDEX_NORM(kernels); // Index for normalisation
    1018             double norm = solution->data.F64[normIndex];        // Normalisation
     1018            double norm = fabs(solution->data.F64[normIndex]);  // Normalisation
    10191019            double thresh = norm * TOL;                         // Threshold for low parameters
    10201020            for (int i = 0; i < numKernels; i++) {
Note: See TracChangeset for help on using the changeset viewer.