IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20314


Ignore:
Timestamp:
Oct 21, 2008, 5:02:28 PM (18 years ago)
Author:
Paul Price
Message:

Fixing what I knew to be wrong because it wouldn't compile optimised.

File:
1 edited

Legend:

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

    r20311 r20314  
    77 *  @author Paul Price, IfA
    88 *
    9  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-10-22 02:48:50 $
     9 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-10-22 03:02:28 $
    1111 *
    1212 *  Copyright 2004-2007 Institute for Astronomy, University of Hawaii
     
    374374    bool offImage = false;              /* At least one pixel of the kernel is off the image */ \
    375375    /* XXX Haven't got single dimension exact shifts implemented properly yet. */ \
    376     /* XXX When it is ready, note that the limit checks ([ij]{Min,Max}) below are wrong: */ \
    377     /* should probably refer to [xy]{Start,Stop}. */ \
    378376    xExact = yExact = false; \
    379377    if (xExact) { \
    380         if (iMin > 0 || iMax < 1) { /* This is wrong */ \
     378        if (xStart < 0 || xStart > xLast) { \
    381379            INTERPOLATE_OFF(); /* Returns */ \
    382380        } \
     
    402400    } \
    403401    if (yExact) { \
    404         if (jMin > 0 || jMax < 1) { /* This is wrong */ \
     402        if (yStart < 0 || yStart > yLast) { \
    405403            INTERPOLATE_OFF(); /* Returns */ \
    406404        } \
Note: See TracChangeset for help on using the changeset viewer.