CS 194-26 Project 6 (Part A): Image Warping and Mosaicing

Author: Kevin Ji

Recover Homographies

Using a series of photos that are [homographically similar], we compute the homography transformation matrix via the process listed here. This matrix is computed for each pair of overlapping images, after manually specifying point correspondences via plt.ginput.

Image Rectification

A simple application of the homography-generating function is to rectify an image. In other words, we provide a set of point correspondences from an image to a set of points in a rectangle, and then warp the rest of the image via the same transformation matrix.

Below are some examples of images and their rectified versions.

Hyperbole and a Half

Asha Tea House

Image Mosaics

Of course, the real purpose of generating these homographic matrices is to merge multiple images together into one nice image mosaic. To do so, we incrementally merge each successive photo with the current in-progress photo, starting with the first two photos. We use the Euclidean distance from the center of the photo as an alpha value at each pixel, and then merge pairs of photos via Porter and Duff's alpha-blending equations.

Below are a few examples of the original images and the linearly-blended image mosaic.

Moe's Books

Sather Gate

Doe Library