Changeset 14505 for trunk/psModules/src/detrend/pmBias.h
- Timestamp:
- Aug 15, 2007, 10:21:18 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmBias.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmBias.h
r13920 r14505 5 5 * @author Paul Price, IfA 6 6 * 7 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 6-20 20:45:00$7 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-08-15 20:21:18 $ 9 9 * Copyright 2004--2006 Institute for Astronomy, University of Hawaii 10 10 */ 11 11 12 #ifndef PM_ _BIAS_H13 #define PM_ _BIAS_H12 #ifndef PM_BIAS_H 13 #define PM_BIAS_H 14 14 15 15 /// @addtogroup detrend Detrend Creation and Application 16 16 /// @{ 17 18 /// Type of fit to perform19 typedef enum {20 PM_FIT_NONE, ///< No fit21 PM_FIT_POLY_ORD, ///< Fit ordinary polynomial22 PM_FIT_POLY_CHEBY, ///< Fit Chebyshev polynomial23 PM_FIT_SPLINE ///< Fit cubic splines24 } pmFit;25 26 /// Options for overscan subtraction27 ///28 /// The overscan subtraction may be performed by reducing all overscan regions to a single value (e.g., if29 /// there is no structure); or the overscan may be fit perpendicular to the read direction (usually the30 /// columns) with a particular functional form; or a single value may be subtracted for each read/scan without31 /// fitting (if the structure defies characterisation). In any case, statistics are required to reduce32 /// multiple values to a single value (either for the scan, or for the entire overscan regions).33 typedef struct34 {35 // Inputs36 bool single; ///< Reduce all overscan regions to a single value?37 pmFit fitType; ///< Type of fit to overscan38 unsigned int order; ///< Order of polynomial, or number of spline pieces39 psStats *stat; ///< Statistic to use when reducing the minor direction40 int boxcar; ///< Boxcar smoothing radius41 float gauss; ///< Gaussian smoothing sigma42 // Outputs43 psPolynomial1D *poly; ///< Result of polynomial fit44 psSpline1D *spline; ///< Result of spline fit45 }46 pmOverscanOptions;47 48 /// Allocator for overscan options49 pmOverscanOptions *pmOverscanOptionsAlloc(bool single, ///< Reduce all overscan regions to a single value?50 pmFit fitType, ///< Type of fit to overscan51 unsigned int order, ///< Order of polynomial, or number of splines52 psStats *stat, ///< Statistic to use53 int boxcar, ///< Boxcar smoothing radius54 float gauss ///< Gaussian smoothing sigma55 );56 17 57 18 /// Subtract the overscan, bias and/or dark … … 66 27 ); 67 28 29 // pmBiasSubtractFrame(): this routine will take as input a readout for the input image and a readout for the bias 30 // image. The bias image is subtracted in place from the input image. 31 bool pmBiasSubtractFrame(pmReadout *in, // Input readout 32 const pmReadout *sub, // Readout to be subtracted from input 33 float scale // Scale to apply before subtracting 34 ); 35 68 36 /// @} 69 37 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
