How to identify the disk edge?
조회 수: 2 (최근 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
댓글 수: 0
채택된 답변
Image Analyst
2014년 3월 17일
댓글 수: 2
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!