Cross-correlation of two arrays in OpenCV

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 CvMat and I want to get the correlation matrix of all col. I saw cvCalcCovarMatrix, but I see no way to normalize it to get a correlation.

thank

+3
source share
1 answer

You must use cvMatchTemplate () with method=CV_TM_CCORR_NORMED.

+9
source

Source: https://habr.com/ru/post/1783992/


All Articles