VF_visCVD_visCVE_visC
FunctionVisibility (or contrast) function of a vector with respect to a constant
Syntax C/C++#include <VFmath.h>
void VF_visC( fVector Y, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
void vector<T>::visC( const vector<T>& X, const T& C );
Pascal/Delphiuses VFmath;
procedure VF_visC( Y, X:fVector; size:UIntSize; C:Single );
CUDA function C/C++#include <cudaVFmath.h>
#include <cudaVDmath.h>
int cudaVF_visC( fVector d_Y, fVector d_X, ui size, float C );
int cusdVF_visC( fVector d_Y, fVector d_X, ui size, float *d_C );
void VFcu_visC( fVector d_Y, fVector d_X, ui size, float C );
CUDA function Pascal/Delphiuses VFmath, VDmath;
function cudaVF_visC( d_Y, d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_visC( d_Y, d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
procedure VF_visC( Y, X:fVector; size:UIntSize; C:Single );
DescriptionYi = vis( Xi, C ) = (Xi - C) / (Xi + C)
These functions are generalizations of the "visibility" or "contrast" function used in optics, where the contrast between two intensities is defined as their difference divided by their sum.
For Xi=C, the visibility is defined as 0, even in the case of Xi=C=0.
Error handlingnone
Return valuenone
See alsoVF_redV,   VF_addC,   VF_subC,   VF_divC,   VF_visV

VectorLib Table of Contents  OptiVec home