Changeset 6778 for trunk/psLib/test/imageops
- Timestamp:
- Apr 4, 2006, 3:49:41 PM (20 years ago)
- Location:
- trunk/psLib/test/imageops
- Files:
-
- 2 edited
-
tst_psImagePixelExtract.c (modified) (2 diffs)
-
tst_psImageStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/imageops/tst_psImagePixelExtract.c
r6770 r6778 6 6 * @author Robert DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-04-0 4 22:04:46$8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-04-05 01:49:41 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 100 100 } \ 101 101 } \ 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); \ 103 106 \ 104 107 if (out->n != TRUTH_SIZE) { \ -
trunk/psLib/test/imageops/tst_psImageStats.c
r6750 r6778 634 634 } 635 635 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 636 648 psFree(in); 637 649 psFree(in2);
Note:
See TracChangeset
for help on using the changeset viewer.
