alicevision / Meshroom

3D Reconstruction Software
http://alicevision.org
Other
11.13k stars 1.08k forks source link

[question] bridging Meshroom and COLMAP? #1395

Open devernay opened 3 years ago

devernay commented 3 years ago

Describe the problem It would be nice to be able to use alternative processings from COLMAP for some of the nodes in the Meshroom graph, so that one can switch easily between the two options for - say - SfM, or densification. I like the flexibility of the Meshroom graph, and I think it would be great to have COLMAP nodes in it.

Did someone from the community take a look at that already?

It doesn't seem like a huge amount of work, except maybe the translation between AliceVision and COLMAP SfM representations (and probably someone already has scripts to convert the camera poses between the two software - pointers?)

natowi commented 3 years ago

Yes, I played around with different packages, but at the moment it is pretty much a one way street. https://github.com/natowi/meshroom_external_plugins/wiki/MR-external-photogrammetry

Creating nodes for existing Colmap executables should be easy, but what we need first is a converter node that supports multiple sfm formats from different software packages. (in this case primarily sfm <> nvm conversion)

(good overview of formats used by the different tools (p.10) https://blender-addon-photogrammetry-importer.readthedocs.io/_/downloads/en/stable/pdf/)

devernay commented 3 years ago

Great starting points, thanks!

The blender addon also has code to more-or-less convert between these formats https://github.com/stuarta0/blender-photogrammetry Your package https://github.com/natowi/meshroom_external_plugins also has pointers to plenty of additional resources!

natowi commented 3 years ago

The repository by stuarta0 is great - most of the code is already there and only needs to be wrapped up into a Meshroom node. With this done, we can easily add support for Colmap and many other packages.

In addition to my personal repository, where I collect information I find useful, we now have a new API section in the documentation: https://meshroom-manual.readthedocs.io/en/latest/feature-documentation/core/nodes.html#api

SBCV commented 3 years ago

Just stumbled over this conversion library - might be relevant for this task.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue is closed due to inactivity. Feel free to re-open if new information is available.