Changeset 10302
- Timestamp:
- Nov 29, 2006, 3:03:06 PM (20 years ago)
- Location:
- trunk/psModules/src/detrend
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmBias.c
r10299 r10302 8 8 9 9 #include "pmFPA.h" 10 #include "pm SubtractBias.h"10 #include "pmBias.h" 11 11 12 12 … … 37 37 38 38 39 // psSubtractFrame(): this routine will take as input a readout for the input image and a readout for the bias39 // subtractFrame(): this routine will take as input a readout for the input image and a readout for the bias 40 40 // image. The bias image is subtracted in place from the input image. 41 static bool SubtractFrame(pmReadout *in, // Input readout41 static bool subtractFrame(pmReadout *in, // Input readout 42 42 const pmReadout *sub, // Readout to be subtracted from input 43 43 float scale // Scale to apply before subtracting … … 195 195 196 196 197 bool pm SubtractBias(pmReadout *in, pmOverscanOptions *overscanOpts,197 bool pmBiasSubtract(pmReadout *in, pmOverscanOptions *overscanOpts, 198 198 const pmReadout *bias, const pmReadout *dark) 199 199 { 200 200 psTrace("psModules.detrend", 4, 201 "---- pm SubtractBias() begin ----\n");201 "---- pmBiasSubtract() begin ----\n"); 202 202 PS_ASSERT_PTR_NON_NULL(in, NULL); 203 203 PS_ASSERT_IMAGE_NON_NULL(in->image, NULL); … … 357 357 // Bias frame subtraction 358 358 if (bias) { 359 if (! SubtractFrame(in, bias, 1.0))359 if (!subtractFrame(in, bias, 1.0)) 360 360 return false; 361 361 } … … 365 365 float inTime = psMetadataLookupF32(NULL, in->parent->concepts, "CELL.DARKTIME"); 366 366 float darkTime = psMetadataLookupF32(NULL, dark->parent->concepts, "CELL.DARKTIME"); 367 if (! SubtractFrame(in, dark, inTime/darkTime))367 if (!subtractFrame(in, dark, inTime/darkTime)) 368 368 return false; 369 369 } -
trunk/psModules/src/detrend/pmBias.h
r10299 r10302 1 /// @file pm SubtractBias.h1 /// @file pmBias.h 2 2 /// 3 3 /// @brief Subtract the overscan, bias and dark … … 8 8 /// @author Paul Price, IfA 9 9 /// 10 /// @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 /// @date $Date: 2006-11-30 0 0:52:21$10 /// @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 /// @date $Date: 2006-11-30 01:03:06 $ 12 12 /// 13 13 /// Copyright 2004--2006 Institute for Astronomy, University of Hawaii 14 14 /// 15 15 16 #ifndef PM_ SUBTRACT_BIAS_H17 #define PM_ SUBTRACT_BIAS_H16 #ifndef PM__BIAS_H 17 #define PM__BIAS_H 18 18 19 19 #include <pslib.h> … … 60 60 /// Subtracts the overscan, as measured from the bias member of the input readout (if options are non-NULL), 61 61 /// bias (if non-NULL) and dark (if non-NULL) scaled by the CELL.DARKTIME concept. 62 bool pm SubtractBias(pmReadout *in, ///< Input readout, to be overscan/bias/dark corrected62 bool pmBiasSubtract(pmReadout *in, ///< Input readout, to be overscan/bias/dark corrected 63 63 pmOverscanOptions *overscanOpts, ///< Options for overscan subtraction, or NULL 64 64 const pmReadout *bias, ///< Bias image to subtract, or NULL
Note:
See TracChangeset
for help on using the changeset viewer.
