determining the edges of the money image with red color
1 view (last 30 days)
how can I draw the edges of the money image below in color? I'm trying the following code, but it doesn't work
A = imread('eight.tif');
[centers,radi] = imfindcircles(A,[20 25]);
Simon Chan on 1 Jan 2022
Edited: Simon Chan on 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')