Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how do we choose circles and rectangulars

4 visualizaciones (últimos 30 días)
bugrahan ilgaz
bugrahan ilgaz el 23 de Jun. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I want to determine the rectangles and circles in the picture with different colors and write numbers on them. For example, I want to see how many circles and how many rectangles there are, can you please help with the code?

Respuestas (1)

darova
darova el 24 de Jun. de 2020
  • binarize image
  • use imfindcircles
I0 = imread('img1.jpeg');
I1 = im2bw(I0);
[cc,rr] = imfindcircles(~I1,[50 100]);
imshow(I1)
viscircles(cc,rr)
  4 comentarios
bugrahan ilgaz
bugrahan ilgaz el 24 de Jun. de 2020
thanks, you are good :)
darova
darova el 24 de Jun. de 2020

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by