Changeset 6805 for trunk/psLib/test/imageops/tst_psImageGeomManip.c
- Timestamp:
- Apr 5, 2006, 6:12:27 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/imageops/tst_psImageGeomManip.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImageGeomManip.c
r6767 r6805 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-04-0 4 19:52:54$8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-04-06 04:12:27 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1089 1089 } 1090 1090 } 1091 1091 in->col0 = 1; 1092 1092 psImage* out = psImageTransform(NULL, 1093 1093 NULL, … … 1096 1096 0, 1097 1097 trans, 1098 psRegionSet( 0,cols*2,0,rows*2),1098 psRegionSet(1,1+cols*2,0,rows*2), 1099 1099 NULL, 1100 1100 PS_INTERPOLATE_FLAT, … … 1123 1123 for (psS32 col=0;col<cols;col++) { 1124 1124 float inValue = p_psImagePixelInterpolateFLAT_F32(in, 1125 col*trans->x->coeff[1][0]+trans->x->coeff[0][0] ,1125 col*trans->x->coeff[1][0]+trans->x->coeff[0][0]+1, 1126 1126 row*trans->y->coeff[0][1]+trans->y->coeff[0][0], 1127 1127 NULL, 0, 1128 1128 -1); 1129 if (fabsf(outRow[col] - inValue) > FLT_EPSILON*10) {1129 if (fabsf(outRow[col] - inValue) > 0.01) { 1130 1130 psError(PS_ERR_UNKNOWN, false, 1131 1131 "out at %d,%d was %g, expected %g",
Note:
See TracChangeset
for help on using the changeset viewer.
