Changeset 5213 for trunk/psLib/src/imageops/psImageStats.c
- Timestamp:
- Sep 30, 2005, 1:09:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/imageops/psImageStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/imageops/psImageStats.c
r5137 r5213 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.8 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-09- 26 22:35:53 $11 * @version $Revision: 1.82 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-09-30 23:09:13 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 677 677 678 678 type = mask->type.type; 679 if (type != PS_TYPE_MASK) { 680 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 681 "psImage type does not match the specified psMaskType!\n"); 682 return -1; 683 } 679 684 680 685 switch (type) { 681 686 case PS_TYPE_U8: 687 case PS_TYPE_U16: 682 688 for (long i = x0; i < x1; i++) { 683 689 for (long j = y0; j < y1; j++) { 684 if (mask->data. U8[i][j] & value) {690 if (mask->data.PS_TYPE_MASK_DATA[i][j] & value) { 685 691 Npixels ++; 686 692 } … … 692 698 case PS_TYPE_S32: 693 699 case PS_TYPE_S64: 694 case PS_TYPE_U16:695 700 case PS_TYPE_U32: 696 701 case PS_TYPE_U64:
Note:
See TracChangeset
for help on using the changeset viewer.
