CS 194-26 Project 4

Face Morphing

Kate Shijie Xu cs194-26-abf

In this project, I created a script to morph a face A into another face B. I then produced an animation of my face into someone else's face, computed the average face of a population, and created a caricature of myself by extrapolating from a population's mean face.

The Process

Morphing

A morph of two images is essentially a warp of the images' shapes and a cross-dissolve of the images' colors.

Original Pictures

Trees
Me
Ishihara Satomi

Defining Correspondences

I created a little script to define corresponding points in each image, so that I can use the points to build a Delaunay Triangulation.

Trees

Morphing Sequence

Using the Delaunay Triangulation, I computed the affine matrix which transformed each input triangle to the corresponding average face triangle, then inverted the transformation to obtain the warped points. I then cross-dissolved the pixel colors at the warped points from both images to produce a morph.

Picture Morphing Process
Triangle Morphing Process

Average Face of a Population

In this part of the project, I used a subset of 37 images from the IMM Face database to find the average face in the subset.

1. Average Faces

Average face of men in the subset
Average face of women in the subset
Average face of entire subset

There were more men than women in the subset, which is why the average face of the entire subset looked more male than female.

2. Faces in the subset morphed into the average face

3. My face to the average population faces

The average population face morphed to my face
The average female face morphed to my face
My face morphed to the average population face
My face morphed to the average female face
My face morphed to the average population face
The average population face morphed to my face

Caricature

I created caricatures of myself by extrapolating from the population average face and the average female face.

Morphing Process
Final Caricature
Morphing Process
Final Caricature

Bells & Whistles

1. Gender swap!

Girl to Average Danish Male

Girl
Average Danish Male
Shape only
Cross-dissolve only
Warp & Cross-dissolve

Guy to Girl

Guy
Girl
Shape only
Cross-dissolve only
Warp & Cross-dissolve

1. Taylor Swift Music Video