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일

0 개 추천

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
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개)

질문:

2014년 3월 17일

편집:

2016년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by