IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2004, 2:43:55 PM (22 years ago)
Author:
evanalst
Message:

Remove test type S32, U32 from test_psImageClip since they are not required,
added additional case to check for invalid type(S32) and updated the
verified file.

File:
1 edited

Legend:

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

    r1829 r1893  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.16 $ $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 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    191191    psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of F32 imagery");
    192192    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);
    195195    psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of S16 imagery");
    196196    testImageClipByType(S16);
    197197    psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of S8 imagery");
    198198    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);
    201201    psLogMsg(__func__,PS_LOG_INFO,"Testing clipping of U16 imagery");
    202202    testImageClipByType(U16);
     
    225225        return 4;
    226226    }
     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);
    227238
    228239    return 0;
     
    295306    testImageClipNaNByType(F32);
    296307    testImageClipNaNByType(F64);
     308    testImageClipNaNByType(C32);
     309    testImageClipNaNByType(C64);
    297310
    298311    // Verify the retuned integer is zero, psImage structure input is unmodified
Note: See TracChangeset for help on using the changeset viewer.