Ask Your Question

Revision history [back]

Finding a complex template on a image

I am a beginner and trying to find a shape inside the red square on the picture: image description

The white dot can be in any position inside the circle. The circle placement is not entirely fixed in place.

So far I have tried MatchTemplate with images after Sobel, Canny. I also have tried parsing results of HoughCircles but there were still mistakes.

As a template with mask I have tried using the following:

image description image description

I think the problem could be with the template but I do not know how to correct it.

What would be the correct way to handle the problem?

Finding a complex template on a image

I am a beginner and trying to find a shape inside the red square on the picture: image description

The white dot can be in any position inside the circle. The circle placement is not entirely fixed in place.

So far I have tried MatchTemplate with images after Sobel, Canny. I also have tried parsing results of HoughCircles but there were still mistakes.

As a template with mask I have tried using the following:

image description image description

I think the problem could be with the template but I do not know how to correct it.

What would be the correct way to handle the problem?

EDIT: I have tried changing the mask:

image description

But I still do not get the correct result.