Changeset 2078
- Timestamp:
- Oct 13, 2004, 9:50:12 AM (22 years ago)
- Location:
- trunk/psLib/test/image
- Files:
-
- 2 edited
-
tst_psImageFFT.c (modified) (2 diffs)
-
verified/tst_psImageFFT.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/image/tst_psImageFFT.c
r1984 r2078 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10- 06 21:40:13$8 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-13 19:50:12 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 192 192 } 193 193 194 /* Verify return null and program execution doesn't stop if input image is invalid type*/194 /* Verify return null and program execution doesn't stop if input image is invalid direction */ 195 195 GENIMAGE(img4,8,8,S8,row+col); 196 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for invalid input image type.");197 img5 = psImageFFT(NULL,img4,PS_FFT_ FORWARD);196 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for invalid direction."); 197 img5 = psImageFFT(NULL,img4,PS_FFT_REAL_RESULT); 198 198 if (img5 != NULL) { 199 psError(__func__,"psImageFFT should return null for an invalid type image.");199 psError(__func__,"psImageFFT should return null for an invalid FFT direction."); 200 200 return 11; 201 }202 psFree(img4);203 204 /* Verify return null and program execution doesn't stop if input image F32 but205 reverse FFT operation specified.206 */207 GENIMAGE(img4,8,8,F32,row+col);208 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for F32 reverse FFT operation.");209 img5 = psImageFFT(NULL,img4,PS_FFT_REVERSE);210 if (img5 != NULL) {211 psError(__func__,"psImageFFT should return null for F32 input with reverse FFT operation.");212 return 12;213 }214 psFree(img4);215 216 /* Verify return null and program execution doesn't stop if input image C32 but217 forward FFT operation specified.218 */219 GENIMAGE(img4,8,8,C32,row+col);220 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for C32 forward FFT operation.");221 img5 = psImageFFT(NULL,img4,PS_FFT_FORWARD);222 if (img5 != NULL) {223 psError(__func__,"psImageFFT should return null for C32 input with forward FFT operation.");224 return 13;225 201 } 226 202 psFree(img4); -
trunk/psLib/test/image/verified/tst_psImageFFT.stderr
r1979 r2078 6 6 7 7 <DATE><TIME>|<HOST>|I|testImageFFT 8 Following should generate error for invalid input image type.8 Following should be an error. 9 9 <DATE><TIME>|<HOST>|E|psLib.image.psImageFFT 10 Input psImage type (psS8) is not supported. Valid image types are psF32 and psC32.10 Can not specify both PS_FFT_FORWARD and PS_FFT_REVERSE options. 11 11 <DATE><TIME>|<HOST>|I|testImageFFT 12 Following should generate error for F32 reverse FFT operation.12 Following should be an error. 13 13 <DATE><TIME>|<HOST>|E|psLib.image.psImageFFT 14 Input psImage (psF32) is not complex. Reverse FFT operation requires a complex psImage input.14 The PS_FFT_FORWARD and PS_FFT_REAL_RESULT combinition is not supported. 15 15 <DATE><TIME>|<HOST>|I|testImageFFT 16 Following should generate error for C32 forward FFT operation.16 Following should generate error for invalid direction. 17 17 <DATE><TIME>|<HOST>|E|psLib.image.psImageFFT 18 Input psImage (psC32) is not real. Forward FFT operation requires a real psImage input.18 Must specify either PS_FFT_FORWARD or PS_FFT_REVERSE option. 19 19 20 20 ---> TESTPOINT PASSED (psFFT{psImageFFT} | tst_psImageFFT.c)
Note:
See TracChangeset
for help on using the changeset viewer.
