A Homography matrix is a 3x3 matrix with 8 degree of freedom. To solve this matrix, we need at least 4 pairs of corresponding points. If we have an overestimated linear system that has more than 8 equations, we can use Least Squares to solve this problem.
deliminate and combine other point pairs we can derive: , where h contains the 8 variables in homography matrix. Solving this least square problem we will have H, which is the homography matrix.
original image | rectified image |
image1 | image2 |
Blended image |