IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2006, 6:12:27 PM (20 years ago)
Author:
drobbin
Message:

Made some changes for subimages issue and region issues.

File:
1 edited

Legend:

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

    r6767 r6805  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-04-04 19:52:54 $
     8 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-04-06 04:12:27 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10891089        }
    10901090    }
    1091 
     1091    in->col0 = 1;
    10921092    psImage* out = psImageTransform(NULL,
    10931093                                    NULL,
     
    10961096                                    0,
    10971097                                    trans,
    1098                                     psRegionSet(0,cols*2,0,rows*2),
     1098                                    psRegionSet(1,1+cols*2,0,rows*2),
    10991099                                    NULL,
    11001100                                    PS_INTERPOLATE_FLAT,
     
    11231123        for (psS32 col=0;col<cols;col++) {
    11241124            float inValue = p_psImagePixelInterpolateFLAT_F32(in,
    1125                             col*trans->x->coeff[1][0]+trans->x->coeff[0][0],
     1125                            col*trans->x->coeff[1][0]+trans->x->coeff[0][0]+1,
    11261126                            row*trans->y->coeff[0][1]+trans->y->coeff[0][0],
    11271127                            NULL, 0,
    11281128                            -1);
    1129             if (fabsf(outRow[col] - inValue) > FLT_EPSILON*10) {
     1129            if (fabsf(outRow[col] - inValue) > 0.01) {
    11301130                psError(PS_ERR_UNKNOWN, false,
    11311131                        "out at %d,%d was %g, expected %g",
Note: See TracChangeset for help on using the changeset viewer.