write a MATLAB code to locate all yellow circles in the provided image
10 views (last 30 days)
Show older comments
Automatically detect circular objects in an image and visualize the detected circles.
Steps are here, just detect all the yellow circles in the image
0 Comments
Answers (1)
Sam Chak
on 12 Jul 2024
The code is available in the example to locate the bright yellow circular objects. You need to adjust the Sensitivity level though.
rgb = imread("coloredChips.png");
imshow(rgb)
[centersBright, radiiBright] = imfindcircles(rgb, [20 25], ObjectPolarity="bright", Sensitivity=0.95);
hBright = viscircles(centersBright, radiiBright, Color="b");
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!