Zihan Wang (zihanwa3), Fall 2024
Input image | Annotated parallel lines on input image | Affine-rectified image |
---|---|---|
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
Test lines on input image | Test lines on affine-rectified image | Metrics |
---|---|---|
![]() | ![]() |
Before: [0.9928, 0.9958] After: [0.9999, 0.9995] |
![]() | ![]() | Before: [0.9878, 0.9846] After: [0.9998, 1.0000] |
![]() | ![]() | Before: [0.8964, 0.9575] After: [1.0000, 1.0000] |
![]() | ![]() | Before: [0.9883, 0.9996] After: [1.0000, 1.0000] |
![]() | ![]() |
Before: [-0.9984,-0.9811] After: [-0.9988 -0.9873] |
We performed affine rectification by annotating two pairs of parallel lines and computing the line at infinity. The algorithm computes the transformation between the source and target images using four-point correspondences. Each pair of corresponding points generates two equations in the form and we solve the system of linear equations using Singular Value Decomposition (SVD) .Q2. Metric Rectification
Input image
Annotated perpendicular lines on input image
Annotated perpendicular lines on affine-rectified image
Rectified image
Held-out Test Lines and Metrics
Test lines on input image
Test lines on metric-rectified image
Metrics
Before: [0.1466, 0.3993]
After: [0.0000, 0.0000]
Before: [0.6686, -0.0448]
After: [-0.0000, -0.0000]
Before: [-0.2527, 0.0882]
After: [-0.0000, 0.0000]
Before: [0.2039, 0.3885]
After: [0.0000, -0.0000]
Before: [-0.0244, 0.4472]
After: [-0.0000, -0.0000]Normal image Perspective image Annotated corners in perspective image Warped and overlaid image