Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how do we choose circles and rectangulars

4 ビュー (過去 30 日間)
bugrahan ilgaz
bugrahan ilgaz 2020 年 6 月 23 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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?

回答 (1 件)

darova
darova 2020 年 6 月 24 日
  • binarize image
  • use imfindcircles
I0 = imread('img1.jpeg');
I1 = im2bw(I0);
[cc,rr] = imfindcircles(~I1,[50 100]);
imshow(I1)
viscircles(cc,rr)
  4 件のコメント
bugrahan ilgaz
bugrahan ilgaz 2020 年 6 月 24 日
thanks, you are good :)
darova
darova 2020 年 6 月 24 日

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by