CvMahalanobis Method OpenCvSharp Class Library
Calculates Mahalanobis distance between two vectors

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static double Mahalanobis(
	CvArr vec1,
	CvArr vec2,
	CvArr mat
)

Parameters

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

Return Value

Type: Double
Mahalanobis distance
See Also

Reference