How to find the physical distance in real word between two places or points in an image?
4 次查看(过去 30 天)
显示 更早的评论
Respected Sir/Madam,
Please send me the related code or work for the below problem statement.
Problem:By clicking on any two points on image (Image should be a map of a city), it should give me the physical distance(in terms of meters or kilo meters) between the two points.
1.Here points corresponds to coordinates of any two places of the city or a map
2.Once we run the program using Matlab, it should show me the image of suitable resolution.
3.How to select two points on image by just clicking on that image?
4.We need to get the coordinates of pixels and find the distance between them, and then convert the distance between pixel to the physical distance like kilo meters or meters.
Finally it should help us to know the distance between two places by just clicking on any two places.
Please help me. I'm in very need of it. Please send as early as possible.
Thank you.
回答(1 个)
Image Analyst
2014-11-23
That's exactly what my spatial calibration demo (attached) does.
2 个评论
Image Analyst
2014-11-26
You have to have something to measure first that is of known dimensions (lengths, distances). For example if I had an image of the moon, how do I know it's the real moon from through a telescope instead of a poster on the wall? Well you have to measure some known distance, for example a ruler on the wall next to your poster, or the diameter of the moon if you know it's the real one. Once you enter that known distance then you can go on to measure any arbitrary distances or areas in the image.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!