matchTemplate with non-rectangular templ
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.
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.