Changeset 6778 for trunk/psLib/src/mathtypes
- Timestamp:
- Apr 4, 2006, 3:49:41 PM (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
r6750 r6778 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.10 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-04-0 1 02:43:57$11 * @version $Revision: 1.101 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-04-05 01:49:41 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 703 703 } 704 704 705 bool p_psImagePrint (int fd, psImage *a, char *name) 705 bool p_psImagePrint (int fd, 706 psImage *a, 707 char *name) 706 708 { 707 709 write(fd,"matrix: ",8); … … 730 732 { 731 733 732 /* if (input == NULL) { 733 psError(PS_ERR_BAD_PARAMETER_NULL,true, 734 PS_ERRORTEXT_psImage_IMAGE_NULL); 734 PS_ASSERT_IMAGE_NON_NULL(input, unexposedValue); 735 /* if ( x < input->col0 || x >= (input->col0 + input->numCols) ) { 736 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 737 "x-input in psImagePixelInterpolate is outside of image region.\n"); 735 738 return unexposedValue; 736 739 } 740 if ( y < input->row0 || y >= (input->row0 + input->numRows) ) { 741 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 742 "y-input in psImagePixelInterpolate is outside of image region.\n"); 743 return unexposedValue; 744 } 745 x -= input->col0; 746 y -= input->row0; 737 747 */ 738 PS_ASSERT_IMAGE_NON_NULL(input, unexposedValue);739 if (input->row0 != 0 || input->col0 != 0) {740 x += input->col0;741 y += input->row0;742 }743 748 744 749 #define PSIMAGE_PIXEL_INTERPOLATE_CASE(TYPE) \
Note:
See TracChangeset
for help on using the changeset viewer.
