Applying Delaunay triangulation and affline warping to face morph two pictures.
Switch branches/tags
Nothing to show
Clone or download
Latest commit a54fce1 Jan 4, 2016
Permalink
Failed to load latest commit information.
README.md fixed readme Jan 4, 2016
constant.py first commit Dec 8, 2015
images2gif.py first commit Dec 8, 2015
main.py first commit Dec 8, 2015

README.md

Face Morpher

Applying Delaunay triangulation and affline warping to face morph two pictures.

Mathurkuriakose

Algorithm

The algorithm uses Delaunay's triangulation. To do this, we indiviually select points that match each other on both images. After doing this, triangles are automatically created such that the size of both don't exceed 45 degrees. This allows each individual triangle to be affline warped to the set of points that are changed. After we create our triangulation, we affline warp a certain amount, depending on how far we want our image to look like

Running Code

python main.py <image1> <image2>

Note you'll need a dependency on cv2 for the some of the helper functions. Both images also need to be of size 500 x 500 and the same size.