Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how do we choose circles and rectangulars

3 Ansichten (letzte 30 Tage)
bugrahan ilgaz
bugrahan ilgaz am 23 Jun. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 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?

Antworten (1)

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

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by