In this project, I learned how to compute a homography matrix, warp an image into the perspective of another image, and blend two images taken from different perspectives into a single mosaic. A homography transformation allows us to convert a point in one perspective to a point in another perspective, and by using the inverse of this homography matrix, we can warp an image into another perspective. One of the applications of this is to rectify images, which is essentially to change the perspective such that an object in an image becomes rectilinear. By warping one image to another's perspective, we can blend these images to create a mosaic.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The coolest thing I learned in this project was the RANSAC algorithm - it's so simple, yet provides a lot of robustness against outliers, which is something that is applicable to areas outside of computational photography. It helped eliminate bad correspondence points generated during my auto-stitching.