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:
The next set is a scene from inside Slivers:
My third set is a different set of images from a slightly different vantage point on Telegraph (but the same corner):
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:
For set 2:
For set 3:
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:
Warped for Slivers Right Image:
Warped for Telegraph set 2:
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:
For set 2:
For set 3: