how do we choose circles and rectangulars
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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?
Risposte (1)
darova
il 24 Giu 2020
- binarize image
- use imfindcircles
I0 = imread('img1.jpeg');
I1 = im2bw(I0);
[cc,rr] = imfindcircles(~I1,[50 100]);
imshow(I1)
viscircles(cc,rr)

4 Commenti
bugrahan ilgaz
il 24 Giu 2020
darova
il 24 Giu 2020
i did my best
bugrahan ilgaz
il 24 Giu 2020
darova
il 24 Giu 2020

Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!