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

Was it helpful?

Solution

You should use cvMatchTemplate() with method=CV_TM_CCORR_NORMED.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top