http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Calculates the covariation matrix and, optionally, mean vector of the set of input vectors.
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static void cvCalcCovarMatrix( IntPtr[] vects, int count, IntPtr covMat, IntPtr avg, COVAR_METHOD flags ) |
Visual Basic |
---|
Public Shared Sub cvCalcCovarMatrix ( _ vects As IntPtr(), _ count As Integer, _ covMat As IntPtr, _ avg As IntPtr, _ flags As COVAR_METHOD _ ) |
Visual C++ |
---|
public: static void cvCalcCovarMatrix( array<IntPtr>^ vects, int count, IntPtr covMat, IntPtr avg, COVAR_METHOD flags ) |
Parameters
- vects
- Type: array<System..::..IntPtr>[]()[][]
The input vectors. They all must have the same type and the same size. The vectors do not have to be 1D, they can be 2D (e.g. images) etc
- count
- Type: System..::..Int32
The number of input vectors
- covMat
- Type: System..::..IntPtr
The output covariation matrix that should be floating-point and square
- avg
- Type: System..::..IntPtr
The input or output (depending on the flags) array - the mean (average) vector of the input vectors.
- flags
- Type: Emgu.CV.CvEnum..::..COVAR_METHOD
The operation flags
Remarks
The function can be used for PCA, for comparing vectors using Mahalanobis distance etc.