CS 194-26 Project 5: Stitching Photo Mosaics

Part 1: Image Warping and Mosiacing

Homography and Rectification

I computed the homography matrix H using the formula p' = H p for corresponding points p and p' in each of the images. Because H has 8 degrees of freedom, we only need 4 corresponding (x, y) pixel points to solve, but the homography result is better if we choose more correspondences and use least square to solve. Rectification is done by warping the image using the homography matrix to transform onto coordinates of a known rectangle.

Left photo rectified