how do we choose circles and rectangulars
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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?
0 个评论
回答(1 个)
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
2020-6-24
darova
2020-6-24
i did my best
bugrahan ilgaz
2020-6-24
darova
2020-6-24

此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!