To begin morphing the faces together, I first found two photos and labeled them with corresponding points on each. From this, I took a Delauney triangulation of the points on each image.
Barack Obama
Triangle Barack Obama
George Clooney
Triangle George Clooney
Warping the faces into the average triangles of the two, I was able to average the pixels and portray a midway face. Some examples are shown below.
Ajay
Ajay Clooney? George Bhargava?
George
Barack
Barack Clooney? George Obama?
George
A gif morph of two faces can be created by using a similar method to the midway face above. By averaging the points of the triangles using some weighted fraction, then using the same fraction on the pixels values of the warped images, an intermediate image can be created. Putting these images together yields the result below.
Clooney to Obama
Using the method to find midway faces can be applied on more than just 2 faces. Using images of Brazilians taken in 2005/2006 at the Artificial Intelligence Laboratory of FEI in São Bernardo do Campo, São Paulo, Brazil, I was able to generate the average face of a population, as demonstrated below.
Neutral Image
Neutral Image
Neutral Image
Neutral Image
Average Neutral Face
Neutral Image
Neutral Image
Neutral Image
Neutral Image
A similar average was found on the same dataset of faces, this time when they are smiling. I then warped that face into my face's geometry, then warped my face into that face's geometry,
Average Smile Warped to Ajay Image
Ajay Warped to Average Smile
Using the same keypoints method as described above, we can create caricatures of faces by multiplying the difference of points by some factor. Some exaggerated examples of this are shown below.
Zion Caricature
Ajay Caricature
I finished this project by creating a video of the most recent presidents morphed together.