Changeset 1502
- Timestamp:
- Aug 11, 2004, 4:49:32 PM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 3 edited
-
tst_psImageManip.c (modified) (5 diffs)
-
verified/fOut.fits (modified) ( previous)
-
verified/sOut.fits (modified) ( previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageManip.c
r1406 r1502 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-08- 06 22:34:06$8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-08-12 02:49:29 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 63 63 psLogSetLevel(PS_LOG_INFO); 64 64 65 if (! runTestSuite(stderr,"psImage",tests,argc,argv)) { 66 psError(__FILE__,"One or more tests failed"); 67 return 1; 68 } 69 return 0; 65 return ! runTestSuite(stderr,"psImage",tests,argc,argv); 70 66 } 71 67 … … 1170 1166 if (fTruth->numRows != fOut->numRows || fTruth->numCols != fOut->numCols) { 1171 1167 psError(__func__,"Rotated float image size did not match truth " 1172 "image for %d deg rotation."); 1168 "image for %d deg rotation (%dx%d vs %dx%d).", 1169 rot,fOut->numCols,fOut->numRows,fTruth->numCols,fTruth->numRows); 1173 1170 fail = true; 1174 1171 } else { … … 1177 1174 psF32* outRow = fOut->data.F32[row]; 1178 1175 for (int col=0;col<fTruth->numCols;col++) { 1179 if (fabsf(truthRow[col]-outRow[col]) > FLT_EPSILON) {1176 if (fabsf(truthRow[col]-outRow[col]) > 1) { 1180 1177 psError(__func__,"Float Image mismatch (%f vs %f) at %d,%d.", 1181 1178 outRow[col], truthRow[col],col,row); … … 1195 1192 sTruth->numCols != sOut->numCols) { 1196 1193 psError(__func__,"Rotated short image size did not match truth " 1197 "image for %d deg rotation." );1194 "image for %d deg rotation.",rot); 1198 1195 fail = true; 1199 1196 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
