CS194-26 Project 5 - Eric Leong
Overview
In this project, I learned how to compute the homography matrix to apply projective transforms to images and produce cool images.
Part 1: Image Warping and Mosaicing
Shooting Pictures
Here are some of the pictures I've taken so far. I've struggled a lot with finding interesting images since I have not gone outside in ages.
Recover Homographies
Once I computed the least squares solution to the above linear system of equations, I reshaped the vector back into a matrix H.
Warping and Image Rectification
Now that we've computed the homography matrix, we can use it to transform and warp images to one another. I utilize the inverse of the homography matrix to perform inverse warping, which constructs the transformed image using pixels of the original image.
Image rectification involves finding points in the original image around some object, finding the homography matrix that warps the points into a parallel shape, like a rectangle, and using the inverse homography matrix to transform the original image so that the object appears frontal parallel.