determining the edges of the money image with red color

1 回表示 (過去 30 日間)
betty
betty 2022 年 1 月 1 日
コメント済み: Image Analyst 2022 年 1 月 1 日
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');

採用された回答

Simon Chan
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 件のコメント
betty
betty 2022 年 1 月 1 日
thank you very much I tried and it worked
Image Analyst
Image Analyst 2022 年 1 月 1 日
Then please "Accept this answer" to award Simon his reputation points. 🙂

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Geodesy についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by