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.
4 Replies to “Face Morphing from Obama to McCain”
Flash video is such a poor medium for this sort of demo! Any Flash video player I’ve seen will only allow you to scan to key frames!
Sorry, it’s just a flash video. I didn’t really intend for it to be an interactive, choose-a-morph kind of thing, though that would be way cool.
Have you tried this service?
It is Flash. It works just with images – no video. And takes just couple minutes to create face morphing from any photo to any photo.
What do you think?
I am working on the image morphing, the approach is triangle based. So please help me in this. How to morph the images using triangle with respect to the MATLAB code.
Hoping for ur early response.