HW1: Projective Geometry and Homography

Q1: Affine Rectification (30 points)

Brief Description:

The 5 images for each sample are: Input Image, Annotated parallel lines on input image, Affine-Rectified Image, Test lines on Input Image, and Test lines on Affine-Rectified Image.

Input 1: checker1.jpg

Before After
-0.8909 -0.9999
-0.9957 -0.9999

Input 2: facade.jpg

Before After
0.9999 0.9999
0.9839 0.9999

Input 3: tiles5.JPG

Before After
-0.9993 -0.9999
-0.9999 -0.9999

My Input 1: my1.jpg

Before After
0.7316 0.9999
0.9999 0.9999

My Input 2: my2.jpg

Before After
0.7316 0.9999
0.9957 0.9999

Q2: Metric Rectification (40 points)

Brief Description:

The 6 images for each sample are: Input Image, Annotated perpendicular lines on input image, Annotated perpendicular lines on Affine-Rectified Image, Rectified Image, Test lines on Input Image, and Test lines on Metric-Rectified Image.

Input 1: checker1.jpg

Before After
-0.4659 0.0562
0.3771 -0.1104

Input 2: chess1.jpg

Before After
0.6737 -0.0428
-0.3866 0.1335

Input 3: tiles3.jpg

Before After
-0.1241 -0.1170
-0.3742 0.0381

My Input 1: my3.jpg

Before After
-0.3263 0.1006
-0.4412 0.3619

My Input 2: my4.jpg

Before After
-0.2845 0.2681
0.6127 -0.1931

Q3: Planar Homography from Point Correspondences (30 points)

Brief Description:

The 4 images for each sample are: Normal Image, Perspective Image, Annotated corners in Perspective Image, and Warped and Overlaid Image.

Input: desk

My Input: pathfinder

Q4: Bonus: Metric Rectification from Perpendicular Lines (10 points)

Brief Description:

The 3 images for each sample are: Input Image, Annotated perpendicular lines, and Rectified Image.

Input: checker1.jpg

My Input: my3.jpg

Q5: Bonus: More Planar Homography from Point Correspondences (10 points)

Brief Description:

The 5 images are: Normal Image 1, Normal Image 2, Normal Image 3, Perspective Image, and Output Image.

Usage Instructions

You can run each question's code using the following commands: