IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2007, 3:06:00 PM (19 years ago)
Author:
Paul Price
Message:

Fixing constraints on image bounds.

File:
1 edited

Legend:

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

    r14302 r14303  
    44 *  @author GLG, MHPCC
    55 *
    6  *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2007-07-19 00:53:12 $
     6 *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2007-07-19 01:06:00 $
    88 *
    99 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    991991#endif
    992992
    993             for (int y = j; y < PS_MIN(j + fullSize, numRows); y++) {
    994                 for (int x = i; x < PS_MIN(i + fullSize, numCols); x++) {
     993            for (int y = j; y < PS_MIN(j + fullSize, numRows - size); y++) {
     994                for (int x = i; x < PS_MIN(i + fullSize, numCols - size); x++) {
    995995                    convImage->data.F32[y][x] = background;
    996996
Note: See TracChangeset for help on using the changeset viewer.