Template image:
Query image (imagine the background is the same white colour than the one in the template, it is rendering a little greyish in my browser...):
I would like to template match this, but it fails because even if the black lines will have a good correlation with the similar shape in the centre of the query image, the white background of the template won't match. Is there some way to make the template matching of OpenCV ignore some pixels with a mask or maybe a transparency layer?
Previous experimentation makes me think that feature-descriptors (ORB, etc.) won't be of use here so that's why I am using template matching.