Changeset 1929 for trunk/psLib/src/image
- Timestamp:
- Sep 29, 2004, 10:17:58 AM (22 years ago)
- Location:
- trunk/psLib/src/image
- Files:
-
- 3 edited
-
psImageErrors.dat (modified) (1 diff)
-
psImageErrors.h (modified) (2 diffs)
-
psImageExtraction.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/image/psImageErrors.dat
r1918 r1929 14 14 psImage_INTERPOLATE_METHOD_INVALID Specified interpolation method (%d) is not supported. 15 15 psImage_SUBSET_RANGE_INVALID Specified subset range, [%d:%d,%d:%d], is invalid or outside input psImage's boundaries, [0:%d,0:%d]. 16 psImage_SUBSET_RANGE_MALFORMED Specified subset range, [%d:%d,%d:%d], is invalid. Ranges must be incremental. 16 17 psImage_SUBSECTION_NULL Specified subsection string can not be NULL. 17 18 psImage_SUBSECTION_INVALID Specified subsection string, '%s', can not be parsed. Must be in the form '[x1:x2,y1:y2]'. -
trunk/psLib/src/image/psImageErrors.h
r1918 r1929 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-09-2 8 02:27:58 $9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-09-29 20:17:58 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 #define PS_ERRORTEXT_psImage_INTERPOLATE_METHOD_INVALID "Specified interpolation method (%d) is not supported." 37 37 #define PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID "Specified subset range, [%d:%d,%d:%d], is invalid or outside input psImage's boundaries, [0:%d,0:%d]." 38 #define PS_ERRORTEXT_psImage_SUBSET_RANGE_MALFORMED "Specified subset range, [%d:%d,%d:%d], is invalid. Ranges must be incremental." 38 39 #define PS_ERRORTEXT_psImage_SUBSECTION_NULL "Specified subsection string can not be NULL." 39 40 #define PS_ERRORTEXT_psImage_SUBSECTION_INVALID "Specified subsection string, '%s', can not be parsed. Must be in the form '[x1:x2,y1:y2]'." -
trunk/psLib/src/image/psImageExtraction.c
r1924 r1929 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-09-29 01:10:27$11 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-09-29 20:17:58 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 65 65 PS_ERR_BAD_PARAMETER_VALUE, true, 66 66 PS_ERRORTEXT_psImage_SUBSET_RANGE_INVALID, 67 col0, col1 , row0, row1,68 image->numCols , image->numRows);67 col0, col1-1, row0, row1-1, 68 image->numCols-1, image->numRows-1); 69 69 return NULL; 70 70 } … … 166 166 return NULL; 167 167 } 168 return imageSubset(NULL,image,col0,row0,col1,row1); 168 169 if (col0 > col1 || row0 > row1) { 170 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageSubsection", 171 PS_ERR_BAD_PARAMETER_VALUE, true, 172 PS_ERRORTEXT_psImage_SUBSET_RANGE_MALFORMED, 173 col0,col1,row0,row1); 174 return NULL; 175 } 176 177 return imageSubset(NULL,image,col0,row0,col1+1,row1+1); 169 178 } 170 179
Note:
See TracChangeset
for help on using the changeset viewer.
