Affine rectification aims to transform an image such that parallel lines remain parallel, preserving the geometric structure up to an affine transformation. The process can be summarized as follows:
Input Image | Annotated parallel lines on input image | Test lines on Input Image | Affine-Rectified Image | Test lines on Affine-Rectified Image | Before Rectification | After Rectification |
---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
-0.9878, 0.9846 | -0.9998, 0.9999 |
![]() |
![]() |
![]() |
![]() |
![]() |
0.7842, 0.9999 | 0.9999, 0.9999 |
![]() |
![]() |
![]() |
![]() |
![]() |
0.9928, 0.9959 | 0.9999, 0.9996 |
Input Image | Annotated parallel lines on input image | Test lines on Input Image | Affine-Rectified Image | Test lines on Affine-Rectified Image | Before Rectification | After Rectification |
---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
0.9999, 0.9897 | 0.9999, 0.9997 |
![]() |
![]() |
![]() |
![]() |
![]() |
0.9899, 0.9911 | 0.9999, 0.9999 |
In this approach, we aim to compute the conic at infinity from an affine-rectified image by leveraging pairs of perpendicular lines. The process is outlined as follows:
Input Image | Annotated perpendicular lines on input image | Test lines on Input Image | Affine-Rectified Image | Test lines on Affine-Rectified Image | Before Rectification | After Rectification |
---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
0.1187, -0.1602 | -0.0288, 0.0162 |
![]() |
![]() |
![]() |
![]() |
![]() |
0.2527, 0.0882 | -0.0018, -0.0082 |
![]() |
![]() |
![]() |
![]() |
![]() |
-0.6686, 0.0448 | 0.0212, -0.0096 |
Input Image | Annotated parallel lines on input image | Test lines on Input Image | Affine-Rectified Image | Test lines on Affine-Rectified Image | Before Rectification | After Rectification |
---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
0.2158, 0.3655 | -0.4986, -0.4624 |
![]() |
![]() |
![]() |
![]() |
![]() |
0.1567, 0.2873 | -0.0179, 0.1096 |
In this approach, we compute a homography matrix to map one image onto another using corresponding points. The procedure is outlined below:
We start by selecting at lease 4 pairs of corresponding points between two images the source image and the reference image.
For each correspondence pair in the source image and in the reference image, two linear equations are constructed. These equations are combined into a matrix A, which relates the point correspondences to the elements of the homography matrix H.
By solving the system of equations Ah=0, where h is the flattened form of the homography matrix, we can compute H using SVD. The smallest singular value provides the solution for the homography matrix.
Once the homography matrix is computed, we warp the source image so that it aligns with the reference image
Normal Image | Perspective Image | Annotated corners in Perspective Image | Warped and Overlaid Image |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The methodology in this section is same as Q3 we just do this multiple times and overlay the composite image with a new normal image multiple times
Normal Image1 | Normal Image2 | Normal Image3 | Normal Image4 | Perspective Image | Final Warped and Overlaid Image |
---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |