A modern C++ augmented-reality library to superimpose 3D objects on images.
A modern C++ augmented-reality library to superimpose 3D objects on images.
![]() ![]() ![]() |
---|
The project is undergoing heavy development: APIs will be subject to changes quite often.
To be able to understand API compatibility during development, the project will follow SemVer specs.
In particular, the library will have zero major version, i.e. 0.MINOR.PATCH, as specified by SemVer spec. 4 and the project will comply with the following rules:
This library provides superimposition facilities: the placement of one thing over another.
In particular, this library provides classes to superimpose 3D mesh model on top of an image that are of central importance for computer vision and augmented-reality applications.
SuperimposeMesh library depends on
version >= 0.10.2
version >= 3.1
, macOS: brew --HEAD
version >= 3.3.0
version >= 2.0
version >= 2.4.9
version >= 0.9
Use the following commands to build, install and link the library.
With make
facilities:
$ git clone https://github.com/robotology/superimpose-mesh-lib
$ cd superimpose-mesh-lib
$ mkdir build && cd build
$ cmake ..
$ make
$ [sudo] make install
With IDE build tool facilities:
$ git clone https://github.com/robotology/superimpose-mesh-lib
$ cd superimpose-mesh-lib
$ mkdir build && cd build
$ cmake ..
$ cmake --build . --target ALL_BUILD --config Release
$ cmake --build . --target INSTALL --config Release
Once the library is installed, you can link it using CMake
with as little effort as writing the following line of code in your project’s CMakeLists.txt
:
...
find_package(SuperimposeMesh 0.MINOR.PATCH EXACT REQUIRED)
...
target_link_libraries(<target> SI::SuperimposeMesh)
...
We have designed several tests using CMake
‘s ctest
to check whether everything is running smoothly or not.
Simply run
$ ctest [-VV]
Tests are also well-designed starting points to learn how to use the library and how to implement your own shaders! Just have a look at them!
Doxygen-generated documentation is available here.