|
Function | Visibility (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/Delphi | uses 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/Delphi | uses 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 );
|
|
Description | Yi = 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. |
|
|
|
|