Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to calculate scale with matchTemplate

I have problem that I hope someone give me a idea. In general I want to use matchTemplate to find template in image but with that we can find location but how measure how mush template scaled? suppose this is template:

image description

and this is area that I found in new image :

image description

As you can see founded area is smaller than template, But my problem is that how calculate resize scale !?

These images are samples, Is a way to solve this problem in general?

thanks for your advice.