Panorama Stitching

CS194-26 Proj #5 : Stitching Photo Mosaics, Ken Guan

 

Background

In project 5, we will implement an algorithm to stitch-up continuous images. As the first part, we try to warp photos taken at different angles on to the same plane.

 

Shoot the Pictures

For this assignment, I picked the boardgame corner of my living room, which has lots of distinct sharp corners that are great for marking pairs. I labeled the images with 16 corresponding points. Here are the labeled images:

 

Recover Homographies

I labeled the images with 16 corresponding points. Here are the labeled images:

I then recovered the least-square homography from image 2 and 3 to image 1.

 

Warp the Images

I warped image 2 and 3 to image 1 using inverse warping. I have not done the work to define a good target boundary so a lot of the warped images are cropped at the moment. However we can see that both source images are warped into the target image's shape.

Left: target image; middle & right: warped image 2, 3

 

Image Rectification

I tested the warp function by rectifying the blue poker case into a fat square at the top left corner. Here is what I got:

Again, the cropping isn't perfect, but the poker case is indeed in the desired shape.