Changeset 6778 for trunk/psLib/src/imageops/psImageStats.c
- Timestamp:
- Apr 4, 2006, 3:49:41 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStats.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStats.c
r6750 r6778 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.9 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-04-0 1 02:43:57$11 * @version $Revision: 1.92 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-04-05 01:49:40 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 657 657 } 658 658 region = psRegionForImage(mask, region); 659 659 660 660 if (region.x0 == region.x1 || region.y0 == region.y1) { 661 661 psError(PS_ERR_BAD_PARAMETER_SIZE, true, … … 670 670 PS_ASSERT_INT_POSITIVE(mask->numRows, -1); 671 671 672 /* x0 = (int)(roundf(region.x0));673 x1 = (int)(roundf(region.x1));674 y0 = (int)(roundf(region.y0));675 y1 = (int)(roundf(region.y1));676 */677 672 int col0 = (int)(roundf(region.x0)); 678 673 int col1 = (int)(roundf(region.x1)); … … 753 748 return -1; 754 749 }/* else if (col0 == col1 && row0 == row1) { 755 psError(PS_ERR_BAD_PARAMETER_VALUE, true,756 "Invalid psRegion specified. Region contains only 1 pixel.\n");757 return -1;758 }759 */750 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 751 "Invalid psRegion specified. Region contains only 1 pixel.\n"); 752 return -1; 753 } 754 */ 760 755 x0 = col0; 761 756 x1 = col1;
Note:
See TracChangeset
for help on using the changeset viewer.
