IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1885


Ignore:
Timestamp:
Sep 24, 2004, 1:00:37 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmSubtractBias.c

    r1883 r1885  
    88 *  @author George Gusciora, MHPCC
    99 *
    10  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-09-24 22:33:17 $
     10 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-09-24 23:00:37 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1414 *
    15  *  XXX: This is psuedo code.  It does not compile.
    1615 */
    1716#if HAVE_CONFIG_H
     
    2726#define PM_SUBTRACT_BIAS_SPLINE_ORDER 3
    2827
     28/******************************************************************************
     29psSubtractFrame(): this routine will take as input a readout for the input
     30image and a readout for the bias image.  The bias image is subtracted in
     31place from the input image.
     32 *****************************************************************************/
    2933psReadout *psSubtractFrame(psReadout *in,
    3034                           const psReadout *bias)
     
    3438
    3539    if (bias == NULL) {
     40        // XXX: Generate warning message?
    3641        return(in);
    3742    }
     
    6065}
    6166
     67/******************************************************************************
     68p_psImageSubtractScalar(): subtract a scalar from the input image.
     69 
    6270// XXX: Is there already a function which does this?
     71 *****************************************************************************/
    6372psImage *p_psImageSubtractScalar(psImage *image,
    6473                                 float scalar)
     
    136145
    137146// XXX: Must scale the overscan vector
    138 
    139147psVector *ScaleOverscanVector(psVector *overscanVector,
    140148                              int n,
    141149                              pmFit fit)
    142150{
    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);
    144157}
    145158
Note: See TracChangeset for help on using the changeset viewer.