Changeset 6872 for trunk/psModules/src/imsubtract/pmSubtractBias.h
- Timestamp:
- Apr 17, 2006, 8:01:05 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imsubtract/pmSubtractBias.h (modified) (4 diffs)
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 1 6 /** @file pmSubtractBias.h 2 7 * … … 6 11 * @author GLG, MHPCC 7 12 * 8 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $9 * @date $Date: 200 5-11-23 23:54:30$13 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-04-17 18:01:05 $ 10 15 * 11 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 23 28 #include<math.h> 24 29 #include "pslib.h" 25 #include "pmAstrometry.h" 30 31 #include "pmFPA.h" 26 32 27 33 typedef enum { 28 34 PM_OVERSCAN_NONE, ///< No overscan subtraction 35 PM_OVERSCAN_EDGE, ///< Subtract the statistic of pixels along the to-be-determined readout direction 29 36 PM_OVERSCAN_ROWS, ///< Subtract rows 30 37 PM_OVERSCAN_COLUMNS, ///< Subtract columns … … 33 40 34 41 typedef 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 38 46 } pmFit; 39 47 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 ); 48 typedef 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 } 59 pmOverscanOptions; 50 60 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 ); 61 pmOverscanOptions *pmOverscanOptionsAlloc(bool single, pmFit fitType, unsigned int order, psStats *stat); 62 63 pmReadout *pmSubtractBias(pmReadout *in, pmOverscanOptions *overscanOpts, 64 const pmReadout *bias, const pmReadout *dark); 65 66 #if 0 67 pmReadout *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 61 76 62 77 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
