calcCovarMatrix function
(Mat, Mat)
calcCovarMatrix(
- InputArray samples,
- InputOutputArray mean,
- int flags, {
- OutputArray? covar,
- int ctype = MatType.CV_64F,
CalcCovarMatrix calculates the covariance matrix of a set of vectors.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga017122d912af19d7d0d2cccc2d63819f
Implementation
(Mat covar, Mat mean) calcCovarMatrix(
InputArray samples,
InputOutputArray mean,
int flags, {
OutputArray? covar,
int ctype = MatType.CV_64F,
}) {
covar ??= Mat.empty();
cvRun(
() => cffi.Mat_CalcCovarMatrix(
samples.ref,
covar!.ref,
mean.ref,
flags,
ctype,
),
);
return (covar, mean);
}