I asked my friend to send me a professional headshot - because both of our photos are taken with a white background, warping and morphing was very smooth.
Original Photo (Me) |
Original Photo (Friend) |
Delaunay Triangles (Me) |
Delaunay Triangles (Friend) |
Original A |
Original B |
The "Mid-Way" Face |
This is made possible possible by adjusting the warp_frac and dissolve_frac parameters in the morph API I defined.
Morph Sequence (GIF) |
This first graph below shows the average face shape computed from the images (as a representation of the Danish population).
Average Face Shape |
01-1m |
10-1m |
12-1f |
25-1m |
My face warped into the average geometry:
The average face warped into my geometry:
Correspondences:
You can see a gradual transition as I increase the control parameter, warp_frac. dissolve_frac is hard-coded to 0.6 as it achieves the best results.
warp_frac=0.2 |
warp_frac=0.5 |
warp_frac=0.8 |
warp_frac=1.0 |
warp_frac=1.2 |
warp_frac=1.5 |
warp_frac=0.8 |
warp_frac=1.0 |
Using the same idea, I can change the gender of (the Danish version of) my face.
warp_frac=0.8 |
warp_frac=1.0 |