Starting from:

$24.99

ECE4513 Assignment #1 Solution

Part I Written Exercises
Problem 1 (7 points)

Problem 2 (7 points)

Problem 3 (7 points)

Problem 4 (7 points)

Problem 5 (7 points)


Problem 6 (7 points)

Problem 7 (7 points)


𝑥 𝑦
𝑢 = 𝛼 𝑧 − 𝛼 cot 𝜃 𝑧 + 𝑢0
{ 𝛽 𝑦 (2.12)
𝑣 = sin𝜃 𝑧 + 𝑣0

Problem 9 (7 points)

Problem 10 (7 points)

Part II Programming Exercises
Problem 1 Single-View Metrology (30 points)
Please use “CIMG6476.JPG” and “kyoto_street.JPG” as the inputs. You can only use the following Python libraries: OpenCV, NumPy, math, matplotlib, and SciPy.

(a) For the Kyoto Street image, shown above, estimate the positions (in the image plane) of the three major orthogonal vanishing points (VPs), corresponding to the building orientations. Use at least three manually selected lines to solve for each vanishing point. The included code getVanishingPoint.py provides an interface for selecting and drawing the lines, but the code for computing the vanishing point needs to be inserted.
• Plot the VPs and the lines used to estimate them on the image plane. (1 pts)
• Specify the VPs (u, v). (1 pts)
• Plot the ground horizon line and specify its parameters in the form au + bv + c = 0. Normalize the parameters so that: a2 + b2 = 1. (3 pts)
(b) Use the fact that the vanishing points are in orthogonal directions to estimate the camera focal length (f) and optical center (u0, v0). Show all work. (5 pts)
(c) Show how to compute the camera’s rotation matrix when provided with vanishing points in the X, Y, and Z directions. (5 pts)
Now, compute the rotation matrix for this image, setting the vertical vanishing point as the Y- direction, the right-most vanishing point as the X-direction, and the left-most vanishing point as the Z-direction. (5 pts)

• Turn in an illustration that shows the horizon line, and the lines and measurements used to estimate the heights of the building, tractor, and camera. (5 pts)
• Report the estimated heights of the building, tractor, and camera. (5 pts)

More products