Changeset 7124 for trunk/psLib/test/imageops/tst_psImagePixelExtract.c
- Timestamp:
- May 16, 2006, 10:40:26 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImagePixelExtract.c
r6806 r7124 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-0 4-06 22:55:18$8 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-05-16 20:40:26 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1087 1087 //Test recycling of non-NULL vector & correct output 1088 1088 rowcol = psImageCol(rowcol, image, 1); 1089 if (rowcol->data.F64[0] != 6 6.6 && rowcol->data.F64[2] != 666.66) {1089 if (rowcol->data.F64[0] != 6.666 && rowcol->data.F64[2] != 66.666) { 1090 1090 psError(PS_ERR_BAD_PARAMETER_VALUE, false, 1091 1091 "psImageCol failed to return correct values.\n"); … … 1111 1111 image = psImageAlloc(3, 3, PS_TYPE_F32); 1112 1112 rowcol = psVectorAlloc(3, PS_TYPE_F32); 1113 rowcol->n = rowcol->nalloc; 1113 1114 1114 1115 image->data.F32[0][0] = 666.666; … … 1140 1141 //Test recycling of non-NULL vector & correct output 1141 1142 rowcol = psImageCol(rowcol, image, 1); 1142 test1 = abs(rowcol->data.F32[0]-66.6); 1143 test2 = abs(rowcol->data.F32[2]-666.66); 1143 // test1 = abs(rowcol->data.F32[0]-66.6); 1144 // test2 = abs(rowcol->data.F32[2]-666.66); 1145 test1 = abs(rowcol->data.F32[0]-6.6); 1146 test2 = abs(rowcol->data.F32[2]-66.666); 1144 1147 if ( (test1>TOLTST) || (test2>TOLTST) ) { 1145 1148 psError(PS_ERR_BAD_PARAMETER_VALUE, false,
Note:
See TracChangeset
for help on using the changeset viewer.
