measure the maximum distance in millimeters(mm)
1 次查看(过去 30 天)
显示 更早的评论
How can I measure the maximum width of the white shape in millimeters(mm) not in pixels ?
0 个评论
回答(1 个)
Image Analyst
2020-4-11
Then you need to multiply by the number of millimeters per pixel:
props = regionprops(binaryImage, 'BoundingBox')
width = props.BoundingBox(3) * mmPerPixel;
See attached demo.
4 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!