Changeset 16476 for trunk/psModules/src/imcombine/pmSubtraction.c
- Timestamp:
- Feb 14, 2008, 1:18:34 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmSubtraction.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtraction.c
r16423 r16476 4 4 * @author GLG, MHPCC 5 5 * 6 * @version $Revision: 1.7 8$ $Name: not supported by cvs2svn $7 * @date $Date: 2008-02-14 00:13:09$6 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-02-14 23:18:34 $ 8 8 * 9 9 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii … … 681 681 PS_ASSERT_IMAGE_TYPE(out1->weight, PS_TYPE_F32, false); 682 682 } 683 if (region) { 684 if (psRegionIsNaN(*region)) { 685 psString string = psRegionToString(*region); 686 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) contains NAN values", string); 687 psFree(string); 688 return false; 689 } 690 if (region->x0 < 0 || region->x1 > ro1->image->numCols || 691 region->y0 < 0 || region->y1 > ro1->image->numRows) { 692 psString string = psRegionToString(*region); 693 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) does not fit in image (%dx%d)", 694 string, ro1->image->numCols, ro1->image->numRows); 695 psFree(string); 696 return false; 697 } 683 if (region && psRegionIsNaN(*region)) { 684 psString string = psRegionToString(*region); 685 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Input region (%s) contains NAN values", string); 686 psFree(string); 687 return false; 698 688 } 699 689
Note:
See TracChangeset
for help on using the changeset viewer.
