facemoph composite

An algorithm for smoothly morphing two faces together, created from scratch in MatLab for a Computational Photography class.

A morph is a simultaneous warp of the image shape and a cross-dissolve of the image colors. The warp is controlled by defining a correspondence between the two pictures. For this example, since I was only using two static images I defined the points by hand and made sure to cover all the important facial features that should be aligned/preserved in order to facilitate the illusion. (i.e. eyes, mouth, chin)

I then calculated a delaunay triangulation and used it to find the affine transformation that transforms the triangles from the first image into those of the second.

warped