Changeset 1893 for trunk/psLib/test/image/tst_psImageManip.c
- Timestamp:
- Sep 24, 2004, 2:43:55 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/image/tst_psImageManip.c (modified) (4 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
Note:
See TracChangeset
for help on using the changeset viewer.
