IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2006, 8:01:05 AM (20 years ago)
Author:
magnier
Message:

updates relative to rel10_ifa_1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imsubtract/pmSubtractBias.h

    r5587 r6872  
     1//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     2// XXX WARNING: I have completely replaced this file with an OLD VERSION (that works) instead of the
     3// one that was being worked on.
     4//////////////////////////////////////////////////////////////////////////////////////////////////////////////
     5
    16/** @file  pmSubtractBias.h
    27 *
     
    611 *  @author GLG, MHPCC
    712 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-11-23 23:54:30 $
     13 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-04-17 18:01:05 $
    1015 *
    1116 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2328#include<math.h>
    2429#include "pslib.h"
    25 #include "pmAstrometry.h"
     30
     31#include "pmFPA.h"
    2632
    2733typedef enum {
    2834    PM_OVERSCAN_NONE,                         ///< No overscan subtraction
     35    PM_OVERSCAN_EDGE,                         ///< Subtract the statistic of pixels along the to-be-determined readout direction
    2936    PM_OVERSCAN_ROWS,                         ///< Subtract rows
    3037    PM_OVERSCAN_COLUMNS,                      ///< Subtract columns
     
    3340
    3441typedef enum {
    35     PM_FIT_NONE,                              ///< No fit
    36     PM_FIT_POLYNOMIAL,                        ///< Fit polynomial
    37     PM_FIT_SPLINE                             ///< Fit cubic splines
     42    PM_FIT_NONE,                        ///< No fit
     43    PM_FIT_POLY_ORD,                    ///< Fit ordinary polynomial
     44    PM_FIT_POLY_CHEBY,                  ///< Fit Chebyshev polynomial
     45    PM_FIT_SPLINE                       ///< Fit cubic splines
    3846} pmFit;
    3947
    40 pmReadout *pmSubtractBias(
    41     pmReadout *in,                      ///< The input pmReadout image
    42     void *fitSpec,                      ///< A polynomial or spline, defining the fit type.
    43     pmFit fit,                          ///< PM_FIT_SPLINE, PM_FIT_POLYNOMIAL, or PM_FIT_NONE
    44     bool overscan,
    45     psStats *stat,                      ///< The statistic to be used in combining overscan data
    46     int nBin,                           ///< The amount of binning to be done image pixels.
    47     const pmReadout *bias,              ///< A possibly NULL bias pmReadout which is to be subtracted
    48     const pmReadout *dark               ///< A possibly NULL bias pmReadout which is to be subtracted
    49 );
     48typedef struct
     49{
     50    // Inputs
     51    bool single;                // Reduce all overscan regions to a single value?
     52    pmFit fitType;              // Type of fit to overscan
     53    unsigned int order;         // Order of polynomial, or number of spline pieces
     54    psStats *stat;              // Statistic to use when reducing the minor direction
     55    // Outputs
     56    psPolynomial1D *poly;       // Result of polynomial fit
     57    psSpline1D *spline;         // Result of spline fit
     58}
     59pmOverscanOptions;
    5060
    51 /******************************************************************************
    52 DetermineTrimmedImageg() This private routine determines the region of the
    53 input pmReadout which will be operated on by the various detrend modules.  It
    54 does a metadata fetch on "CELL.TRIMSEC" for the parent cell of the pmReadout.
    55  
    56 XXX: Consider making a pmUtils.c file and put this routine there.
    57  *****************************************************************************/
    58 psImage *p_psDetermineTrimmedImage(
    59     pmReadout *in
    60 );
     61pmOverscanOptions *pmOverscanOptionsAlloc(bool single, pmFit fitType, unsigned int order, psStats *stat);
     62
     63pmReadout *pmSubtractBias(pmReadout *in, pmOverscanOptions *overscanOpts,
     64                          const pmReadout *bias, const pmReadout *dark);
     65
     66#if 0
     67pmReadout *pmSubtractBias(pmReadout *in,                ///< The input pmReadout image
     68                          void *fitSpec,                ///< A polynomial or spline, defining the fit type.
     69                          const psList *overscans,      ///< A psList of overscan images
     70                          pmOverscanAxis overScanAxis,  ///< Defines how overscans are applied
     71                          psStats *stat,                ///< The statistic to be used in combining overscan data
     72                          int nBin,                     ///< The amount of binning to be done image pixels.
     73                          pmFit fit,                    ///< PM_FIT_SPLINE, PM_FIT_POLYNOMIAL, or PM_FIT_NONE
     74                          const pmReadout *bias);       ///< A possibly NULL bias pmReadout which is to be subtracted
     75#endif
    6176
    6277#endif
Note: See TracChangeset for help on using the changeset viewer.