Building hybrid images and learning about filters
The first correspondence I wanted to build with a picture of Hugh jackman and Wolverine. They have never been seen in a room together and I think they look quite similar.
I used the project point correspondences tool given in the spec and used the Delauney mentioned in the lecture.
For the dissolve fraction and the morph fraction I experimented with several time equations, i ended up settling for the following quadratic:
time = t/frames
frac = s*time**2 + (1 - s)*time
With dissolve and warp s = 0.6, -0.2 respectively. (chosen experimentally)
To compute the midway face I created a function that finds the weighted average of the shape (based on the warp fraction), then applies the same triangulation to the new shape. Finally for each triangle T_m in the mid-way face I solved for the transformation matrix A s.t. A*T_m = T_i. Using this approach to solve for the midway face requires interpolation; I tried a handful of interpolation functions, including bilinear as was suggested, but ended up using nearest neighbor because it’s the fastest and has good quality. Finally to compute the mid-way face we simply cross dissolve the colors between the both mid-way transformation:
average face shape of the whole population:
Examples of morphing each of the faces in the dataset into the average shape:
I produced caricatures of my face by extrapolating from the population mean using: my_face_correspondance_vector + alpha(average_face_shape - my_face_correspondance_vector)
With the same dataset I computed the PCA Here are the top 5 eigenfaces. Very spooky
The top 5 faces capture a lot of information so they look like reasonable faces unlike the smaller eigenfaces which degenerate. I also tried my hand at projecting faces onto the eigenfaces (to get the weight) and then recovering them. The following are examples with the top 20 eigenfaces. Even with few eigenfaces a lot of essential information is recovered.
Change gender/ethnicity of my friend's face. Using this image https://pmsol3.wordpress.com/2009/10/10/world-of-facial-averages-east-southeast-asia-pacific-islander/
First just the shape:
Just the apperance:
Both
Moprphing with Janhvi Kapoor also worked quite well:
https://youtube.com/shorts/FU-OLUDE05s?si=19tKs5OtATjvTVrH
This website contains transitions not captured by the pdf, spesificaly, the title image changes into a high gamma verison and then into the black and white threshold filter version.