This template image below gives always 1.0:

best matching result in every source image. @pklab said [here](http://answers.opencv.org/question/51486/template-matching-is-wrong-with-specific-reference-image/) it is because the formula of TM_CCOEFF_NORMED returns 0/0 because the template image is constant color and opencv returns 1.0 to avoid match exception, but I still don't get it. I would understand better with an example, lets say template image = 3x4 pixels and source image = 10x12 pixels, could someone put the values in the formula please and show 0/0?
↧