IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 17, 2005, 4:35:15 PM (21 years ago)
Author:
desonia
Message:

added BILINEAR_VARIANCE interpolation mode.

Location:
trunk/psLib/test/image
Files:
3 edited

Legend:

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

    r3264 r3446  
    55 * @author Eric Van Alst, MHPCC
    66 *
    7  * @version $Revision: 1.4 $
     7 * @version $Revision: 1.5 $
    88 *          $Name: not supported by cvs2svn $
    9  * @date $Date: 2005-02-17 19:26:25 $
     9 * @date $Date: 2005-03-18 02:35:15 $
    1010 *
    1111 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2828val = (psF32)psImagePixelInterpolate(img,x,y,mask,maskval,exposed,PS_INTERPOLATE_##TYPE); \
    2929printf("returned = %.2f    expected = %.2f\n",val,expected); \
    30 if(val != expected) { \
     30if(fabsf(val-expected)>FLT_EPSILON) { \
    3131    psError(PS_ERR_UNKNOWN,true,"Return value is not as expected."); \
    3232    return 1; \
  • trunk/psLib/test/image/tst_psImageManip.c

    r3298 r3446  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-02-22 19:25:53 $
     8 *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-03-18 02:35:15 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    17711771    // verify that invalid interpolation mode is handled properly
    17721772    psErrorClear();
    1773     result = psImageResample(result,image,2,0);
     1773    result = psImageResample(result,image,2,-1);
    17741774
    17751775    if (result != NULL) {
  • trunk/psLib/test/image/verified/tst_psImageManip.stderr

    r3127 r3446  
    422422    Specified scale value, 0, must be a positive value.
    423423<DATE><TIME>|<HOST>|E|psImageResample (FILE:LINENO)
    424     Specified interpolation mode, 0, is unsupported.
     424    Specified interpolation mode, -1, is unsupported.
    425425<DATE><TIME>|<HOST>|E|psImageResample (FILE:LINENO)
    426426    Specified psImage type, psPtr, is not supported.
Note: See TracChangeset for help on using the changeset viewer.