Method CalcCovarMatrix
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CalcCovarMatrix(ReadOnlySpan<Mat>, Mat, Mat, CovarFlags, MatType?)
computes covariation matrix of a set of samples
public static void CalcCovarMatrix(ReadOnlySpan<Mat> samples, Mat covar, Mat mean, CovarFlags flags, MatType? ctype = null)
Parameters
samplesReadOnlySpan<Mat>samples stored as separate matrices
covarMatoutput covariance matrix of the type ctype and square size.
meanMatinput or output (depending on the flags) array as the average value of the input vectors.
flagsCovarFlagsoperation flags - see CovarFlags.
ctypeMatType?type of the matrixl; it equals 'CV_64F' by default.
CalcCovarMatrix(InputArray, OutputArray, InputOutputArray, CovarFlags, MatType?)
computes covariation matrix of a set of samples
public static void CalcCovarMatrix(InputArray samples, OutputArray covar, InputOutputArray mean, CovarFlags flags, MatType? ctype = null)
Parameters
samplesInputArraysamples stored as rows/columns of a single matrix.
covarOutputArrayoutput covariance matrix of the type ctype and square size.
meanInputOutputArrayinput or output (depending on the flags) array as the average value of the input vectors.
flagsCovarFlagsoperation flags - see CovarFlags.
ctypeMatType?type of the matrixl; it equals 'CV_64F' by default.