Project 3: Face Morphing

Wenlong Huang | cs194-26-agf


Part 1: Computing the "Mid-way Face"

Before computing the whole morph sequence, I first create the mid-way face between my photo and Chelsea's photo. The first step is computing the average shape, and the second step is warping both faces into that shape. Finally I average the colors together. This will involve computing an affine transformation matrix T between each corresponding two triangles.


The Mid-Way Face

Part 2: The Morph Sequence

In this section, we attempt to create a morph sequence between the above images. Here we define the wrap_frac and dissolve_frac. They control shape warping and cross-dissolve, respectively. In particular, images im1 and im2 are first warped into an intermediate shape configuration controlled by warp_frac, and then cross-dissolved according to dissolve_frac. For interpolation, both parameters lie in the range [0,1]. See below for the morphing animation!


Morphing Animation

Part 3: The "Mean face" of a population

In this section, we pick the Danes dataset to calculate the "mean" face of the female individuals in the dataset. See below for the average face and some examples of different individuals morphed into the average shape. We also show 1) my face warped into the average geometry, and 2) the average face warped into my geometry.


The "Mean" Face

Original Face

Face Morphed into Average Shape

Original Face

Face Morphed into Average Shape

Original Face

Face Morphed into Average Shape

My Face Morphed into Average Shape

Average Face Morphed into My Shape

Part 4: Extrapolating from the mean

We also show the caricatures of my face by extrapolating from the population mean obtained in the last step.


Caricatures
Bells and Whistles: Make Myself Smile!

The goal in this section is to make myself smile by extrapolating my face with the average smiling face obtained from the FEI Face Database. Note that since the image from the database is grayscale. We also change my face to be grayscale to better show the result.


Average Smiling Face

Me

Smiling Me