please view on half screen for best visuals
short summary of what this was all about :)
In this project, we utilized a homography (perspective) transformation to rectify images
and produce warped versions for later image stitching. Points were manually selected and
sources for images that are not my own are linked below.
Museum
Time Magazine: Museum
A common task is to align images to a standard frame. In this part of the project, we selected images with portraying objects with rectangular frames and transformed them into a front view rectangle.
Here are some outcomes of rectification!
Here we see a kiwibot. We chose the four points of the kiwibot label and made them correspond to the four points of the image. Now we can see a rectivied version, though grainy.
We then looked at the art pieces in a museum and it was able to make a distorted painting look the right proportions.
I used to like perspective art a lot, guess it's been put to good use.
This result was pretty interesting because it was able to change the view of a building. There were some parts of the image that were missing due to output image size constraints. In the next part (stitching and auto-stitching), there would be methods to account for empty locations and entire image transformations.
More self art promo :').
Here we extend the applications of rectification and utilize image stitching to warp between images. Using a tripod and rotating the camera, we took 3 photos from the same place. Correspondence points of between 16-30 is satisfactory for producing results. First we performed warping between the left and the middle, and then the middle and the right. After adjusting dimensions, we then warped the two halves together. We used a gaussian mask and alpha blended the images.
Warping the Left and the Middle, the the Middle and the Right
Finally, warping the two halves together
As you can see, there are some ghosting effects, especially in the middle of the image. Some places are also shifted higher than others. This may be due to greater need in correspondence points or unintended shifts while taking the images.
Another one!
It took me quite a while to debug my homography calculation, but through it, I recognized the importance of having w and having consistent ordering of correspondence points. Overall, this was pretty fun and I was glad I could go outside to try to take good photos (though not successful).