There are two major parts in this project.
Note: This step is optional.. qmake is not fully functional in the current version. Please see the Build-Section for details.
Import in QT-Creator
Following dependencies are needed for the Caustic_Designer:
Debian dependencies as one-liner:
sudo apt-get install cmake libqt4-dev libcgal-dev libcgal-qt4-dev libblas-dev liblapack-dev libtbb-dev libmetis-dev libsuitesparse-dev liblbfgs-dev libtinyxml-dev
We suggest using cmake to build the project. To do so, simple:
mkdir build-Caustic_Design
)cd build-Caustic_Design && cmake ../Caustic_Design/
)You may also use qmake instead of cmake if you prefer qmake. But in the current version, suitesparse does not seem to be set correctly when installing it via apt-get
.
Following sections describe the usage of the different steps for the caustic-design project.
To run the optimal transport, a source-image as well as a target-image needed. The rest of the steps are done automatically.
Loading source- and target-image
//open(QString("/home/p/Pictures/einstein_small.png"), false);
and //open(QString("/home/p/Pictures/white_small.png"), true);
and replace the strings with the path to the target image and source image, respectively.File > Load Image
to load target image and File > Load Source Image
to load source image.NOTE: Source- and Target-Image need to be of same ratio.
Configuration
All relevant values (amount of sites, multi-scale levels) can be configured in the config.h file.
Running To finally run the Optimal Transport:
Algorithm > Compute Optimal Transport
LEVEL_MAX
is set to 1
// Assigned to: Cam
algorithm->compute interpolation to load the source image, and points (.dat) and weights (.weights) data from the OTM and run the interpolation
Following libraries are needed:
// Assigned to: Cam
Input
Output
Computing the surface optomization
The code is located in target-surface-optimization folder
Prerequisits:
Debian dependencies as one-liner:
sudo apt-get install libglew-dev libsoil-dev