cvg / pixel-perfect-sfm

Pixel-Perfect Structure-from-Motion with Featuremetric Refinement (ICCV 2021, Best Student Paper Award)
Apache License 2.0
1.29k stars 132 forks source link

Running entirely from c++? #98

Open antithing opened 1 year ago

antithing commented 1 year ago

Hi, and thank you for making this code available! I would like to run an entire sfm pipeline from scratch using c++ only, with no python. I see it is possible to link this code as a library, but the example.cc does not show how to run it.

Would it be possible to add a working c++ example please?

Thanks again!

Phil26AT commented 1 year ago

Hi @antithing, the current C++ part lacks an implementation of dense feature extraction and storage, thus running pixsfm entirely from C++ is not possible. However, if you assume to have features stored in an h5 file, all other steps could be run from C++. At the moment I have not planned to write a tutorial for it, but I would be happy to answer any questions you might have about the C++ API.

antithing commented 10 months ago

Hi @Phil26AT I am digging back into this, would you be able to point me in the right direction to get started with a c++ only pipeline? Assuming I export and store features as h5, what steps are needed, and where are the functions?

Thank you!

antithing commented 9 months ago

@Phil26AT nudging this, would you be able to give me a push in the right direction to build a fully c++ pipeline please?

Thanks!