IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7090


Ignore:
Timestamp:
May 8, 2006, 5:20:00 PM (20 years ago)
Author:
Paul Price
Message:

Updated test to provide some feedback on where the error is occurring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/imageops/tst_psImageSmooth.c

    r7071 r7090  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-05-05 02:48:34 $
     7 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-05-09 03:20:00 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2323
    2424testDescription tests[] = {
    25                               {testImageSmooth, 0, "psImageSmooth", true, false},
     25                              {testImageSmooth, 0, "psImageSmooth", 0, false},
    2626                              {NULL}
    2727                          };
     
    166166static psS32 testImageSmooth()
    167167{
    168     psBool rc = true;
     168    int bad = 0x00;            // What's bad?
    169169
    170     rc&= testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true);
    171     rc&= testImageSmoothGeneric(TS00_IM_F32, 1, NUM_ROWS, SIGMA, NSIGMA, true);
    172     rc&= testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, 1, SIGMA, NSIGMA, true);
    173     rc&= testImageSmoothGeneric(TS00_IM_F32, 1, 1, SIGMA, NSIGMA, true);
    174     rc&= testImageSmoothGeneric(TS00_IM_F64, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true);
    175     rc&= testImageSmoothGeneric(TS00_IM_S32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false);
    176     rc&= testImageSmoothGeneric(TS00_IM_NULL, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false);
     170    bad |= (testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true)    ? 0x00 : 0x01);
     171    bad |= (testImageSmoothGeneric(TS00_IM_F32, 1, NUM_ROWS, SIGMA, NSIGMA, true)           ? 0x00 : 0x02);
     172    bad |= (testImageSmoothGeneric(TS00_IM_F32, NUM_COLS, 1, SIGMA, NSIGMA, true)           ? 0x00 : 0x04);
     173    bad |= (testImageSmoothGeneric(TS00_IM_F32, 1, 1, SIGMA, NSIGMA, true)                  ? 0x00 : 0x08);
     174    bad |= (testImageSmoothGeneric(TS00_IM_F64, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, true)    ? 0x00 : 0x10);
     175    bad |= (testImageSmoothGeneric(TS00_IM_S32, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false)   ? 0x00 : 0x20);
     176    bad |= (testImageSmoothGeneric(TS00_IM_NULL, NUM_COLS, NUM_ROWS, SIGMA, NSIGMA, false)  ? 0x00 : 0x40);
    177177
    178     return(rc);
     178    return bad;
    179179}
Note: See TracChangeset for help on using the changeset viewer.