determining the edges of the money image with red color
조회 수: 4 (최근 30일)
이전 댓글 표시
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');
figure,imshow(A)
d=imdistline;
[centers,radi] = imfindcircles(A,[20 25]);
figure,imshow(A);
viscircles(centers, radi,'Color','r');
댓글 수: 0
채택된 답변
Simon Chan
2022년 1월 1일
편집: Simon Chan
2022년 1월 1일
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!