IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2006, 3:49:41 PM (20 years ago)
Author:
drobbin
Message:

Edited functions wrt subimage v parent image issue.

Location:
trunk/psLib/test/imageops
Files:
2 edited

Legend:

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

    r6770 r6778  
    66*  @author Robert DeSonia, MHPCC
    77*
    8 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-04-04 22:04:46 $
     8*  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-04-05 01:49:41 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    100100        } \
    101101    } \
    102     out = psImageSlice(out,positions,image,mask,1,psRegionSet(c/10,c/10+M,r/10,r/10+N),DIRECTION,stat); \
     102    image->col0 = 1; \
     103    image->row0 = 1; \
     104    out = psImageSlice(out,positions,image,mask,1, \
     105                       psRegionSet(1+c/10,1+c/10+M,1+r/10,1+r/10+N),DIRECTION,stat); \
    103106    \
    104107    if (out->n != TRUTH_SIZE) { \
  • trunk/psLib/test/imageops/tst_psImageStats.c

    r6750 r6778  
    634634    }
    635635
     636    //Test a subimage.
     637    reg.y0 = 1;
     638    reg.y1 = 5;
     639    numPix2 = -1;
     640    in2->row0 = 1;
     641    numPix2 = psImageCountPixelMask(in2, reg, 1);
     642    if (numPix2 != 2) {
     643        psError(PS_ERR_BAD_PARAMETER_VALUE, false,
     644                "psImageCountPixelMask returned incorrect pixel count %ld (!=2)\n", numPix2);
     645        return 11;
     646    }
     647
    636648    psFree(in);
    637649    psFree(in2);
Note: See TracChangeset for help on using the changeset viewer.