Here are the digitized input images I used. The top row is the an outdoor view. It had a stright wire pole and building edges that can be used to make sure the alignment is correct. The bottom row is an indoor view. It has a straight line at the top as well other sharp corners.
Outside Image 1 |
Outside Image 2 |
Outside Image 3 |
Inside Image 1 |
Inside Image 2 |
Inside Image 3 |
I used 10 corresponding points for each image when calculating the transofrmation between two images. Because I used 10 points, in order to avoid an overdetermined system, I solved the homography using least-squares.
Here are the results of my warping. The first image is warping from a trapezoid, or a square in different perspective, to a sqaure. The second is a slanted building into somewhat of a rectangular building.
Trapezoid |
Warped Trapezoid into Sqaure |
Slanted Building |
Warped Slanted Building into a Rectangle |
Below is the result of blending mulitple of my warped images together into one image. I used a linear blending technique and whited out the edges.
Blended Outside Image |
Blended Inside Image |
The most interesting thing that I learned was about creating and applying homography transformations uniformly to an entire image. It's very interesting how you can apply one transformation for an entire image, just to switch perspective.