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.
You should use cvMatchTemplate() with method=CV_TM_CCORR_NORMED
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With