DIP - Assignment 3 Solution
DIP - Assignment 3 Solution
QUESTION 1:
Correct Answer: d
Detailed Solution:
1 5
2 10
𝑎 = [ ],𝑏 = [ ]
3 15
1 5
When written in standard homogeneous system coordinate system are
1 5/5 1
2 10/5 2
𝑎 = [ ],𝑏 = [ ]=[ ]
3 15/5 3
1 5/5 1
Thus both the point ‘a’ and ‘b’ are equivalent in standard homogeneous system coordinate
system, therefore there is a unique ray that passes through point ‘a’ and ‘b’ and intersects camera
center, projecting point ‘a’ and ‘b’ at same location on image plane.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
____________________________________________________________________________
QUESTION 2:
Which of the following transformation matrix corresponds to rotation about x-axis in anti-
clockwise direction?
1 0 0 0
0 𝑐𝑜𝑠 𝜃 𝑠𝑖𝑛 𝜃 0
a) [ ]
0 − 𝑠𝑖𝑛 𝜃 𝑐𝑜𝑠 𝜃 0
0 0 0 1
1 0 0 0
0 𝑐𝑜𝑠 𝜃 −𝑠𝑖𝑛 𝜃 0
b) [ ]
0 𝑠𝑖𝑛 𝜃 𝑐𝑜𝑠 𝜃 0
0 0 0 1
1 0 0 0
0 𝑐𝑜𝑠 𝜃 𝑠𝑖𝑛 𝜃 0
c) [ ]
0 𝑠𝑖𝑛 𝜃 𝑐𝑜𝑠 𝜃 0
0 0 0 1
𝑐𝑜𝑠 𝜃 𝑠𝑖𝑛 𝜃 0 0
− 𝑠𝑖𝑛 𝜃 𝑐𝑜𝑠 𝜃 0 0
d) [ ]
0 0 1 0
0 0 0 1
Correct Answer: b
Detailed Solution:
Transformation matrix that corresponds to rotation about x-axis in clockwise direction is given
as
1 0 0 0
0 𝑐𝑜𝑠 𝜃 𝑠𝑖𝑛 𝜃 0
𝑇=[ ]
0 − 𝑠𝑖𝑛 𝜃 𝑐𝑜𝑠 𝜃 0
0 0 0 1
QUESTION 3:
How many world points are required to estimate all coefficients of caliberation matrix?
a) 5
b) 4
c) 6
d) 12
Correct Answer: c
Detailed Solution:
Camera calibration matrix has 12 unknowns. Since each point gives 2 equations, therefore we
need atleast 6 points to estimate all coefficients.
______________________________________________________________________________
QUESTION 4:
For a stereo pair, one camera is shifted along y-axis with respect to other. Imaging plane is 𝑋𝑌
plane. If B is the baseline between the cameras, λ is the focal length, and (𝑦2 − 𝑦1 ) is the
disparity along y-axis then which of the following is true?
λB
a) Z = B + (𝑦
2 −𝑦1 )
λB
b) Y = λ − (𝑥
2 −𝑥1 )
λB
c) X = λ − (𝑦
2 −𝑦1 )
λB
d) Z = λ − (𝑦
2 −𝑦1 )
Correct Answer: d
Detailed Solution:
______________________________________________________________________________
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
QUESTION 5:
Two identical cameras having focal length of 0.04m are used for stereo imaging. If the camera
displacement along X axis is 6.0 cm, left image point corresponding to a world point W is (0.2
mm, 0.4 mm) and the corresponding right image point is (0.4 mm, 0.4 mm), find out the 3-D
location of W with respect to a world coordinate system aligned with the coordinate system of
the left camera.
For X and Y with respect to left camera, we use the following relations
𝑥0 𝑦0
𝑋= (𝜆 − 𝑍) and 𝑌 = (𝜆 − 𝑍),
𝜆 𝜆
QUESTION 6:
Which of the following deals with the conversion of three-dimensional world co-ordinate to two
dimensional image?
a. Perspective Transfomation
b. Rotation
c. Linear Transformation
d. Non-linear mapping
Correct Answer: a
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
Detailed Solution:
Perspective Transfomation deals with the conversion of three dimensional world co-ordinate to
two dimensional image.
______________________________________________________________________________
QUESTION 7:
For standard stereo image pair camera system as discussed in lectures, for a focused 3D point,
which of the following is True?
Correct Answer: d
Detailed Solution:
λB
Z=λ−
(𝑥2 − 𝑥1 )
λB
𝑥2 − 𝑥1 =
(λ − Z)
So 𝑥2 − 𝑥1 can be both positive and negative depending on sign of (λ − Z), however since 3D
point is focused, (λ < Z) , therefore 𝑥2 − 𝑥1 is always negative
Objects closer to camera moves faster (larger disparity) than the objects which are farther,
therefore disparity decreases as object depth increases.
______________________________________________________________________________
QUESTION 8:
For a camera with focal length of 0.10, find out the locus of the points which will be imaged at
location (0.25, 0.5) on the Image plane. Assume the camera coordinate system and world
coordinate system to be perfectly aligned.
Correct Answer: c.
Detailed Solution:
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
𝜆is focal length and (𝑥𝑜 , 𝑦𝑜 ) is image coordinates. Using these two equations we get,
X = 0.25 - 2.5Z, Y = 0.5 − 5Z
______________________________________________________________________________
QUESTION 9:
The figure below is first scaled by a factor of 0.5 and translated by vector [-1, +1], What is the
transformed figure?
a)
b)
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
c)
d) None of These
Correct Answer: b.
Detailed Solution:
1 0 −1
𝑇 = [0 1 1]
0 0 1
𝑥′ 0.5𝑥 − 1
[𝑦′] = [0.5𝑦 + 1]
𝑘 1
𝑥 0 4 0 4
Using these for [𝑦] = [0] , [0] , [−4] , [−4],
1 1 1 1 1
𝑥′ −1 1 −1 1
′
we get transformed coordinates [𝑦 ] = [ 1 ] , [1] , [−1] , [−1]
𝑘 1 1 1 1
𝑥′ −1 1 −1 1
Since k=1, [ ′ ] = [ ] , [ ] , [ ] , [ ]
𝑦 1 1 −1 −1
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur
______________________________________________________________________________
QUESTION 10:
The figure 1 is first translated by vector [ 1,- 0.5] and then scaled up by a factor 2, What is the
transformed figure?
Figure 1
a)
b)
c)
Correct Answer: a
Detailed Solution:
1 0 1
𝑇 = [0 1 −0.5]
0 0 1
𝑥′ 2𝑥 + 2
[𝑦′] = [2𝑦 − 1]
𝑘 1
𝑥 −1 1 −1 1
𝑦
Using these for [ ] = [ 1 ] , [1] , [−1] , [−1],
1 1 1 1 1
𝑥′ 0 4 0 4
′
we get transformed coordinates [𝑦 ] = [1] , [1] , [−3] , [−3]
𝑘 1 1 1 1
𝑥′ 0 4 0 4
Since k=1, [ ′ ] = [ ] , [ ] , [ ] , [ ]
𝑦 1 1 −3 −3
______________________________________________________________________________
______________________________________________________________________________
************END*******