IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4936


Ignore:
Timestamp:
Aug 31, 2005, 12:00:32 PM (21 years ago)
Author:
drobbin
Message:

updated RegionForImage test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/mathtypes/tst_psImage.c

    r4887 r4936  
    66 *  @author Robert DeSonia, MHPCC
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-08-26 23:01:17 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2005-08-31 22:00:32 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    285285static psS32 testRegion2(void)
    286286{
    287     psImage *in = NULL;
    288     psRegion *inReg;
     287    psImage *in;
     288    psRegion inReg[1];
    289289    psRegion out;
    290290    in = psImageAlloc(1, 1, PS_TYPE_S32);
    291     *inReg = psRegionSet(1, 2, 1, 2);
    292     out = psRegionForImage(in, inReg);
    293     psRegion *inReg2;
     291    inReg[0] = psRegionSet(1, 2, 1, 2);
     292    out = psRegionForImage(in,inReg);
     293    psRegion inReg2[1];
    294294    psRegion out2;
    295     *inReg2 = psRegionSet(-1, 0, -2, -1);
     295    inReg2[0] = psRegionSet(-1, 0, -2, -1);
    296296    out2 = psRegionForImage(in, inReg2);
     297
    297298    if( out.x0 != 1 || out.x1 != 1 || out.y0 != 1 || out.y1 != 1 ) {
    298299        psError(PS_ERR_UNKNOWN, true, "Error:  Region For Image returned incorrect values.\n");
     
    301302        psError(PS_ERR_UNKNOWN, true, "Error:  Region For Image returned incorrect values.\n");
    302303    }
     304
    303305    psFree(in);
    304306    return 0;
Note: See TracChangeset for help on using the changeset viewer.