Cv2Mahalonobis Method OpenCvSharp Class Library
computes Mahalanobis distance between two vectors: sqrt((v1-v2)'*icovar*(v1-v2)), where icovar is the inverse covariation matrix

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

public static double Mahalonobis(
	InputArray v1,
	InputArray v2,
	InputArray icovar
)

Parameters

v1
Type: OpenCvSharp.CPlusPlusInputArray

[Missing <param name="v1"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.Mahalonobis(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray)"]

v2
Type: OpenCvSharp.CPlusPlusInputArray

[Missing <param name="v2"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.Mahalonobis(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray)"]

icovar
Type: OpenCvSharp.CPlusPlusInputArray

[Missing <param name="icovar"/> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.Mahalonobis(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray)"]

Return Value

Type: Double

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.Mahalonobis(OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray,OpenCvSharp.CPlusPlus.InputArray)"]

See Also

Reference