http://wiki.nosdigitais.teia.org.br/api.php?action=feedcontributions&user=GabrielAndrade&feedformat=atomPontão Nós Digitais - Contribuições do usuário [pt-br]2024-03-28T15:25:20ZContribuições do usuárioMediaWiki 1.39.0http://wiki.nosdigitais.teia.org.br/index.php?title=OpenMVG&diff=41035OpenMVG2019-10-25T18:05:29Z<p>GabrielAndrade: </p>
<hr />
<div>OpenMVG is a 3D reconstruction software focusing on automated techniques. This is used in AR and related technologies such as ARKit and Microsoft Hololens, and match-moving in video editing for inserting virtual content.<br />
It is also known as photogrammetry, structure from motion (SfM), 3D Computer Vision, and uses multiple view geometry heavily.<br />
In this wiki you will find community notes on OpenMVG, to complement the official docs.<br />
<br />
==Building / Compiling m==<br />
* Follow `BUILD.md` closely. For the curious, see https://github.com/openMVG/openMVG/pull/1579 where I describe some pitfalls.<br />
<br />
=== Build Summary for Linux (24Oct19) ===<br />
<br />
* Install the required dependencies (see BUILD.md). Please edit this wiki page if you had to install more things.<br />
* Checkout OpenMVG, and make it lowecase<br />
git clone --recursive https://github.com/openMVG/openMVG.git <br />
* Create a binary folder. I prefer the following setup: to have an openMVG-bin folder parallel to openmvg, outside the source<br />
mkdir openMVG-bin<br />
cd openMVG-bin<br />
* Configure and build <br />
cmake -DCMAKE_BUILD_TYPE=RELEASE ../openMVG/src/<br />
cmake --build . --target install<br />
* You can reduce the build and configure with a single line code<br />
mkdir openMVG-bin && cd openMVG-bin && cmake -DCMAKE_BUILD_TYPE=RELEASE ../openMVG/src/ && cmake --build . --target install<br />
==== Build for development with GCC and interactively ====<br />
CC=gcc-5 CXX=g++-5 ccmake../openMVG/src/<br />
<br />
<br />
=== Build Summary for Mac (24Oct19) ===<br />
<br />
==== Mac OS + GCC ====<br />
GNU is convenient for certain optimizations, extensions and for closely dev with your Linux team mates and cluster nodes.<br />
<br />
CC=gcc CXX=g++ ccmake ../openMVG/src<br />
<br />
With macports you can select to what GCC version the 'gcc' link will point to.<br />
<br />
With homebrew, you can use something like gcc-5 to pick the GCC version:<br />
<br />
If e.g. gcc 5 is desired:<br />
brew gcc@5<br />
CC=gcc-5 CXX=g++-5 ccmake ../openMVG/src<br />
<br />
* I carried out many tests with GCC 4-8, and GCC 5 is better for the optimizations I use (--fast-math for trifocal solver).<br />
* For speed, can try '--fast-math' optimization, gcc-5 is very good at that.<br />
* I use BUILD_SHARED_LIBS on. Faster linking. Faster development cycle<br />
<br />
=== OpenMVG as a library ===<br />
* Careful: If you want to use OpenMVG as a library, you must define your prefix, and not only <pre>make</pre> but '''also''' <pre>make install</pre><br />
** What I do in this case is cd openMVG-bin, then 'ccmake -DCMAKE_INSTALL_PREFIX:STRING=$PWD/install ../openMVG/src"<br />
<br />
<br />
Same as Linux currently works.<br />
<br />
== See Also ==<br />
* Colmap: shares similarities with OpenMVG's code, but improved by some of the most famous SfM researchers (Marc Pollefeys' student)<br />
<br />
<br />
[[Category:Lab Macambira]]<br />
<br />
[[Category:Video]]</div>GabrielAndrade