OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Mon, 29 Apr 2019 13:37:23 -0500Cross-covariance of 2 sample sets.http://answers.opencv.org/question/212302/cross-covariance-of-2-sample-sets/``calcCovarMarix`` works great for calculating the auto-covariance matrix of a given sample set.
Now, how does one calculate the cross-covariance of 2 sample sets?
Example: every row of a matrix is a sample. Samples are random vectors with possibly differing amount of variables:
Mat A = [[1, 2],
[2, 3]]
Mat B = [[3, 4, 5],
[4, 5, 6]]
In MATLAB one can simply do ``cov(A, B)``. How would one do it in C++ OpenCV?KibouoMon, 29 Apr 2019 13:37:23 -0500http://answers.opencv.org/question/212302/