FunctionOptical Density with background subtraction
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/Delphiuses 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;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_ODwDark( fVector d_OD, fVector d_X, fVector d_XDark, fVector d_X0, fVector d_X0Dark, ui size );
int cudaVUS_ODtoFwDark( fVector d_OD, usVector d_X, usVector d_XDark, usVector d_X0, usVector d_X0Dark, ui size );
int VFcu_ODwDark( fVector h_OD, fVector h_X, fVector h_XDark, fVector h_X0, fVector h_X0Dark, ui size );
int VUScu_ODtoFwDark( fVector h_OD, usVector h_X, usVector h_XDark, usVector h_X0, usVector h_X0Dark, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_ODwDark( d_OD, d_X, d_ XDark, d_X0, d_X0Dark:fVector; size:UIntSize ): IntBool;
function cudaVUS_ODtoFwDark( d_OD:fVector; d_X, d_XDark, d_X0, d_X0Dark:usVector; size:UIntSize ): IntBool;
function VFcu_ODwDark( h_OD, h_X, h_XDark, h_X0, h_X0Dark:fVector; size:UIntSize ): IntBool;
function VUScu_ODtoFwDark( h_OD:fVector; h_X, h_XDark, h_X0, h_X0Dark:usVector; size:UIntSize ): IntBool;
Descriptionxxi = 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.

Error handlingnone
Return valuealways FALSE (0)
See alsoVF_OD,   VF_setODThresh

VectorLib Table of Contents  OptiVec home