Why can't a circle be detected in such an obvious image?
Show older comments
Why can't a circle be detected in such an obvious image?

img = imread('circle.png');
[centers1,radii1] = imfindcircles(img,100,...
'Sensitivity',0.85,...
'ObjectPolarity','bright')
No matter how you adjust the value of 'sensitivity' or the radius or 'ObjectPolarity', the circle is not detected, why?
os: win10
matlab R2021a
Accepted Answer
More Answers (1)
Use a range for radius input argument such as:
[centers1,radii1] = imfindcircles(img,[50 200],'Sensitivity',0.85,'ObjectPolarity','bright')
1 Comment
xingxingcui
on 21 May 2021
Edited: xingxingcui
on 21 May 2021
Categories
Find more on Image Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!