CS194-26 Project 3: Face Morphing

Overview:
Today, we will create an mosiac of connected images shot at different angles, using a warping and blending to keep the original feel and angle of the image.
The first image set is a scene from Telegraph avenue:
Italian Trulli Italian Trulli
The next set is a scene from inside Slivers:
Italian Trulli Italian Trulli
My third set is a different set of images from a slightly different vantage point on Telegraph (but the same corner):
Italian Trulli Italian Trulli
You can see the black dots, which were used as the rectification points for the aligning the images.

Homographies:
Next we create the homographies matrix for each image
For set 1:
Italian Trulli
For set 2:
Italian Trulli
For set 3:
Italian Trulli

Warped image with rectification
First, we multiplying the second image by the first's H matrix. Then create the bounding box by multiplying the dimensions of the image by H. Then, we multiply the second image with the inverse of H and change the indeces to make the warped image.
Warped for Telegraph 1:
Italian Trulli
Warped for Slivers Right Image:
Italian Trulli
Warped for Telegraph set 2:
Italian Trulli

Rectifying the image
We use the sets of 8 points (2 rectangles) that we demonstrated above for our rectification

Mosiac
Finally, our warped mosiac by adding the two images together at the appropriate rectified location, then alpha blending taken to the first power:
For set 1:
Italian Trulli
For set 2:
Italian Trulli
For set 3:
Italian Trulli