CS 180 Fall 2024

Project 4 by Lawrence Shieh

Part 1. Shooting Pictures

Using my phone camera, I have taken some pictures on campus and at my appartnment to be used in this project.

Image 1 for Part 1.1
Image To Rectify 1
Image 2 for Part 1.1
Image To Rectify 2
Image 3 for Part 1.1
Blend Pair 1-1
Image 3 for Part 1.1
Blend Pair 1-2
Image 2 for Part 1.1
Blend Pair 2-1
Image 2 for Part 1.1
Blend Pair 2-2
Image 2 for Part 1.1
Blend Pair 2-1
Image 2 for Part 1.1
Blend Pair 2-2

Part 2. Recover Homographies"

The goal here is to find the homography matrix H. Since there are 8 unkown entries in the matrix, we need at least 4 corresponding pairs of points to find the matrix. Note that the scale factor "i" here can be set to 1 so in reality there is only 8 unkonwns shown in the follwing matrix. Also note that we are using OSL if we provide more than 4 points.

Image 1 for Part 1.1
p' = Hp from lecture slide
Image 1 for Part 1.1
OSL from lecture slide
Image 1 for Part 1.1
Warped Image 1-1 To 1-2

Part 3. Rectify Images

1. Take picture of image that contains a rectangle somewhere.
2. Define the coordinates on the 4 corner of the rectangle.
3. Self define a set of corresponding coordinates to those 4 corners.
4. Use part 2 to find the homography matrix H.
5. Apply the homography matrix to the original image we took.
For image 1 I target the green looking rectangle above the light switch. For image 2 I target the poster itself.

Image 1 for Part 1.1
Image 1 Original
Image 1 for Part 1.1
Image 1 Rectified
Image 1 for Part 1.1
Image 2 Original
Image 1 for Part 1.1
Image 2 Rectified

Part 4. Belnd Images

1. Define corresponding points to two images.
2. Warp one of the images onto the other like part 3.
3. Using the given offsets (if not already shown in the output) to align image.
4. Blend them together using concepts from project 2.

Image 1 for Part 1.1
Original 1-1
Image 1 for Part 1.1
Original 1-2
Image 1 for Part 1.1
Final
Image 1 for Part 1.1
Original 2-1
Image 1 for Part 1.1
Original 2-2
Image 1 for Part 1.1
Final
Image 1 for Part 1.1
Original 3-1
Image 1 for Part 1.1
Original 3-2
Image 1 for Part 1.1
Final