How to identify the disk edge?

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by