Changeset 7090
- Timestamp:
- May 8, 2006, 5:20:00 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/imageops/tst_psImageSmooth.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImageSmooth.c
r7071 r7090 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-05-0 5 02:48:34$7 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-05-09 03:20:00 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 24 24 testDescription tests[] = { 25 {testImageSmooth, 0, "psImageSmooth", true, false},25 {testImageSmooth, 0, "psImageSmooth", 0, false}, 26 26 {NULL} 27 27 }; … … 166 166 static psS32 testImageSmooth() 167 167 { 168 psBool rc = true;168 int bad = 0x00; // What's bad? 169 169 170 rc&= testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true);171 rc&= testImageSmoothGeneric(TS00_IM_F32, 1, NUM_ROWS, SIGMA, NSIGMA, true);172 rc&= testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, 1, SIGMA, NSIGMA, true);173 rc&= testImageSmoothGeneric(TS00_IM_F32, 1, 1, SIGMA, NSIGMA, true);174 rc&= testImageSmoothGeneric(TS00_IM_F64, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true);175 rc&= testImageSmoothGeneric(TS00_IM_S32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false);176 rc&= testImageSmoothGeneric(TS00_IM_NULL, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false);170 bad |= (testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true) ? 0x00 : 0x01); 171 bad |= (testImageSmoothGeneric(TS00_IM_F32, 1, NUM_ROWS, SIGMA, NSIGMA, true) ? 0x00 : 0x02); 172 bad |= (testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, 1, SIGMA, NSIGMA, true) ? 0x00 : 0x04); 173 bad |= (testImageSmoothGeneric(TS00_IM_F32, 1, 1, SIGMA, NSIGMA, true) ? 0x00 : 0x08); 174 bad |= (testImageSmoothGeneric(TS00_IM_F64, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true) ? 0x00 : 0x10); 175 bad |= (testImageSmoothGeneric(TS00_IM_S32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false) ? 0x00 : 0x20); 176 bad |= (testImageSmoothGeneric(TS00_IM_NULL, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false) ? 0x00 : 0x40); 177 177 178 return (rc);178 return bad; 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.
