Changeset 1909 for trunk/psLib/test/image
- Timestamp:
- Sep 27, 2004, 2:30:32 PM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 2 edited
-
tst_psImageManip.c (modified) (2 diffs)
-
tst_psImageStats03.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageManip.c
r1896 r1909 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-09-2 5 01:38:24$8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-09-28 00:30:32 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1391 1391 for (int col=0;col<cols;col++) { 1392 1392 psF32 fValue = psImagePixelInterpolate(fImg,col+colShift, 1393 row+rowShift,N AN,PS_INTERPOLATE_FLAT);1393 row+rowShift,NULL,0,NAN,PS_INTERPOLATE_FLAT); 1394 1394 psS16 sValue = (psS16)psImagePixelInterpolate(sImg,col+colShift, 1395 row+rowShift, -1,PS_INTERPOLATE_FLAT);1395 row+rowShift,NULL,0,-1,PS_INTERPOLATE_FLAT); 1396 1396 1397 1397 if (fabsf(fRow[col] - fValue) > FLT_EPSILON) { -
trunk/psLib/test/image/tst_psImageStats03.c
r1811 r1909 46 46 x = 0.2 + (float) i; 47 47 y = 0.2 + (float) j; 48 pixel = psImagePixelInterpolate(tmpImage, x, y,0,PS_INTERPOLATE_BILINEAR); 48 pixel = psImagePixelInterpolate(tmpImage, 49 x, y, 50 NULL, 0, 51 0, 52 PS_INTERPOLATE_BILINEAR); 49 53 printf("%.1f ", pixel); 50 54 } … … 56 60 x = 0.2 + (float) i; 57 61 y = 0.2 + (float) j; 58 pixel = psImagePixelInterpolate(tmpImage, x, y,0,PS_INTERPOLATE_BILINEAR); 62 pixel = psImagePixelInterpolate(tmpImage, 63 x, y, 64 NULL,0, 65 0, 66 PS_INTERPOLATE_BILINEAR); 59 67 printf("image[%.1f][%.1f] is interpolated at %.1f\n", x, y, pixel); 60 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
