Docsity

Computer and Vision I - Assignment I | CAP 5416, Assignments of Computer Science

Toggle sidebar
bg1
CAP5416: Assignment #1, Due Date: 9/17/08
Make sure that your writing is legible, or else, please type your answers using
your favorite text formatter. I prefer the latter. Your solutions are due at the
beginning of the class on the due date and no later. I will not accept any late
assignments.
1. Prove that length (distance between points) and angle between two lines
are invariants of a rigid motion given by the following matrix:
cosθ −sinθ tx
sinθ cos θ ty
0 0 1
where, = 1. Explain, what is the type of transformation that results
from choosing =−1, are length and angles invariants of this type of
transformation as well? Show your arguments analytically.
2. Given 4 collinear points xi;i= 1,2,3,4, we define cross ratio as
Cross(x1,x2,x3,x4) = kx1x2kkx3x4k
kx1x3kkx2x4k
where,
kxixjk=det xi1xj1
xi2xj2
where, det is the determinant. Prove that the cross ratio is a projective
invariant i.e., invariant with respect to projective transformations.
3. Let
H=
h11 h12 h13
h21 h22 h23
h31 h32 h33
be a non-singular matrix representing a planar projective transformation
on homogeneous 3-vectors. For e.g., x0=Hx.
A conic can be written as xTCx= 0, where Cis a (3,3) symmetric matrix
of coefficients with 5 degrees of freedom. Show that if a point xis inside a
conic, after a projective transformation (as defined above), it still remains
inside, i.e., this property is invariant to projective transformations.
4. Given the image coordinates of the vanishing point for parallel lines, it
is possible to infer the direction of the 3D parallel lines. Let the line
L= (x, y, z)tfor some λbe given by
x
y
z
=
a1
a2
a3
+λ
b1
b2
b3
.
1
pf2

Partial preview of the text

Download Computer and Vision I - Assignment I | CAP 5416 and more Assignments Computer Science in PDF only on Docsity!

CAP5416: Assignment #1, Due Date: 9/17/

Make sure that your writing is legible, or else, please type your answers using your favorite text formatter. I prefer the latter. Your solutions are due at the beginning of the class on the due date and no later. I will not accept any late assignments.

  1. Prove that length (distance between points) and angle between two lines are invariants of a rigid motion given by the following matrix:  

cosθ −sinθ tx sinθ cos θ ty 0 0 1

where,  = 1. Explain, what is the type of transformation that results from choosing  = −1, are length and angles invariants of this type of transformation as well? Show your arguments analytically.

  1. Given 4 collinear points xi; i = 1, 2 , 3 , 4, we define cross ratio as

Cross(x 1 , x 2 , x 3 , x 4 ) =

‖x 1 x 2 ‖‖x 3 x 4 ‖ ‖x 1 x 3 ‖‖x 2 x 4 ‖

where, ‖xixj ‖ = det

[

xi 1 xj 1 xi 2 xj 2

]

where, det is the determinant. Prove that the cross ratio is a projective invariant i.e., invariant with respect to projective transformations.

  1. Let

H =

h 11 h 12 h 13 h 21 h 22 h 23 h 31 h 32 h 33

be a non-singular matrix representing a planar projective transformation on homogeneous 3-vectors. For e.g., x′^ = Hx. A conic can be written as xT^ Cx = 0, where C is a (3, 3) symmetric matrix of coefficients with 5 degrees of freedom. Show that if a point x is inside a conic, after a projective transformation (as defined above), it still remains inside, i.e., this property is invariant to projective transformations.

  1. Given the image coordinates of the vanishing point for parallel lines, it is possible to infer the direction of the 3D parallel lines. Let the line L = (x, y, z)t^ for some λ be given by  

x y z

a 1 a 2 a 3

 (^) + λ

b 1 b 2 b 3

The line passes through (a 1 , a 2 , a 3 )t^ and has a direction (b 1 , b 2 , b 3 )t. Note that the direction vector is a unit vector. Also, alternatively known as the direction cosines. Parallel lines have the same direction cosines i.e., direction vector. Let the perspective projection of any point on the line be (u, v)t. Assume f << z and z to be the optical axis. Points on the line L that are infinitely far from the lens center i.e., points receding to infinity on the line L project to a point called the vanishing point. Derive the coordinates of the vanishing point in this setting. Note, this is not the set up used in the class. Now, find the direction vector of the parallel lines in terms of the vanishing point and the focal length of the camera.