필터 지우기
필터 지우기

How to identify the disk edge?

조회 수: 2 (최근 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 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