I am trying to do some image matching using OpenCV and am using the cvMatchTemplate function.
I took a sample image and then cut part of it out as a template and the
I am facing a similar issue, and unfortunately this seem to be the case with pattern matching approach. In my case, for visually unmatched sections, the coeff sometimes is as high as 0.9 (out of max of 1) and the correct match only seem to happen for CV_TM_CCOEFF_NORMED. The only observation had was that for correct match, there seemed to be only 1 peak in the result matrix in the area of the actual match, but for incorrect matches, the intensity seemed to be high all over the map.