detect circle between some shapes

hi,in my image has some shapes(circle,square,triangle) . how can I detect circle between other shapes? and can tell me how many circle there is in my image.thanks in advance

Respuestas (1)

Image Analyst
Image Analyst el 18 de Mayo de 2013

0 votos

Have you tried imfindcircle() in the Image Processing Toolbox? Otherwise try hough() or somehow find all the objects and extract the circles based on their circularity = perimeter^2 / (4*pi*Area).

3 comentarios

safa
safa el 19 de Mayo de 2013
i wrote my code according imfindcircle() , but it didn't work.
I = imread('c:\safa\test.bmp');
b=rgb2gray(I);
[centers, radii, metric] = imfindcircles(b,[5 30]);
viscircles(centers, radii,'EdgeColor','b');
subplot (2,3,1), imshow (b);
Image Analyst
Image Analyst el 19 de Mayo de 2013
You forgot to tell us where you uploaded test.bmp.

La pregunta está cerrada.

Preguntada:

el 18 de Mayo de 2013

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by