Overview
The purpose of this project was to produce a morph animation of our face into someone else's face, as well as compute the average face, given a set of images.Part 1
For the first part, we needed to define corresponding points on two images. I picked around 4 or 5 points on each key feature of someone's face (e.g. eyes, nose, mouth, etc). It was important to keep the labeling consistent, otherwise we would end up with extremely distorted images. In order to create the triangulation of the points for morphing, we borrow scipy's Delaunay function and use it on the average of the points between the images.
Computing the "Mid-Way Face" and Morphing
Part2: Average Faces
Here, we implement some of the principles from earlier in order to compute the average face given a set of images of people's faces. I personally used the images of the Danes provided in the spec because the points are already defined and there are a lot of images to work with. The process was similar to the previous part, except this time we're only morphing one image to the average of many more images. After getting all these images morphed to the average, we add the intensities and then divide by the number of images we used.
In the top image, we have the average face of all male Danes looking forward with no expressioin. The image on the bottom was created using all the images of Male Danes, regardless of whether they were looking forward or what their expression was. Interestingly enough, there was not much variation between these two images. Each person had around 6 images in the second set that I used.
Above, we can see some of the morphed faces that were used for the average face. It's interesting that the sum of all these deformed images creates such a seamless image.
Above are two pictures. The first one is my faced warped to the average image's points, and the bottom is the average image warped to my face's features.
Part3: Caricatures
These carcs were created by warping my face to the corresponding points of other images.
Bells and Whistles
Here I transform myself to the image of the average female which I grabbed from google images.