Changeset 2132 for trunk/psModules/src/pmSubtractBias.c
- Timestamp:
- Oct 14, 2004, 12:33:28 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmSubtractBias.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmSubtractBias.c
r2127 r2132 6 6 * @author George Gusciora, MHPCC 7 7 * 8 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10-14 19:06:19$8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-14 22:33:28 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 39 39 if (((in->image)->numRows + in->row0 - bias->row0) > (bias->image)->numRows) { 40 // XXX: psErrorMsg() bias image does not have enough rows.40 psError(__func__, "bias image does not have enough rows\n"); 41 41 } 42 42 if (((in->image)->numCols + in->row0 - bias->row0) > (bias->image)->numCols) { 43 // XXX: psErrorMsg() bias image does not have enough columns.43 psError(__func__, "bias image does not have enough columns\n"); 44 44 } 45 45 … … 52 52 (in->image)->data.F32[i][j]-= 53 53 (bias->image)->data.F32[i+in->row0-bias->row0][j+in->col0-bias->col0]; 54 55 ((in->mask)->data.U8[i][j])|= 56 (bias->mask)->data.U8[i+in->row0-bias->row0][j+in->col0-bias->col0]; 54 if ((in->mask != NULL) && (bias->mask != NULL)) { 55 ((in->mask)->data.U8[i][j])|= 56 (bias->mask)->data.U8[i+in->row0-bias->row0][j+in->col0-bias->col0]; 57 } 57 58 } 58 59 } … … 219 220 psSpline1D *mySpline; 220 221 221 if (in == NULL) { 222 //XXX: psErrorMsg() 223 } 222 PS_CHECK_NULL_PTR_RETURN_NULL(in); 224 223 225 224 // … … 231 230 232 231 if ((overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)) { 232 psError(__func__, "(overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)\n"); 233 233 //XXX: psErrorMsg() 234 234 return(in); … … 240 240 //XXX: psWarningMsg() 241 241 //XXX: Then what? 242 return(in); 242 printf("WARNING: overScanAxis equals NONE or ALL, and fit equals NONE\n"); 243 // return(in); 243 244 } 244 245 245 246 if (overScanAxis == PM_OVERSCAN_NONE) { 246 247 if (overscans != NULL) { 247 //XXX: psWarningMsg()248 printf("WARNING: overScanAxis equals NONE and overscans does not equal NULL\n"); 248 249 } 249 250 return(psSubtractFrame(in, bias));
Note:
See TracChangeset
for help on using the changeset viewer.
