FaceMorphing
Face Morphing by Delaunay Triangulation using OpenCV and C++
HERE for detailed analysis of code and experiment results.
Please visitWe manually mark sets of tie points for images, compute the Delaunay Triangulation for them, and morph the images using alpha blending.
Code is present in 'code' directory. FaceMorph.cpp implements the main program. Other files contain the images and predefined tie points.
HOW TO RUN :
NOTE: Cmake and GNU make are required for compilation along with OpenCV.
- Compile the program by entering the following command :
cmake .
make
- Run using:
./lab4
The program provides three options via a menu:
- Mark points on images and find Delaunay Triangulation
- Morph two images: '1.jpg' to '2.jpg'
- Morph three images: '1.jpg' to '2.jpg' to '3.jpg'
Note: for now, the filenames are fixed. Code will be updated later to allow input for filenames.