Ask Your Question
0

TM_CCOEFF_NORMED for images with the same size

asked 2016-03-24 13:18:21 -0600

SnowRipple gravatar image

Hi There!

I am using template matching with option TM_CCOEFF_NORMED to measure similarity between two image patches of the same size. It works nice however I cannot understand what it is actually doing, can someone explain to me the equation at http://docs.opencv.org/3.0.0/df/dfb/g... please?

What T' and T(x'',y'') mean? Since my template T and Image I have the same size, would it be possible to make this notation simpler?

Many Thanks, P

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-03-24 16:17:03 -0600

Tetragramm gravatar image

What the T' and I' are is the template and image minus the mean in the area of the template. Since they are the same size, for both images, it's simply the subtraction of the mean. IE template - mean(template) and image - mean(image).

Then x and y are zero, so only the x' and y' matter in the other part of the equation. That would be the offset to the portion of the image you are matching, and in this case, the whole image is that portion.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-24 13:18:21 -0600

Seen: 950 times

Last updated: Mar 24 '16