Changeset 1929 for trunk/psLib/src/image/psImageExtraction.c
- Timestamp:
- Sep 29, 2004, 10:17:58 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/image/psImageExtraction.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
