Borrar filtros
Borrar filtros

write a MATLAB code to locate all yellow circles in the provided image

20 visualizaciones (últimos 30 días)
nishanth patil
nishanth patil el 12 de Jul. de 2024 a las 8:03
Respondida: Sam Chak el 12 de Jul. de 2024 a las 8:20
Automatically detect circular objects in an image and visualize the detected circles.
Steps are here, just detect all the yellow circles in the image

Respuestas (1)

Sam Chak
Sam Chak el 12 de Jul. de 2024 a las 8:20
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");

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by