Changeset 10302 for trunk/psModules/src/detrend/pmBias.c
- Timestamp:
- Nov 29, 2006, 3:03:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmBias.c (modified) (5 diffs)
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 }
Note:
See TracChangeset
for help on using the changeset viewer.
