Project 5: Part A Stitching Photo Mosaics

Shoot the Pictures:

I took some some pictures. For the first one I used a chess board as arefrnce because it's planar. For the second part I took three stationary pictures with different angles

Recover Homographies:

First nedd to recover the homography transformation matrix. This way we are able to find how to move the pixles. By using p' = Hp and 4 control points in each image, we can solve for the matrix H.
We can simply want to buid the matrix below. Then we can solve it using least squared:

Warp the Images (Rectifying)

I applied to the homographic transformations on first three pictures, but since I didnt have second reference points I used the for corners or just estimated where they should form a rectangle

Blend the images into a mosaic

Blending was trickier than i thought. Although the result is not too bad but the edge where the images were connected together is visible. I think using a mask would produce better results.

What I learned?

After doing the project things that looked IMPOSIBLE are easy to do. I think there are alot of application that can be implemented using Homography. Taking linear algebra classes paid off :).