matchTemplate with non-rectangular templ

asked 2015-01-16 15:27:53 -0600

AlexRothberg gravatar image

updated 2020-11-02 17:25:11 -0600

Is there some way for matchTemplate to work with a non rectangular templ? For example to use the alpha channel, etc to ignore certain pixels when calculating the score?

The various formulas for scores SHOULD generalize to non-rectangular templates.

edit retag flag offensive close merge delete

Comments

Afaik there is only support for rectangular templates for the moment. You will have to rewrite the sourcecode to adapt this if you want it. If you do, then feel free to add a PR with the addition.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-01-17 05:59:23 -0600 )edit