Changeset 7071 for trunk/psLib/test/imageops/tst_psImageSmooth.c
- Timestamp:
- May 4, 2006, 4:48:35 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/imageops/tst_psImageSmooth.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImageSmooth.c
r6280 r7071 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-0 2-01 21:35:59$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-05-05 02:48:34 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 83 83 } 84 84 if (VERBOSE) { 85 p_psImagePrint(1, img, "The Sm mothed Image");85 p_psImagePrint(1, img, "The Smoothed Image"); 86 86 } 87 87 … … 132 132 } 133 133 if (VERBOSE) { 134 p_psImagePrint(1, img, "The Sm mothed Image");134 p_psImagePrint(1, img, "The Smoothed Image"); 135 135 } 136 136 … … 139 139 for (psS32 j = 1 ; j < numCols-1 ; j++) { 140 140 if ((fabs(img->data.F32[i][j] - 0.5) > 0.1)) { 141 printf("TEST ERROR: img[%d][%d] was %f, expected 0.5\n", i, j, img->data.F32[i][j]); 141 printf("TEST ERROR: img[%d][%d] was %f, expected 0.5\n", 142 i, j, img->data.F32[i][j]); 142 143 testStatus = false; 143 144 } … … 150 151 for (psS32 j = 1 ; j < numCols-1 ; j++) { 151 152 if ((fabs(img->data.F64[i][j] - 0.5) > 0.1)) { 152 printf("TEST ERROR: img[%d][%d] was %f, expected 0.5\n", i, j, img->data.F64[i][j]); 153 printf("TEST ERROR: img[%d][%d] was %f, expected 0.5\n", 154 i, j, img->data.F64[i][j]); 153 155 testStatus = false; 154 156 } … … 161 163 return(testStatus); 162 164 } 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 165 185 166 static psS32 testImageSmooth()
Note:
See TracChangeset
for help on using the changeset viewer.
