cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.25k stars 897 forks source link

Error messages when loading nvm files #328

Open isolin opened 6 years ago

isolin commented 6 years ago

I looked at the nvm loading code today, since I had an issue of loading a file. There are many exit points with just return false;. It would be great to write the reason to the console first. That would for sure help many people who start using openMVS and get stuck while loading the sparse reconstruction.

In my case there were two problems:

  1. My nvm file was TXT which is the non-default option
  2. It contained image filenames with whitespaces that destroyed further interpretation of the rest of the line.
cdcseacave commented 6 years ago

I recommend not using NVM format at all, as it uses a custom camera model, not widely supported by most of non VisualSFM pipelines exporting in this format. Plus I've seen strange OpenMVS results with original VisualSFM reconstructions too.

Pls use OpenMVG.

isolin commented 6 years ago

Colmap is the tool of my choice. Its speed and quality of sparse reconstruction is even superior to leading commercial products. I will for sure keep on using it :)