IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2005, 12:16:25 PM (21 years ago)
Author:
evanalst
Message:

Fixed test case for -numRows and -numCols for region.

File:
1 edited

Legend:

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

    r3976 r4081  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-05-19 05:03:48 $
     8*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-06-01 22:16:20 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    639639
    640640    image1 = psImageCopy(NULL,image,PS_TYPE_F32);
    641     image2 = psImageTrim(image1, psRegionSet(0,-image->numCols,0,0));
     641    image2 = psImageTrim(image1, psRegionSet(0,(((psF32)image->numCols)*-1.0),0,0));
    642642
    643643    if (image2 != NULL) {
     
    656656
    657657    image1 = psImageCopy(NULL,image,PS_TYPE_F32);
    658     image2 = psImageTrim(image1, psRegionSet(0,0,0,-image->numRows));
     658    image2 = psImageTrim(image1, psRegionSet(0,0,0,(((psF32)image->numRows)*-1.0)));
    659659
    660660    if (image2 != NULL) {
Note: See TracChangeset for help on using the changeset viewer.