CS194-26 Project 5 Part A: Image Warping

Overview

The first part of the project includes taking pictures, recovering homographies between the pictures, and warping images to be front-facing.

Pictures Taken

I took a few sets of pictures inside and outside my house and of a painting on my wall.

Finding a Homography

I annotated the four corners of each image using ginput from matplotlib:

I computed the homography matrix between the two sets of points and obtained:

After trying to warp one to look like the other the result was decent:

Image Rectification

After manually defining a rectangle with the proper dimensions, I used the resulting homography matrix to rectify both of the images: