IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2009, 10:45:36 AM (17 years ago)
Author:
Paul Price
Message:

Fixing range for summation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageCovariance.c

    r21322 r21324  
    140140            continue;
    141141        }
    142         for (int y = yMin; y <= yMax; y++) {
    143             for (int x = xMin; x <= xMax; x++) {
     142        for (int y = covar->yMin; y <= covar->yMax; y++) {
     143            for (int x = covar->xMin; x <= covar->xMax; x++) {
    144144                sum->kernel[y][x] += covar->kernel[y][x];
    145145            }
Note: See TracChangeset for help on using the changeset viewer.