First time here? Check out the FAQ!

Ask Your Question
0

TM_CCOEFF_NORMED for images with the same size

asked Mar 24 '16

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Mar 24 '16

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.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Mar 24 '16

Seen: 1,206 times

Last updated: Mar 24 '16