IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2006, 9:45:33 PM (20 years ago)
Author:
magnier
Message:

added tests for psImageShift and psImageInterpolate, fixed low-level bugs in psImageInterpolate BILINEAR, added BICUBE; added ok_float_tol and ok_double_tol to pstap.h

File:
1 edited

Legend:

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

    r9864 r9875  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.117 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-11-06 02:00:40 $
     11 *  @version $Revision: 1.118 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-11-07 07:45:33 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    811811    if (valid00 && valid10 && valid01 && valid11) { \
    812812        /* formula from the ADD */ \
     813        /* XXX this had V01 and V10 exchanged! */ \
    813814        return V00*FRACFUNC((1.0-fracX)*(1.0-fracY)) + V10*FRACFUNC(fracX*(1.0-fracY)) + \
    814815               V01*FRACFUNC(fracY*(1.0-fracX)) + V11*FRACFUNC(fracX*fracY); \
     
    852853}
    853854
     855// XXX this would be much faster to use a 3x3 kernel to determine the shift
     856// the same function can be used for all equivalent (kernel-based) shifts...
    854857#define PSIMAGE_PIXEL_INTERPOLATE_BICUBE(TYPE, RETURNTYPE, SUFFIX, FRACFUNC) \
    855858inline RETURNTYPE p_psImagePixelInterpolateBICUBE_##SUFFIX( \
Note: See TracChangeset for help on using the changeset viewer.