3DOM-FBK / deep-image-matching

Multiview matching with deep-learning and hand-crafted local features for COLMAP and other SfM software. Supports high-resolution formats and images with rotations. Both CLI and GUI are supported.
https://3dom-fbk.github.io/deep-image-matching/
BSD 3-Clause "New" or "Revised" License
292 stars 28 forks source link

What is the distance unit of the generated file? #64

Closed JV-X closed 3 weeks ago

JV-X commented 4 weeks ago

I am using the output of deep-image-matching as the input of openMVS. When I get the camera pose and point cloud and try to calculate the distance from the camera to the point for further calculation, I find that I cannot know the unit of the distance. I raised the question in the issue of the openMVS project, and the maintainer told me that openMVS did not change the unit, and the unit was determined during SfM. So I am here to ask a question, how to determine the length unit of deep-image-matching output?

This is the link where I asked a question in openMVS: https://github.com/cdcseacave/openMVS/issues/1145

lcmrl commented 4 weeks ago

Hi, SfM determines the geometry of the camera network and the scene up to a scale factor, so you have to use other known info from the "world" to scale the model: for instance the relative distance of a pair of cameras (or more), or of some points in the object space. So is normal the output of DIM is not "metric". If you have it, you can reference (and scale) the model using the 3D known position of some cameras and/or 3D points

JV-X commented 3 weeks ago

Hi, SfM determines the geometry of the camera network and the scene up to a scale factor, so you have to use other known info from the "world" to scale the model: for instance the relative distance of a pair of cameras (or more), or of some points in the object space. So is normal the output of DIM is not "metric". If you have it, you can reference (and scale) the model using the 3D known position of some cameras and/or 3D points

thanks for your reply

lcmrl commented 3 weeks ago

Feel free to open other issues and to collaborate to the project!