Changeset 1113 for trunk/archive/modules/include/phase2.h
- Timestamp:
- Jun 28, 2004, 3:44:33 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/modules/include/phase2.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/modules/include/phase2.h
r1105 r1113 108 108 } psOverscanAxis; 109 109 110 /** Fit type for bias */110 /** Fit types */ 111 111 typedef enum { 112 PS_ OVERSCAN_FIT_NONE, ///< No fit to bias113 PS_ OVERSCAN_FIT_LINEAR, ///< Do linear interpolation on bias114 PS_ OVERSCAN_FIT_POLYNOMIAL, ///< Fit polynomial to bias115 PS_ OVERSCAN_FIT_CHEBYSHEV, ///< Fit chebyshev to bias116 PS_ OVERSCAN_FIT_SPLINE ///< Fit cubic splines to bias117 } ps BiasFit;112 PS_FIT_NONE, ///< No fit 113 PS_FIT_LINEAR, ///< Do linear interpolation 114 PS_FIT_POLYNOMIAL, ///< Fit polynomial 115 PS_FIT_CHEBYSHEV, ///< Fit chebyshev 116 PS_FIT_SPLINE ///< Fit cubic splines 117 } psFit; 118 118 119 119 /** Subtracts an overscan and bias from the input image. */ … … 122 122 ///< Also outputted 123 123 psOverscanAxis overscanAxis, ///< Overscan axis 124 ps BiasFit fit, ///< How to fit the bias124 psFit fit, ///< How to fit the bias 125 125 int nBin, ///< Number of bins for overscan vector before fitting 126 126 const psList *regions, ///< Linked list of psImageRegion types. … … 139 139 140 140 141 /** Applies the correction for detector non-linearity. Non-linearity coefficients are determined from the142 * image metadata.141 /** Applies the correction for detector non-linearity. Non-linearity coefficients are provided by the caller. 142 * Two functions: one to do via a polynomial, the other via a lookup table. 143 143 */ 144 psReadout *psPhase2CorrectNonLinearity(psReadout *in, ///< Input image to be corrected, and output 145 const psPolynomial1D *coeff ///< Polynomial with which to correct 146 ); 144 psReadout *psPhase2NonLinearityPolynomial(psReadout *in, ///< Input image to be corrected, and output 145 const psPolynomial1D *coeff ///< Polynomial with which to correct 146 ); 147 148 psReadout *psPhase2NonLinearityLookup(psReadout *in, ///< Input image to be corrected, and output 149 const psVector *inFlux, ///< Input flux values 150 const psVector *outFlux ///< Output flux values 151 ); 147 152 148 153 /** Flat-fields the image. */ … … 151 156 ); 152 157 153 /** S ubtracts the sky background.*/158 /** Simple sky subtraction */ 154 159 psReadout *psPhase2SubtractSky(psReadout *in, ///< Input image to be sky-subtracted, and output 155 psPolynomial2D *poly, ///< Polynomial specification, returns coeffcients 156 psVector *outNorms, ///< Normalisations of the template sky images: output 157 const psList *skyImages, ///< Template sky images: a list of type psImage, or 158 ///< NULL 159 const psList *catalog, ///< Sources nearby to mask when measuring the 160 ///< background: a list of type psObject, or NULL 161 float radiusMultiply, ///< Multiplying factor of object radius for mask 162 float radiusAdd, ///< Additive factor to grow the object masks 163 int binFactor ///< Binning factor to use on image before solving for polynomial 160 void *fitSpec, ///< Polynomial/Spline specification, returns coeffcients 161 psFit fit, ///< Fit type 162 int binFactor, ///< Binning factor to use on image before solving for polynomial 163 psStats *stats, ///< Statistics to use in binning 164 float clipSD ///< Standard deviations to clip at after binning. 164 165 ); 165 166 … … 168 169 /* Masking */ 169 170 171 /** Mask values */ 172 typedef enum { 173 PS_MASK_TRAP, ///< The pixel is a charge trap 174 PS_MASK_BADCOL, ///< The pixel is a bad column 175 PS_MASK_SAT, ///< The pixel is saturated 176 PS_MASK_FLAT, ///< The pixel is non-positive in the flat-field 177 PS_MASK_CR_MORPH ///< The pixel is determined to be a cosmic ray, from morphology 178 } psMaskValue; 179 170 180 /** Returns an image that has the bad pixels masked. Also masks saturated pixels */ 171 psReadout *psPhase2MaskBadPixels(psReadout *in ///< Image to be masked, and output181 psReadout *psPhase2MaskBadPixels(psReadout *in, ///< Image to be masked, and output 172 182 const psImage *mask, ///< Bad pixel mask to apply 173 183 int maskVal, ///< Mask the pixels for which mask & maskVal > 0.
Note:
See TracChangeset
for help on using the changeset viewer.
