I try to use the function imfindcircles to detect circlesly in an image. To try it out I used the attached test image.
The used code can be seen here:
layer = imread("test1.png");
layer = rgb2gray(layer);
[centers, radii] = imfindcircles(layer,[10 2000],'ObjectPolarity','dark', 'Sensitivity',0.9)
I followed the principles of the following Mathworks guide:
In my opinion this should be super easy. There is a big, perfectly circular structure in the top of the shape. Still, the circle is not detected. I varried ObjectPolarity, Sensitivity, and the radii but nothing helped. Contrast also can't be the issue.
Is there something obvious that I'm missing why the circle is not detected?