IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14539


Ignore:
Timestamp:
Aug 16, 2007, 2:47:06 PM (19 years ago)
Author:
Paul Price
Message:

Only normalise kernels that are even functions.

File:
1 edited

Legend:

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

    r14538 r14539  
    597597                    }
    598598                    // Normalise kernel component to unit sum
    599                     psBinaryOp(poly, poly, "*", psScalarAlloc(1.0 / norm, PS_TYPE_F32));
    600 
     599                    if (uOrder % 2 == 0 && vOrder % 2 == 0) {
     600                        psBinaryOp(poly, poly, "*", psScalarAlloc(1.0 / norm, PS_TYPE_F32));
     601                    }
    601602                }
    602603
Note: See TracChangeset for help on using the changeset viewer.