I am having difficulty in finding a code to find diameter of a circle
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there an easier method to find the diamter of the 2 circles in mm?
댓글 수: 0
채택된 답변
Drishan Poovaya
2021년 11월 1일
Rather than finding the distance with code, I feel it would be easier to use imtool and use the 'Measure distance' tool.
You can run imtool by running the snippet below
imtool('image.png')
This will give you the relative distance in pixels. You can convert this value to mm by using the 'Measure distance' tool on the scale you have here, and calculating the ratios.
Refer to this answer for more details
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!