CS 194-26 Project 4: Face Morphing

Author: Kevin Ji

Computing the "Midway Face"

To compute the face in between two faces, I first find and save the corresponding points between the two images with a short script. With these points, I compute a Delaunay triangulation with the average of the two sets of points. Afterwards, to compute the colors of the midway face, I compute the average of the RectBivariateSpline interpolations from the pixels in the two original images.

For this section, I used images of Stephen Curry and Taylor Swift. (An example with me is used in a later section.)

The Morph Sequence

The frames generated here were done in almost the same way as the midway face; the only difference is that I used a weighted average for the triangulation points and the interpolation results from the two images.

With the Curry and Swift images above, the smoothly-transitioned GIF is below.

The "Mean Face" of a Population

For this section, I computed the average of all the smiling male Danish faces (more specifically, the images that ended with -2m.jpg). To do so, I computed the average shape of the dataset, morphed all of the individual male faces to the average shape, and then averaged all of the morphed male faces.

For reference, here are some of the original and morphed faces.

And here is the average smiling male face.

For some interesting results, below are 1. my face, 2. my face morphed to the average smiling male face's shape, and 3. the average face morphed to my face's shape.

Caricatures: Extrapolating From the Mean

To produce some caricatures of my face, I added the difference between my face and the average smiling male face, multiplied by a factor, to my original face.

For the images below, I used factors of 1.25, 1.5, and 1.75.

Morphing Gender

As an (mostly unsuccessful) experiment, I morphed my face to the average smiling female Danish face. Below is that average face, as well as my face morphed to the shape of that average female face.

Below is a morphing GIF between my face and the average smiling female face.