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:
and this is area that I found in new image :
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.
unfortunately, there is no direct dependance between the matching response and the scale.
matchTemplate assumes same scale. if you need to find objects at different scales, you need to rescale either image in small increments and retry matchTemplate using that