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