Finding a complex template on a image
I am a beginner and trying to find a shape inside the red square on the picture:
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:
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:
But I still do not get the correct result.