Docsity

Practice Problems for Exam 1 - Computer Vision | CS 482, Exams of Computer Science

Toggle sidebar
bg1
CS 482 Exam: Computer Vision (due Tuesday April 12, 6pm)
HONOR SYSTEM: This examination is strictly individual. You are not allowed to talk, discuss,
exchange solutions, etc., with other fellow students. Furthermore, you are only allowed to use the book
and your class notes. If you use other materials please you should make a note of it. You may only ask
questions to the class instructor. Any violation of the honor system, or any of the ethic regulations, will
be immediately reported according to George Mason University honor court.
1. (10) You are given a simple 10 ×10 image that has eleven distinct gray levels i= 25k, k = 0, . . . , 10.
Their relative frequencies are h(0) = 1
100 , h(25) = 5
100 , h(50) = 10
100 , h(75) = 5
100 , h(100) = h(125) =
2
100 , h(150) = 5
100 , h(175) = 10
100 , h(200) = 30
100 , h(225) = 25
100 , h(250) = 5
100 . Describe and use the
peak and valley method to choose a threshold for this image.
2. (10) Another important parameter of the imaging system is the field of view (FOV). Field of view
is twice the angle between the optical axis (z-axis) and the end of the retinal plane (CCD array).
Imagine that you have a camera system with focal length 16mm, and retinal plane (CCD array)
is (16mm ×12mm) and that you digitizer samples your imaging surface 500 ×500 pixels in each
direction.
a) Compute the FOV.
b) Write down the relationship between the image coordinate and a point in 3D world expressed
in the camera coordinate system.
d) Describe how is the size of FOV related to the focal length and how it affects the resolution
in the image.
1
pf3
pf4
pf5

Partial preview of the text

Download Practice Problems for Exam 1 - Computer Vision | CS 482 and more Exams Computer Science in PDF only on Docsity!

CS 482 Exam: Computer Vision (due Tuesday April 12, 6pm)

HONOR SYSTEM: This examination is strictly individual. You are not allowed to talk, discuss, exchange solutions, etc., with other fellow students. Furthermore, you are only allowed to use the book and your class notes. If you use other materials please you should make a note of it. You may only ask questions to the class instructor. Any violation of the honor system, or any of the ethic regulations, will be immediately reported according to George Mason University honor court.

  1. (10) You are given a simple 10 × 10 image that has eleven distinct gray levels i = 25k, k = 0,... , 10. Their relative frequencies are h(0) = 1001 , h(25) = 1005 , h(50) = 10010 , h(75) = 1005 , h(100) = h(125) = 2 100 , h(150) =^

5 100 , h(175) =^

10 100 , h(200) =^

30 100 , h(225) =^

25 100 , h(250) =^

5 100.^ Describe and use the peak and valley method to choose a threshold for this image.

  1. (10) Another important parameter of the imaging system is the field of view (FOV). Field of view is twice the angle between the optical axis (z-axis) and the end of the retinal plane (CCD array). Imagine that you have a camera system with focal length 16mm, and retinal plane (CCD array) is (16mm × 12 mm) and that you digitizer samples your imaging surface 500 × 500 pixels in each direction.

a) Compute the FOV. b) Write down the relationship between the image coordinate and a point in 3D world expressed in the camera coordinate system. d) Describe how is the size of FOV related to the focal length and how it affects the resolution in the image.

  1. (a) (20) Show the resulting image obtained after convolution of the original with the following approximation of the derivative filter [− 1 , 0 , 1] in the horizontal direction.

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (b) Compute gradient magnitude of the above image at all points. (c) Compute gradient direction at all points. (d) Show the image after applying non-maximum suppression step on the gradient magnitude image.

  1. (15) A pair of cameras with parallel optical axis are observing a square in front of a flat wall. How would you design a random dot stereogram of the scene if the camera and the scene have following parameters:: focal lengths of the cameras are f = 20mm (256 pixels), the baseline b = 0. 1 m, the distance of the wall from the camera is z 0 = 1m, and the distance of the surface of the square from the camera is z 1 = 0. 9 m. Choose the position and the size of the square to fill the central portion of the image. What are the disparities of the points on the square? What are the disparities of the points on the wall?
  1. (20) You are given the following binary image. Assume that the coordinate system x-axis is pointing right and y-axis is pointing up, with the origin in the left bottom corner.

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Compute following parameters:

  • area
  • perimeter
  • center of mass
  • second order moments M 11 , M 20 , M 02
  • central moments μ 11 , μ 12 , μ 02