Cross Correlation of two arrays in OpenCV
11,935
You should use cvMatchTemplate() with method=CV_TM_CCORR_NORMED
.
Author by
pablo
Updated on June 27, 2022Comments
-
pablo almost 2 years
Is there a way to calculate the normalized cross correlation of two arrays in OpenCV (C++)? http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/correlate/
I have a
CvMat
and I want to get a correlation matrix of all the cols. I sawcvCalcCovarMatrix
but I can't see a way to normalize it to get the correlation.