Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How would you tem plate match this?

Template image:

image description

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...):

image description

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.

How would you tem plate template match this?

Template image:

image description

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...):

image description

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.

How would you template match this?

Template image:

image description

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...):

image description

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.