IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7124


Ignore:
Timestamp:
May 16, 2006, 10:40:26 AM (20 years ago)
Author:
drobbin
Message:

fixed failing tests (ImageColF32,F64). Someone must have incorrectly changed the values to check.

Location:
trunk/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImagePixelExtract.c

    r7122 r7124  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-05-16 01:36:04 $
     10 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-05-16 20:40:26 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    192192        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    193193                "Specified psImage has invalid type for this function.\n");
     194        psFree(out);
    194195        return NULL;
    195196    }
  • trunk/psLib/test/imageops/tst_psImagePixelExtract.c

    r6806 r7124  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-04-06 22:55:18 $
     8*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-05-16 20:40:26 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10871087    //Test recycling of non-NULL vector & correct output
    10881088    rowcol = psImageCol(rowcol, image, 1);
    1089     if (rowcol->data.F64[0] != 66.6 && rowcol->data.F64[2] != 666.66) {
     1089    if (rowcol->data.F64[0] != 6.666 && rowcol->data.F64[2] != 66.666) {
    10901090        psError(PS_ERR_BAD_PARAMETER_VALUE, false,
    10911091                "psImageCol failed to return correct values.\n");
     
    11111111    image = psImageAlloc(3, 3, PS_TYPE_F32);
    11121112    rowcol = psVectorAlloc(3, PS_TYPE_F32);
     1113    rowcol->n = rowcol->nalloc;
    11131114
    11141115    image->data.F32[0][0] = 666.666;
     
    11401141    //Test recycling of non-NULL vector & correct output
    11411142    rowcol = psImageCol(rowcol, image, 1);
    1142     test1 = abs(rowcol->data.F32[0]-66.6);
    1143     test2 = abs(rowcol->data.F32[2]-666.66);
     1143    //    test1 = abs(rowcol->data.F32[0]-66.6);
     1144    //    test2 = abs(rowcol->data.F32[2]-666.66);
     1145    test1 = abs(rowcol->data.F32[0]-6.6);
     1146    test2 = abs(rowcol->data.F32[2]-66.666);
    11441147    if ( (test1>TOLTST) || (test2>TOLTST) ) {
    11451148        psError(PS_ERR_BAD_PARAMETER_VALUE, false,
Note: See TracChangeset for help on using the changeset viewer.