Louis Leung

Shooting and Digitizing Photos

Here are the pictures we'll be using for rectification/mosaicing. All shot with the same center of projection but rotating the axis slightly.

Deck 1
Deck 2
Louis' Room 1
Louis' Room 2
Miranda's Room 1
Miranda's Room 2

Computing Homographies

We compute homographies by selecting pairs of points (at least 4 pairs) between the two images and solving for Ah=b where h is a vector holding the 8 unknown entries of H. If we pick more than 4 points, we use least squares to find the best homography for the points.

Warping Images

I used inverse warping to get a final image from a warped source image, and just used integer coordinates instead of interp2d to avoid aliasing.

Soda
Soda Rectified
Louis' Room
Louis' Room Rectified

Mosaics

Here we use the previous parts to blend images into a mosaic! I tried both not blending at all (simple binary mask) and alpha blending using a gaussian mask on the binary mask. Looks like not blending at all sometimes works better.

Deck 1
Deck 2
Deck with no blending
Deck with alpha blending
Louis' Room 1
Louis' Room 2
Louis' Room with no blending
Louis' Room with alpha blending
Miranda's Room 1
Miranda's Room 2
Miranda's Room with no blending
Miranda's Room with alpha blending