danielTobon43 / sfM_danPipeline

A simple structure from motion pipeline in c++ using OpenCV and PCL

Home Page:https://raw.githubusercontent.com/danielTobon43/sfM_danPipeline/master/imgs/example.png

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple structure from motion pipeline for 3D incremental reconstruction

This is a reference implementation of a Structure-from-Motion pipeline in OpenCV, following the work of Roy Shilkrot at SfM-Toy-Library. https://github.com/royshil/SfM-Toy-Library

Note: This is not a complete and robust SfM pipeline implementation. The purpose of this code is to do a 3D reconstruction of a tree and get dendrometry estimation.


A simple incremental SFM pipeline for 3D reconstruction of a tree with bundle adjustment.

  • Incremental SFM
  • Bundle Adjustment - Ceres solver
  • Densification process - PMVS2

Example


Resources

Build

To build use CMake minimum required 3.5.1 : https://github.com/Kitware/CMake

Prerequisite

Compilation

  • Set "YOUR OWN" PCL Build DIR in CMakeList.txt e.g: /opt/pcl-1.8.1/build and save it.
  • Set "YOUR OWN" OpenCV Build DIR in CMakeList.txt e.g: /opt/opencv-3.4.1/build and save it.
  • Create a "build" folder

in the main folder:

cd /build  
cmake ../
make

Test

cd /build/bin
./iTree3DMap

Note: If OpenCV is not installed (just compiled). please set the path to the current build directory in the CMakeList.txt file.