IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2004, 9:50:12 AM (22 years ago)
Author:
evanalst
Message:

Remove test case for types in foward and reverse direction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/image/tst_psImageFFT.c

    r1984 r2078  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.10 $ $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 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    192192    }
    193193
    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 */
    195195    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);
    198198    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.");
    200200        return 11;
    201     }
    202     psFree(img4);
    203 
    204     /* Verify return null and program execution doesn't stop if input image F32 but
    205        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 but
    217        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;
    225201    }
    226202    psFree(img4);
Note: See TracChangeset for help on using the changeset viewer.