5
CS 6320 Computer Vision Practice Questions Spring 2018 Name: UID: Each question carries 20 points. Show the necessary steps to compute the final solutions. You are free to use extra papers. 1. Pose Estimation: Let us consider a calibrated camera. Let the origin of the camera be given by O(0, 0, 0). The image resolution is 640 480 and the principal point is given by (320, 240). We assume the following parameters for the camera: u v 1 200 0 320 0 0 200 240 0 0 0 1 0 I 0 0 T 1 0 @ X m Y m Z m 1 1 A where (u, v) correspond to pixel coordinates and I denotes the 3 3 identity matrix. K -1 = 1 200 0 @ 1 0 -320 0 1 -240 0 0 200 1 A The projections of two 3D points A and B on the image are given by a(120, 240) and b(320, 240), respectively. Find the coordinates of the two 3D points A(X 1 ,Y 1 ,Z 1 ) and B(X 2 ,Y 2 ,Z 2 ) that satisfy the 2 conditions: (1) the length of the line segment OA is given by |OA| = 200, and (2) the line segments OA and AB are perpendicular to each other. [20 points] 1 ZD 317 In = . #F¥± - = AIkyuyfako.lt:5?wkYp=ahB=xailM=Iz#I3EWEYp=xwEEeo=*Iteho=x.=ioo& ( gook )( Hook ) + a- i. or )(×[ 100k¥ ¥ 4*5*1*2 *

CS 6320 Computer Vision Practice Questionscs6320/cv_files/PracticeQuestionsAnswers.pdf · 4. Belief Propagation: You have 2 Boolean variables (x1,x2 2 {0,1}) and 3 equations as shown

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CS 6320 Computer Vision Practice Questionscs6320/cv_files/PracticeQuestionsAnswers.pdf · 4. Belief Propagation: You have 2 Boolean variables (x1,x2 2 {0,1}) and 3 equations as shown

CS 6320 Computer Vision Practice Questions

Spring 2018Name:UID:

Each question carries 20 points. Show the necessary steps to compute the final solutions. You are

free to use extra papers.

1. Pose Estimation: Let us consider a calibrated camera. Let the origin of the camera be

given by O(0, 0, 0). The image resolution is 640 ⇥ 480 and the principal point is given by

(320, 240). We assume the following parameters for the camera:

✓uv1

◆⇠

✓200 0 320 00 200 240 00 0 1 0

◆⇣I 0

0T 1

⌘0

@Xm

Y m

Zm

1

1

A

where (u, v) correspond to pixel coordinates and I denotes the 3⇥ 3 identity matrix.

K�1 =1

200

0

@1 0 �3200 1 �2400 0 200

1

A

The projections of two 3D points A and B on the image are given by a(120, 240) and

b(320, 240), respectively. Find the coordinates of the two 3D points A(X1, Y1, Z1) and

B(X2, Y2, Z2) that satisfy the 2 conditions: (1) the length of the line segment OA is given

by |OA| = 200, and (2) the line segments OA and AB are perpendicular to each other. [20

points]

1

ZD317

⇐In = .

#F¥±

- =

AIkyuyfako.lt:5?wkYp=ahB=xailM=Iz#I3EWEYp=xwEEeo=*Iteho=x.=ioo&0¥⇒ ( gook)( Hook) + a-i. or)(×[

100k¥¥

4*5*1*2• *

Page 2: CS 6320 Computer Vision Practice Questionscs6320/cv_files/PracticeQuestionsAnswers.pdf · 4. Belief Propagation: You have 2 Boolean variables (x1,x2 2 {0,1}) and 3 equations as shown

2. Model fitting: In Figure 1, you are given a set of 6 2D points (A,B,C,D,E, F ). We can

obtain a line equation by choosing 2 points at a time. Given two 2D points (x1, y1) and (x2, y2),

we can obtain the line equation using the expression (y � y1)(x1 � x2) = (x � x1)(y1 � y2).

The distance of a point (x0, y0) from a line ax + by + c = 0 is given by|ax0+by0+c|p

a2+b2. Let the

threshold in selecting the inliers for a given line equation is given by 0.6.

• (a) Find a pair of points that gives the line equation with the maximum number of

inliers. Show the line equations and inliers.

• (b) Find a point pair that gives the line equation with the minimum number of inliers.

Show the line equations and inliers.

[20 points]

Figure 1:

2

-1

Best line → AD [ y=o] Inliers A. B,

E,D

. -

Worst line → BE [x=4 ] Inliers BE.

-

Page 3: CS 6320 Computer Vision Practice Questionscs6320/cv_files/PracticeQuestionsAnswers.pdf · 4. Belief Propagation: You have 2 Boolean variables (x1,x2 2 {0,1}) and 3 equations as shown

3. Vocabulary tree: We are given three images I1, I2 and I3. Each of these images have two

2D descriptors as given below.

I1 : {(1.5, 0.5), (�1.5,�1.5)}, I2 : {(1.5, 1.5), (1.5,�1.5)}, I3 : {(1.5, 0.5), (1.5,�0.5)}

In Figure 2, we show a vocabulary tree with branch factor 4. Using this vocabulary tree find

the best image match among the 3 possible pairs {(I1, I2), (I1, I3), (I2, I3)}. Assume that the

nodes in the tree has the same weight wi = 1. Show the normalized di↵erence in each of the

three pairs. [20 points]

Figure 2:

3

- - - -

÷al- foot.

cnn.at?IYngdCI7:{z;°;o oLoo °o° o ° ° i o o o o 03

d ( ID = {21

1 o o 1 o o o ° 1 o o ° °o°° ° ° ° }

d ( I } ={2,

1 l oo° 1 o ° 1 o o o o °o° 0 ° ° ° }

# of descriptors in each image =L

#dist ( I

, ,E) = /

DIE-

dG¥) = 6z =3

dist C 7,5 ) = / day - dC÷)/= 12=2dist ( E. 3) = / dE±7 - dc5÷| = 42=2

Page 4: CS 6320 Computer Vision Practice Questionscs6320/cv_files/PracticeQuestionsAnswers.pdf · 4. Belief Propagation: You have 2 Boolean variables (x1,x2 2 {0,1}) and 3 equations as shown

4. Belief Propagation: You have 2 Boolean variables (x1, x2 2 {0, 1}) and 3 equations as

shown below:

x1 + 4x2 = 5

�x1 + 2x2 = 1

�3x1 + 2x2 = �1.2

Show the factor graph and use Belief propagation to solve the equations. Please show the

messages in each iteration till the algorithm terminates. [20 points]

4

En.*¥.

=÷I±E#"

T.ae" '

Emoto=be c

Step :All zero Msgs from

vatofactfs.si#: ma→,= ( to) Mae (b) mt→F('o)mt→=(;) me , ,=( ⇒ Mae ( 5} )

steps : 6,

= (3ps )be 2= ( b?z)

Stepl :x. ← ,

,nil

steps :m.IO?z)mz*=(2oI)mhE( E)

Mz→b= ( II ) mi→c=( } ) mz→c=( I)

Step : ma→ ,= ( to} ) ma→z=( to} ) mhi = ( to} )

mb . > z'

- ( zj;) mai=( 3¥ mc→E( If )Ste '

:b, :( se ) h=( 831

Step : n,←,z=TerminI

222

Page 5: CS 6320 Computer Vision Practice Questionscs6320/cv_files/PracticeQuestionsAnswers.pdf · 4. Belief Propagation: You have 2 Boolean variables (x1,x2 2 {0,1}) and 3 equations as shown