IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2006, 3:58:10 PM (20 years ago)
Author:
magnier
Message:

added psImageInterpolate tests so I could test fixes to this function

File:
1 edited

Legend:

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

    r9730 r9863  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-10-24 22:52:55 $
     12 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-11-06 01:58:09 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    636636        break; \
    637637    } \
     638    /* XXX output(i,j) = input(i+0.5-dx,j+0.5-dy) */ \
    638639    for (psS32 row=0;row<outRows;row++) { \
    639640        ps##TYPE* outRow = out->data.TYPE[row]; \
    640         float y = dy+(float)row; \
     641        float y = row + 0.5 - dy; \
    641642        for (psS32 col=0;col<outCols;col++) { \
     643            float x = col + 0.5 - dx; \
    642644            outRow[col] = p_psImagePixelInterpolate##MODE##_##TYPE( \
    643                           input,dx+(float)col,y,NULL,0,exposed); \
     645                          input,x,y,NULL,0,exposed); \
    644646        } \
    645647    } \
     
    678680        PSIMAGE_SHIFT_ARBITRARY_CASE(BILINEAR);
    679681        PSIMAGE_SHIFT_ARBITRARY_CASE(BILINEAR_VARIANCE);
     682        PSIMAGE_SHIFT_ARBITRARY_CASE(BICUBE);
    680683    default:
    681684        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
Note: See TracChangeset for help on using the changeset viewer.