determining the edges of the money image with red color
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
betty
am 1 Jan. 2022
Kommentiert: Image Analyst
am 1 Jan. 2022
how can I draw the edges of the money image below in color? I'm trying the following code, but it doesn't work
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/849620/image.png)
A = imread('eight.tif');
figure,imshow(A)
d=imdistline;
[centers,radi] = imfindcircles(A,[20 25]);
figure,imshow(A);
viscircles(centers, radi,'Color','r');
0 Kommentare
Akzeptierte Antwort
Simon Chan
am 1 Jan. 2022
Bearbeitet: Simon Chan
am 1 Jan. 2022
It is better to ask imfindcircles to find all the dark circles and adjust the range of radius.
In your case, the range is too small and imfindcircles cannot find any circle for you.
Try the following
[centers, radi] = imfindcircles(A,[20 50],'ObjectPolarity','dark')
2 Kommentare
Image Analyst
am 1 Jan. 2022
Then please "Accept this answer" to award Simon his reputation points. 🙂
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!