Cross Correlation of two arrays in OpenCV

ぃ、小莉子 提交于 2021-02-08 16:58:52

问题


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


回答1:


You should use cvMatchTemplate() with method=CV_TM_CCORR_NORMED.



来源:https://stackoverflow.com/questions/4621844/cross-correlation-of-two-arrays-in-opencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!