问题
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