Changeset 1885
- Timestamp:
- Sep 24, 2004, 1:00:37 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmSubtractBias.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmSubtractBias.c
r1883 r1885 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-09-24 2 2:33:17 $10 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-09-24 23:00:37 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 14 14 * 15 * XXX: This is psuedo code. It does not compile.16 15 */ 17 16 #if HAVE_CONFIG_H … … 27 26 #define PM_SUBTRACT_BIAS_SPLINE_ORDER 3 28 27 28 /****************************************************************************** 29 psSubtractFrame(): this routine will take as input a readout for the input 30 image and a readout for the bias image. The bias image is subtracted in 31 place from the input image. 32 *****************************************************************************/ 29 33 psReadout *psSubtractFrame(psReadout *in, 30 34 const psReadout *bias) … … 34 38 35 39 if (bias == NULL) { 40 // XXX: Generate warning message? 36 41 return(in); 37 42 } … … 60 65 } 61 66 67 /****************************************************************************** 68 p_psImageSubtractScalar(): subtract a scalar from the input image. 69 62 70 // XXX: Is there already a function which does this? 71 *****************************************************************************/ 63 72 psImage *p_psImageSubtractScalar(psImage *image, 64 73 float scalar) … … 136 145 137 146 // XXX: Must scale the overscan vector 138 139 147 psVector *ScaleOverscanVector(psVector *overscanVector, 140 148 int n, 141 149 pmFit fit) 142 150 { 143 return(overscanVector); 151 psVector *newVec = psVectorAlloc(n, PS_TYPE_F32); 152 153 if (fit == PM_FIT_POLYNOMIAL) {} 154 else if (fit == PM_FIT_SPLINE) {} 155 else {} 156 return(newVec); 144 157 } 145 158
Note:
See TracChangeset
for help on using the changeset viewer.
