I handpicked 41 feature points for both my source and target image through a UI. For my source image, I used George Clooney. For my target image, I used Clint Eastwood. The features were primarily all around the face. Afterwards, I created a mid-way shape consisting of the average feature points from both the source and target image.
|
|
As previously mentioned, I computed the average shape and its Delaunay triangulation. Then, I warped two faces into that shape by doing the following for each midway triangle:
Instead of calculating the mid-way shape with a weight of 0.5, I used a weight t, such that t is a time interval from 0 to 1 with step size 1/45 (since our morph sequence will be a 45-frame GIF). I essentially repeat the same algorithm from the previous part, except the only difference being that my cross-dissolve weights are entirely dependent on t rather than 0.5.
I used the Danes dataset to calculate the average set of correspondences, the "average" face. Below are some examples of Danish faces warped to the average shape:
When computing the average face of the dataset, we notice that the entire dataset consists of 33 males and 7 females. Hence, the average face appears to be male.
Here's how I look originally, (and also with the average shape), and how the average face looks like with my shape!
Turns out, we can make caricatures of ourselves by extrapolating from the population mean! The way extrapolation works is that for points P and Q and k, we have the following equation P + k(Q - P). As k approaches infinity, the image will shift more towards the average Dane. On the other hand, the image will shift more towards my facial structure as k approaches negative infinity!
(-1.5 towards me) | (+1.5 towards average Dane) |
Here's what the average Danish female looks like, according to the dataset (recall that there are only 7 females total in the dataset):
Now, here's me changing my ethnicity and gender to the typical Danish female. The below images feature various properties of how I look like as a completely different person.
Only the shape is warped; no cross-dissolving. | Cross-dissolving only. | Complete morph from asian male to Danish female. |