Changeset 6959 for trunk/psLib/src/imageops/psImageStats.c
- Timestamp:
- Apr 22, 2006, 10:52:30 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStats.c
r6940 r6959 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.9 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-04-2 1 21:07:47$11 * @version $Revision: 1.95 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-04-22 20:52:30 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 750 750 return -1; 751 751 }/* else if (col0 == col1 && row0 == row1) { 752 psError(PS_ERR_BAD_PARAMETER_VALUE, true,753 "Invalid psRegion specified. Region contains only 1 pixel.\n");754 return -1;755 }756 */752 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 753 "Invalid psRegion specified. Region contains only 1 pixel.\n"); 754 return -1; 755 } 756 */ 757 757 x0 = col0; 758 758 x1 = col1; … … 770 770 case PS_TYPE_U8: 771 771 case PS_TYPE_U16: 772 for (long j = y0; j < =y1; j++) {773 for (long i = x0; i < =x1; i++) {772 for (long j = y0; j < y1; j++) { 773 for (long i = x0; i < x1; i++) { 774 774 if (mask->data.PS_TYPE_MASK_DATA[j][i] & value) { 775 775 Npixels ++;
Note:
See TracChangeset
for help on using the changeset viewer.
