Cross Correlation of two arrays in OpenCV
-
30-09-2019 - |
Question
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 saw cvCalcCovarMatrix but I can't see a way to normalize it to get the correlation.
Thanks
Solution
You should use cvMatchTemplate() with method=CV_TM_CCORR_NORMED
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow