computer graphics- Morphing
Budget: $10 – $20 USD
In this assignment, you will apply the concept of image warping to images of faces. You will complete two tasks:
Create an animation of a morph between two faces
Compute the mean of a population of faces
A morph is a simultaneous warp of the image shape and a cross-dissolve of the image colors. The warp is controlled by defining a correspondence between the two pictures. These correspondences should map image regions of similar content (e.g., eyes to eyes, mouth to mouth, chin to chin, ears to ears).
In the first task, use a photo of a person's face as Picture A (i.e., source) and a photo of another person's face as Picture B (i.e., target). You'll morph still picture A into still picture B and produce (for example) 45 frames of animation numbered 0-45, where frame 0 must be identical to picture A and frame 45 must be identical to picture B (hint: use the convex-combination equation). Convert the sequence of frames to an animated gif. Set the frame rate of the video for better visualization. For example, each frame can be displayed for 1/30 of a second.
In the second task, you will synthesize the average face of a subset of a population from the face dataset (e.g., the average male, the average female). You choose the population.
Create an animation of a morph between two faces
Compute the mean of a population of faces
A morph is a simultaneous warp of the image shape and a cross-dissolve of the image colors. The warp is controlled by defining a correspondence between the two pictures. These correspondences should map image regions of similar content (e.g., eyes to eyes, mouth to mouth, chin to chin, ears to ears).
In the first task, use a photo of a person's face as Picture A (i.e., source) and a photo of another person's face as Picture B (i.e., target). You'll morph still picture A into still picture B and produce (for example) 45 frames of animation numbered 0-45, where frame 0 must be identical to picture A and frame 45 must be identical to picture B (hint: use the convex-combination equation). Convert the sequence of frames to an animated gif. Set the frame rate of the video for better visualization. For example, each frame can be displayed for 1/30 of a second.
In the second task, you will synthesize the average face of a subset of a population from the face dataset (e.g., the average male, the average female). You choose the population.