Table of Contents

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

samples ReadOnlySpan<Mat>

samples stored as separate matrices

covar Mat

output covariance matrix of the type ctype and square size.

mean Mat

input or output (depending on the flags) array as the average value of the input vectors.

flags CovarFlags

operation flags - see CovarFlags.

ctype MatType?

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

samples InputArray

samples stored as rows/columns of a single matrix.

covar OutputArray

output covariance matrix of the type ctype and square size.

mean InputOutputArray

input or output (depending on the flags) array as the average value of the input vectors.

flags CovarFlags

operation flags - see CovarFlags.

ctype MatType?

type of the matrixl; it equals 'CV_64F' by default.