Project 4: Face Morphing

By Seunghwan Choi(cs194-26-acf)

Part 1

Overview and Explanation

Part 1 requires you to choose two pictures, find corresponding points manually, compute the "midface" by averaging the corresponding points, warp both faces into these "midface", and average the colors together. So I started off with these two pictures.


Me and my friend johnn(with his consent)


This is the midface that I computed. It involves using a matrix transformation, T. We know that TA = B where A is the source points and B is the target points. A = [[a1, b1, c1,], [a2, b2, c2], [1, 1, 1]] where a, b, c makes a triangle. Same goes for B. Then we calculate T, and using the inverse of T, we find where in the source points corresponds to the target points.


Midface


To make a gif, I made 46 images, where first and last are original images, and everything else is "in between images". This gif was created using 30 frames per second.

Morphing gif



Part 2 Mean face of population

I used this database to get around 15 male faces and computed and average face according to the points they gave

Average face of male


Then I used the same correspondences to label this picture of me



which then I warped my face to their geometry



and average face in MY geometry


Bells and Whistles

I heard that I looked like one of the cartoon charactes in Korea called Pororo. Here is the picture of pororo


So I tried getting midface of it and my face. Here is the result



Reflection

This project was very fun. I enjoyed this time coding and planning which pictures I should use.