Changeset 1893
- Timestamp:
- Sep 24, 2004, 2:43:55 PM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 2 edited
-
tst_psImageManip.c (modified) (4 diffs)
-
verified/tst_psImageManip.stderr (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageManip.c
r1829 r1893 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-09- 18 00:40:15 $8 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-09-25 00:43:55 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 191 191 psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of F32 imagery"); 192 192 testImageClipByType(F32); 193 psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of S32 imagery");194 testImageClipByType(S32);193 // psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of S32 imagery"); 194 // testImageClipByType(S32); 195 195 psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of S16 imagery"); 196 196 testImageClipByType(S16); 197 197 psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of S8 imagery"); 198 198 testImageClipByType(S8); 199 psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of U32 imagery");200 testImageClipByType(U32);199 // psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of U32 imagery"); 200 // testImageClipByType(U32); 201 201 psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of U16 imagery"); 202 202 testImageClipByType(U16); … … 225 225 return 4; 226 226 } 227 228 // Verify program execution doesn't stop if the input image type is something 229 // other than U8, U16, S8, S16, F32, F64, C32, C64. 230 img = psImageAlloc(c,r,PS_TYPE_S32); 231 psLogMsg(__func__,PS_LOG_INFO,"Following should be an error (invalid type)"); 232 retVal = psImageClip(img,min,-1.0f,max,-2.0f); 233 if (retVal != 0) { 234 psError(__func__,"Expected zero return for clip of invalid image type."); 235 return 5; 236 } 237 psFree(img); 227 238 228 239 return 0; … … 295 306 testImageClipNaNByType(F32); 296 307 testImageClipNaNByType(F64); 308 testImageClipNaNByType(C32); 309 testImageClipNaNByType(C64); 297 310 298 311 // Verify the retuned integer is zero, psImage structure input is unmodified -
trunk/psLib/test/image/verified/tst_psImageManip.stderr
r1840 r1893 12 12 Testing clipping of F32 imagery 13 13 <DATE><TIME>|<HOST>|I|testImageClip 14 Testing clipping of S32 imagery15 <DATE><TIME>|<HOST>|I|testImageClip16 14 Testing clipping of S16 imagery 17 15 <DATE><TIME>|<HOST>|I|testImageClip 18 16 Testing clipping of S8 imagery 19 <DATE><TIME>|<HOST>|I|testImageClip20 Testing clipping of U32 imagery21 17 <DATE><TIME>|<HOST>|I|testImageClip 22 18 Testing clipping of U16 imagery … … 31 27 <DATE><TIME>|<HOST>|E|psLib.image.psImageClip 32 28 Specified min value, 256, can not be greater than the specified max value, 128. 29 <DATE><TIME>|<HOST>|I|testImageClip 30 Following should be an error (invalid type) 31 <DATE><TIME>|<HOST>|E|psLib.image.psImageClip 32 Specified psImage type (psS32) is not supported. 33 33 34 34 ---> TESTPOINT PASSED (psImage{psImageClip} | tst_psImageManip.c)
Note:
See TracChangeset
for help on using the changeset viewer.
