Following the formula in the lecture slide, I created a "computeHomography" function that takes in 2 sets of coordinates, and returns a matrix H that when multiplied by coordinates, warps them into the specified shape.
Using code that was similar to project 3 (face warping), I took the points within the polygon of the object I wanted to straighten out (in this case, a Stevie Wonders album), and multiplied them by the H matrix. I used normalized, and used these points to index into the original image, with new output coordinates. Here are my results.