Index: /trunk/psModules/src/pmSubtractBias.c
===================================================================
--- /trunk/psModules/src/pmSubtractBias.c	(revision 1884)
+++ /trunk/psModules/src/pmSubtractBias.c	(revision 1885)
@@ -8,10 +8,9 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-24 22:33:17 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-24 23:00:37 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
  *
- *  XXX: This is psuedo code.  It does not compile.
  */
 #if HAVE_CONFIG_H
@@ -27,4 +26,9 @@
 #define PM_SUBTRACT_BIAS_SPLINE_ORDER 3
 
+/******************************************************************************
+psSubtractFrame(): this routine will take as input a readout for the input
+image and a readout for the bias image.  The bias image is subtracted in
+place from the input image.
+ *****************************************************************************/
 psReadout *psSubtractFrame(psReadout *in,
                            const psReadout *bias)
@@ -34,4 +38,5 @@
 
     if (bias == NULL) {
+        // XXX: Generate warning message?
         return(in);
     }
@@ -60,5 +65,9 @@
 }
 
+/******************************************************************************
+p_psImageSubtractScalar(): subtract a scalar from the input image.
+ 
 // XXX: Is there already a function which does this?
+ *****************************************************************************/
 psImage *p_psImageSubtractScalar(psImage *image,
                                  float scalar)
@@ -136,10 +145,14 @@
 
 // XXX: Must scale the overscan vector
-
 psVector *ScaleOverscanVector(psVector *overscanVector,
                               int n,
                               pmFit fit)
 {
-    return(overscanVector);
+    psVector *newVec = psVectorAlloc(n, PS_TYPE_F32);
+
+    if (fit == PM_FIT_POLYNOMIAL) {}
+    else if (fit == PM_FIT_SPLINE) {}
+    else {}
+    return(newVec);
 }
 
