| Syntax C/C++ | #include <VFmath.h>
int VF_ODwDark( fVector OD, fVector X, fVector XDark, fVector X0, fVector X0Dark, ui size );
int VUS_ODtoFwDark( fVector OD, usVector X, usVector XDark, usVector X0, usVector X0Dark, ui size ); |
| C++ VecObj | #include <OptiVec.h>
int vector<T>::ODwDark( const vector<T>& X, const vector<T>& XDark, const vector<T>& X0, const vector<T>& X0Dark );
int vector<float>::ODtoFwDark( const vector<unsigned>& X, const vector<unsigned>& XDark, const vector<unsigned>& X0, const vector<unsigned>& X0Dark ); |
| Pascal/Delphi | uses VFmath;
function VF_ODwDark( OD, X, XDark, X0, X0Dark:fVector; size:UIntSize ): IntBool;
function VUS_ODtoFwDark( OD:fVector; X, XDark, X0, X0Dark:usVector; size:UIntSize ): IntBool; |
|
| Description | xxi = Xi - XiDark
x0i = X0i - X0iDark
ODi = log10( x0i/xxi ), (x0i >= ODThresh0 && xxi >= ODThresh),
ODi = 0.0 otherwise
Dark currents XDark, X0Dark are subtracted from measured intensity data X, X0. The optical density is calculated for the resulting corrected data. If these happen to become negative or at least smaller than the thresholds ODThresh, ODThresh0, the OD is set to 0.0.
In order to cut off experimental noise, these thresholds may be set to arbitrary positive values by VF_setODThresh, VU_setODThresh, etc. |
|