How to identify the disk edge?

1 回表示 (過去 30 日間)
Steven
Steven 2014 年 3 月 17 日
編集済み: Steven 2016 年 4 月 26 日
How can MATLAB determine the radius of the disk? (imagine the center is known)
I know that if the whole circle is visible, I can use imfindcircle or other methods to determine the center and radius, but I wonder whether MATLAB can determine the edge of the radius for such an image?
Thanks
Steven

採用された回答

Image Analyst
Image Analyst 2014 年 3 月 17 日
Try it and see. Otherwise, just segment it and get the edge coordinates with bwboundaries() and use the FAQ to fit them to a circle or ellipse.
  2 件のコメント
Steven
Steven 2014 年 3 月 17 日
編集済み: Steven 2014 年 3 月 17 日
Thanks.
How to get the edge using bwboundaries?
Thanks
Steven
Image Analyst
Image Analyst 2014 年 3 月 17 日
First segment based on threshold
binaryImage = grayImage < 128; % or whatever value works.
Then get rid of small noise particles
binaryImage = bwareaopen(binaryImage, 10000);
Then call bwboundaries
boundaries = bwboundaries(binaryimage);
Then do the fit as per the FAQ.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by