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.