MatchTemplate documentation

asked 2016-10-04 03:56:28 -0600

maren gravatar image

updated 2018-09-29 18:13:18 -0600

Hi, I would like to use MatchTemplate, CV_TM_SQDIFF_NORMED, but I am not sure how to interpret the returned values (0 to 1). I think the equation described on http://docs.opencv.org/2.4/doc/tutori... is not right, - this is not what the code is doing. The algorithm seems to use some standard deviation of the data. Where can I find a more detailed documentation? Thanks a lot!

edit retag flag offensive close merge delete

Comments

Why would this formula be wrong? It is simply a root mean squared deviation between the template and the targetted image, which is then normalised over the data range to fall in the range of 0-1.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-10-04 04:28:12 -0600 )edit
1

... and where the code (L1052 and L901 ) is doing standard deviation ?

pklab gravatar imagepklab ( 2016-10-04 09:55:00 -0600 )edit