IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6935


Ignore:
Timestamp:
Apr 20, 2006, 2:07:42 PM (20 years ago)
Author:
magnier
Message:

region selected by 0,0,0,0 was off by one on the upper limits
(must run to numCols,numRows)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psRegionForImage.c

    r6874 r6935  
    2323    if (in.x0 == 0 && in.x1 == 0 && in.y0 == 0 && in.y1 == 0) {
    2424        in.x0 = image->col0;
    25         in.x1 = image->col0 + image->numCols - 1;
     25        in.x1 = image->col0 + image->numCols;
    2626        in.y0 = image->row0;
    27         in.y1 = image->row0 + image->numRows - 1;
     27        in.y1 = image->row0 + image->numRows;
    2828        return (in);
    2929    }
Note: See TracChangeset for help on using the changeset viewer.