http://www.emgu.com
Calculates the weighted distance between two vectors and returns it

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static double cvMahalanobis(
	IntPtr vec1,
	IntPtr vec2,
	IntPtr mat
)
Visual Basic
Public Shared Function cvMahalanobis ( 
	vec1 As IntPtr,
	vec2 As IntPtr,
	mat As IntPtr
) As Double
Visual C++
public:
static double cvMahalanobis(
	IntPtr vec1, 
	IntPtr vec2, 
	IntPtr mat
)
F#
static member cvMahalanobis : 
        vec1 : IntPtr * 
        vec2 : IntPtr * 
        mat : IntPtr -> float 

Parameters

vec1
Type: System..::..IntPtr
The first 1D source vector
vec2
Type: System..::..IntPtr
The second 1D source vector
mat
Type: System..::..IntPtr
The inverse covariation matrix

Return Value

Type: Double
the Mahalanobis distance

See Also