Format distance tool label to centimeter.
2 次查看(过去 30 天)
显示 更早的评论
Can anyone tell me how to format the text in distance tool's label to centimeter?
Thanks
2 个评论
Sven
2011-11-12
The distance tool reports in pixels for a very good reason:
An image doesn't have *physical* distance by itself. Real-world distance is only applied after you answer this question:
"How big (in cm, for example) is each pixel in my image"?
This answer will be very different depending on the image. Take a picture of your house. How many cm in each pixel? Take a satellite picture of your neighbourhood. How many cm in each pixel?
What I suggest you do is determine the "scale" of your pixels, ie, that each pixel represents 0.1cm, then multiply that number by what the distance tool reports.
回答(1 个)
Ashish Uthama
2012-9-17
" The distance tool reports in pixels for a very good reason:
An image doesn't have physical distance by itself. Real-world distance is only applied after you answer this question:
"How big (in cm, for example) is each pixel in my image"?
This answer will be very different depending on the image. Take a picture of your house. How many cm in each pixel? Take a satellite picture of your neighbourhood. How many cm in each pixel?
What I suggest you do is determine the "scale" of your pixels, ie, that each pixel represents 0.1cm, then multiply that number by what the distance tool reports. "
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!