Angles Evaluated on 2 pairs of test lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
-0.9878 | -0.99977 |
0.98459 | 0.99999 |
Test Lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
0.98683 | 0.99992 |
0.998719 | 0.999938 |
Test Lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
0.784232 | 0.999997 |
0.999978 | 0.999986 |
Test Lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
0.992918 | 0.99999 |
0.99448 | 0.9883 |
Test Lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
0.9983140 | 0.99975 |
0.99920 | 0.999995 |
Test Lines before and after affine rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Affine rectification is a process used to remove projective distortion from an image, preserving parallelism but not necessarily angles or distances. This is how I affine rectified the images given:
Input Image | Annotated perpendicular lines on input image | Annotated perpendicular lines on affine Rectified Image |
Rectified Image |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
-0.66858 | 0.02118 |
0.044795 | 0.0096 |
Test Lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Input Image | Annotated perpendicular lines on input image | Annotated perpendicular lines on affine Rectified Image |
Rectified Image |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
-0.167718 | 0.0080 |
-0.03498 | 0.0293 |
Test Lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Input Image | Annotated perpendicular lines on input image | Annotated perpendicular lines on affine Rectified Image |
Rectified Image |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
0.1918709 | -0.04607 |
-0.106548 | 0.0107468 |
Test Lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Input Image | Annotated perpendicular lines on input image | Annotated perpendicular lines on affine Rectified Image |
Rectified Image |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
-0.200391 | -0.00635 |
0.0861193 | 0.03268 |
Test Lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Input Image | Annotated perpendicular lines on input image | Annotated perpendicular lines on affine Rectified Image |
Rectified Image |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Angles Evaluated on 2 pairs of test lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
0.258323 | 0.04449 |
0.582444 | 0.10568 |
Test Lines before and after metric rectification:
Before Rectification | After Rectification |
---|---|
![]() |
![]() |
Metric rectification is the process of removing affine distortions from an already affine-rectified image to restore metric properties such as angles and length ratios. This is the process I followed to metric rectify the affine rectified image:
Given 4 2D to 2D point correspondences we can find an homography relating the 2 images. The equation can be expressed as a cross product:
This part is very similar to Q3 implementation. Instead of doing it for one normal-image to one perspective image we do the same process for 4 normal-images and 1 perspective-image.