Changeset 2078 for trunk/psLib/test/image/tst_psImageFFT.c
- Timestamp:
- Oct 13, 2004, 9:50:12 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/image/tst_psImageFFT.c (modified) (2 diffs)
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);
Note:
See TracChangeset
for help on using the changeset viewer.
