This repository contains the C++ implementation of embedded deformation (ED) [1]. The formulation of the different cost functions used in ED are defined with the associated jacobians. In contrasts to [1], the optimization uses Levenberg-Marquardt from CERES instead of Gauss-Newton.
Several other cost functions are also defined, such as the minimization of model to model similarly as the one from Elastic Fusion (in the journal version).
On Ubuntu, you need to install the following packages:
sudo apt-get update
sudo apt-get install git build-essential cmake libx11-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev libxi-dev libxmu-dev libblas-dev libxinerama-dev libxcursor-dev libeigen3-dev
Additionally, CERES is used as an optimization framework. It can be installed with the package manager:
sudo apt-get install libceres-dev
To build, type into the console:
git clone https://github.com/rFalque/embedded_deformation.git
cd embedded_deformation
mkdir build
cd build
cmake ..
make -j3
ℹ️ Info: The input files and the skeleton trimming method can be changed through the config.yaml file.
To run the sample, then just type:
./embedded_deformation_sample
- make the code single thread
- clean up the mesh visualization