IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2004, 3:22:59 PM (22 years ago)
Author:
desonia
Message:

added test for psImageResample.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.c

    r2067 r2105  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-10-13 00:10:50 $
     12 *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-10-14 01:22:59 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    441441        psF64 unexposedValue) \
    442442{ \
    443     int intX = (int) round((psF64)(x) - 0.5); \
    444     int intY = (int) round((psF64)(y) - 0.5); \
     443    int intX = (int) round((psF64)(x) - 0.5 + FLT_EPSILON); \
     444    int intY = (int) round((psF64)(y) - 0.5 + FLT_EPSILON); \
    445445    int lastX = input->numCols - 1; \
    446446    int lastY = input->numRows - 1; \
Note: See TracChangeset for help on using the changeset viewer.