Lec 9
Lec 9
Lecture 9
Lecture-12
Guest Lecturer: Dr. Dong Zhang
CRCV, UCF
Camera Calibration
• Determine extrinsic and intrinsic parameters
of camera
– Extrinsic
• 3D location and orientation of camera
– Intrinsic
• Focal length
• The size of the pixels
Application: Object Transfer
http://www.youtube.com/watch?v=ZNHRH00UMvk
Transformations
3-D Translation
Scaling
Rotation
Y
R Y’
R
Y
X’ X
X
Z
Rotation matrices are orthonormal matrices
Euler Angles
Rotation around an arbitrary axis:
(X,Y,Z)
Image Plane World
f Lens point
y 0
Z
image
y f
Y Z
fY fX
y x
Z Z
Perspective Projection (origin at image center)
(X,Y,Z)
Image Plane World
f Lens point
0
y
Z
image
Perspective
Image
World coordinates
coordinates
Perspective
Camera Model
n points
2n equations,
12 unknowns
Camera Model
Pseudo inverse
Least squares fit
Finding Camera Location
• Take one 3D point X1 and find its
image homogenous coordinates.
• Set the third component of
homogenous coordinates to zero,
find corresponding World
coordinates of that point, X11
• Connect X1 and X11 to get a line
in 3D.
• Repeat this for another 3D point
X2 and find another line
• Two lines will intersect at the
location of camera.
Camera Location
Camera Orientation
f Z
image coordinates
camera coordinates
image center (in pixels)
effective size of pixels (in
millimeters) in the horizontal and
vertical directions.
Camera Model Revisited
Camera Model Revisited
Camera Model Revisited
Let
Computing Camera Parameters:
origin of image
Therefore:
Computing Camera Parameters:
vertical and horizontal focal lengths
Therefore:
Computing Camera Parameters:
remaining rotation and translation
parameters
Reading Material
• Chapter 1, Fundamental Of Computer Vision, Mubarak Shah
• Chapter 6, Introductory Techniques, E. Trucco and A. Verri,
Prentice Hall, 1998.
• Recovering the camera parameters from a transformation matrix,
TM Strat - Readings in Computer Vision, 1987