IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2006, 10:52:30 AM (20 years ago)
Author:
magnier
Message:

loop was running <= upper limits, rather than < upper limits

File:
1 edited

Legend:

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

    r6940 r6959  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-04-21 21:07:47 $
     11 *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-04-22 20:52:30 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    750750        return -1;
    751751    }/* else if (col0 == col1 && row0 == row1) {
    752                         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    753                                 "Invalid psRegion specified.  Region contains only 1 pixel.\n");
    754                         return -1;
    755                     }
    756                 */
     752                            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     753                                    "Invalid psRegion specified.  Region contains only 1 pixel.\n");
     754                            return -1;
     755                        }
     756                    */
    757757    x0 = col0;
    758758    x1 = col1;
     
    770770    case PS_TYPE_U8:
    771771    case PS_TYPE_U16:
    772         for (long j = y0; j <= y1; j++) {
    773             for (long i = x0; i <= x1; i++) {
     772        for (long j = y0; j < y1; j++) {
     773            for (long i = x0; i < x1; i++) {
    774774                if (mask->data.PS_TYPE_MASK_DATA[j][i] & value) {
    775775                    Npixels ++;
Note: See TracChangeset for help on using the changeset viewer.