This was for an assignment for Computational Photography, a course I’m taking this semester. As such, I can’t in good faith upload the MATLAB source. Some day, I might write a face morphing library in C or Python though.
There is no great social or political message here. I just thought it would look cool. Both of the images are from Wikipedia.
On the technical side of things, matching points are manually picked on both images. They are then formed into triangles using a Delaunay function. The matching triangles are then morphed using an affine transform by the fundamental matrix that matches the three specified pairs of points. A different amount of “morph” is applied to each of the 61 frames in this. It all comes together to look surprisingly smooth.