Project 4a

Homographies

I recovered homographies by using least squares, with the algorithm shown in the lecture slides.

Rectify

To rectify, I selected the four points for the morphed rectangle in the image, and used the same morphing algorithm to morph the image to a manually coded rectangle in the middle of the image.

Unmorphed laptop image Morphed laptop Unmorphed building Rectified building
cathedral monastery cathedral monastery

Mosaics

To stitch together mosaics, I created an array of images taken from the left-most pan to the right-most pan. Starting from the last image, I morphed the image to align with the previous image, then this combined image to match the image before it, etc. I stitched all of the images together using gaussian blending (the method in project 3, with a blurred mask).

Panorama 1, img 1 Panorama 1, img 2 Panorama 1, img 3
cathedral monastery cathedral
Stitched panorama 1
cathedral
Panorama 2, img 1 Panorama 2, img 2 Panorama 2, img 3
cathedral monastery cathedral
Stitched panorama 2
cathedral
Panorama 3, img 1 Panorama 3, img 2 Panorama 3, img 3
cathedral monastery cathedral
Stitched panorama 3
cathedral