CS 194-26 Project 5A: IMAGE WARPING and MOSAICING

Xidong Wu

Overview

In this project, I use several images I took and blend them into a mosaic.

Part 1: Shoot the Pictures

The images I took is a house. The digital camera is SONY 7RII with (1/250, F5.6, ISO 200)

Left Image

Right Image

Part 2: Recover Homographies

In this part, the function computeH is implemented to calculate 3x3 homography matrix. The formulation from CSE485 course notes at PSU [1] is referenced, which is an alternate representation of the equation p’=Hp. After matrix (seen below ) is constructed, the least squre function w = (A' * A) \ (A' * b);


Part 3: Image Rectification

The left image is rectified. We assume the roof is horizontal and so choose the points on the roof as the basis. In addition, we assume the window is rectangel and the its edge is vertical or horizontal.

Left Image

Left Image Rectification

Another image is rectified. I choose the four vertex on the magazines as the basis.

original image (Crop)

Image Rectification

Part 4: Blend the images into a mosaic

three-layer Laplacian pyramid is used.

Left Image

Right Image

Left Image

Part 5: What I learn

This project makes me have a better understanding of homography transformation an its applications. Most importantly, I use many technologies covered in the previous project. It is very comprehensive.

References

[1] http://www.cse.psu.edu/~rtc12/CSE486/lecture16_6pp.pdf