Changeset 2275 for trunk/psModules/src/pmMaskBadPixels.c
- Timestamp:
- Nov 3, 2004, 4:02:10 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmMaskBadPixels.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmMaskBadPixels.c
r2138 r2275 19 19 * @author Ross Harman, MHPCC 20 20 * 21 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $22 * @date $Date: 2004-1 0-14 23:52:09$21 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 22 * @date $Date: 2004-11-04 02:02:10 $ 23 23 * 24 24 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 61 61 return true; // Readout may not have data in it 62 62 } else if(mask==NULL) { 63 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_NULL, true,64 PS_ERRORTEXT_pmMaskBadPixels_NULL_MASK_IMAGE);63 psError( PS_ERR_BAD_PARAMETER_NULL, true, 64 PS_ERRORTEXT_pmMaskBadPixels_NULL_MASK_IMAGE); 65 65 return false; 66 66 } … … 68 68 inImage = in->image; 69 69 if (inImage == NULL) { 70 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_NULL, true,71 PS_ERRORTEXT_pmMaskBadPixels_NULL_INPUT_IMAGE);70 psError( PS_ERR_BAD_PARAMETER_NULL, true, 71 PS_ERRORTEXT_pmMaskBadPixels_NULL_INPUT_IMAGE); 72 72 return false; 73 73 } else if(in->mask == NULL) { … … 79 79 // Check input image and its mask are not larger than mask 80 80 if(inImage->numRows > mask->numRows || inImage->numCols > mask->numCols) { 81 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_SIZE, true,82 PS_ERRORTEXT_pmMaskBadPixels_SIZE_INPUT_IMAGE,83 inImage->numRows, inImage->numCols, mask->numRows, mask->numCols);81 psError( PS_ERR_BAD_PARAMETER_SIZE, true, 82 PS_ERRORTEXT_pmMaskBadPixels_SIZE_INPUT_IMAGE, 83 inImage->numRows, inImage->numCols, mask->numRows, mask->numCols); 84 84 return false; 85 85 } else if(inMask->numRows>mask->numRows || inMask->numCols>mask->numCols) { 86 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_SIZE, true,87 PS_ERRORTEXT_pmMaskBadPixels_SIZE_MASK_IMAGE,88 inMask->numRows, inMask->numCols, mask->numRows, mask->numCols);86 psError( PS_ERR_BAD_PARAMETER_SIZE, true, 87 PS_ERRORTEXT_pmMaskBadPixels_SIZE_MASK_IMAGE, 88 inMask->numRows, inMask->numCols, mask->numRows, mask->numCols); 89 89 return false; 90 90 } … … 96 96 // Check that offsets are within image limits 97 97 if(totOffRow>=mask->numRows || totOffCol>=mask->numCols) { 98 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_SIZE, true,99 PS_ERRORTEXT_pmMaskBadPixels_OFFSET_MASK_IMAGE,100 totOffRow, totOffCol, mask->numRows, mask->numCols);98 psError( PS_ERR_BAD_PARAMETER_SIZE, true, 99 PS_ERRORTEXT_pmMaskBadPixels_OFFSET_MASK_IMAGE, 100 totOffRow, totOffCol, mask->numRows, mask->numCols); 101 101 return false; 102 102 } else if(totOffRow>=inImage->numRows || totOffCol>=inImage->numCols) { 103 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_SIZE, true,104 PS_ERRORTEXT_pmMaskBadPixels_OFFSET_INPUT_IMAGE,105 totOffRow, totOffCol, inImage->numRows, inImage->numCols);103 psError( PS_ERR_BAD_PARAMETER_SIZE, true, 104 PS_ERRORTEXT_pmMaskBadPixels_OFFSET_INPUT_IMAGE, 105 totOffRow, totOffCol, inImage->numRows, inImage->numCols); 106 106 return false; 107 107 } else if(totOffRow>=inMask->numRows || totOffCol>=inMask->numCols) { 108 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_SIZE, true,109 PS_ERRORTEXT_pmMaskBadPixels_OFFSET_INPUT_IMAGE_MASK,110 totOffRow, totOffCol, inMask->numRows, inMask->numCols);108 psError( PS_ERR_BAD_PARAMETER_SIZE, true, 109 PS_ERRORTEXT_pmMaskBadPixels_OFFSET_INPUT_IMAGE_MASK, 110 totOffRow, totOffCol, inMask->numRows, inMask->numCols); 111 111 return false; 112 112 } … … 116 116 maskType = mask->type.type; 117 117 if(PS_IS_PSELEMTYPE_COMPLEX(inType)) { 118 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_TYPE, true,119 PS_ERRORTEXT_pmMaskBadPixels_TYPE_INPUT_IMAGE,120 inType);118 psError( PS_ERR_BAD_PARAMETER_TYPE, true, 119 PS_ERRORTEXT_pmMaskBadPixels_TYPE_INPUT_IMAGE, 120 inType); 121 121 return false; 122 122 } else if(maskType!=PS_TYPE_MASK) { 123 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_TYPE, true,124 PS_ERRORTEXT_pmMaskBadPixels_TYPE_MASK_IMAGE,125 maskType);123 psError( PS_ERR_BAD_PARAMETER_TYPE, true, 124 PS_ERRORTEXT_pmMaskBadPixels_TYPE_MASK_IMAGE, 125 maskType); 126 126 return false; 127 127 } … … 175 175 PM_BAD_PIXELS(F64); 176 176 default: 177 psError Msg(PS_ERRORNAME_DOMAIN "pmMaskBadPixels",PS_ERR_BAD_PARAMETER_TYPE, true,178 PS_ERRORTEXT_pmMaskBadPixels_TYPE_UNSUPPORTED,179 inType);177 psError( PS_ERR_BAD_PARAMETER_TYPE, true, 178 PS_ERRORTEXT_pmMaskBadPixels_TYPE_UNSUPPORTED, 179 inType); 180 180 } 181 181
Note:
See TracChangeset
for help on using the changeset viewer.
