RTK is a library, therefore it's meant to be integrated into application. This tutorial shows how to create a simple FirstReconstruction project that links with RTK. The source code for this tutorial is located in RTK/examples/FirstReconstruction.
- First you need to create a CMakeLists.txt
:language: cmake
- Create a FirstReconstruction.cxx file
- Run CMake on the FirstReconstruction directory and create a FirstReconstruction-bin,
- Configure and build the project using your favorite compiler,
- Run
FirstReconstruction image.mha geometry.xml
. If everything runs correctly, you should see a few messages ending withDone!
and two new files in the current directory, image.mha and geometry.xml. image.mha is the reconstruction of a sphere from 360 projections and geometry.xml is the geometry file in RTK's geometry format.