IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2008, 10:45:28 AM (18 years ago)
Author:
Paul Price
Message:

round() can push the value beyond the bounds of the image --> SEGV.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpTransformTile.c

    r19136 r19149  
    8787
    8888            // psImagePixelInterpolate determines the value at pixel coordinate (x,y) in child coordinates
    89             maskValue = inMaskData ? inMaskData[(int)round(yIn)][(int)round(xIn)] : 0;
     89            maskValue = inMaskData ? inMaskData[(int)yIn][(int)xIn] : 0;
    9090            if (!psImageInterpolate(&imageValue, &varValue, &maskValue, xIn, yIn, args->interp)) {
    9191                psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image.");
Note: See TracChangeset for help on using the changeset viewer.