Took three pictures of my living room to try to turn into a mosaic!
Using the above formula and least squares, I was able to get the values for a through h to use as values for H in the next part
Using the equation p' = Hp I solved for p by applying the inverse homography matrix on the set of all coordinates, then normalizing all the x,y coordinates to 1 by dividing by w to get the rectified images.
Left, center and right image respectively!
Rectified Images:
For this part, I took the three images and stitched them together to produce a mosaic. For some reason, the mosaic looks disoriented because I messed up one of the functions.
I found the corner features using harris corners for the two city images provided by Shivam!
Using ANMS I was able to get these:
Here's the homography I found after using RANSAC
I had a great time working on this project and it was pretty cool to see how mosaics are created