Changeset 6631 for trunk/psLib/src/mathtypes
- Timestamp:
- Mar 17, 2006, 10:38:19 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/mathtypes/psImage.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r6579 r6631 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.9 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-03-1 4 03:35:14$11 * @version $Revision: 1.99 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-03-17 20:38:19 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 293 293 double complex value) 294 294 { 295 /* if (image == NULL) {296 psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psImage_IMAGE_NULL);297 return false;298 }299 if (x >= image->numRows || y >= image->numCols) {300 psError(PS_ERR_BAD_PARAMETER_SIZE, true,301 "Invalid position %d. Position out of range (%d-%d)\n", x, );302 return false;303 }304 305 if(x < 0)306 x += image->numRows;307 if(x < 0) {308 psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid x. Negative number too large\n");309 return false;310 }311 312 if(y < 0)313 y += image->numCols;314 if(y < 0) {315 psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid y. Negative number too large\n");316 return false;317 }318 319 */320 295 PS_ASSERT_IMAGE_NON_NULL(image, false); 321 296 PS_ASSERT_INT_NONNEGATIVE(image->col0, false); … … 416 391 int y) 417 392 { 418 /* if (image == NULL) {419 psError(PS_ERR_BAD_PARAMETER_NULL, true, PS_ERRORTEXT_psImage_IMAGE_NULL);420 return NAN;421 }422 if (x >= image->numRows || y >= image->numCols) {423 psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid position. Position too large\n");424 return NAN;425 }426 427 if(x < 0)428 x += image->numRows;429 if(x < 0) {430 psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid x. Negative number too large\n");431 return NAN;432 }433 434 if(y < 0)435 y += image->numCols;436 if(y < 0) {437 psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Invalid y. Negative number too large\n");438 return NAN;439 }440 */441 393 PS_ASSERT_IMAGE_NON_NULL(image, NAN); 442 394 PS_ASSERT_INT_NONNEGATIVE(image->col0, NAN);
Note:
See TracChangeset
for help on using the changeset viewer.
