Camera Calibration
Camera Calibration
CAMERA CALIBRATION
Introduction
2
Tools:
Camera Calibration
3
Perspective
Equations
Feature
Extraction
Perspective Projection,
Remember?
4
Image formation
geometry for
a thin convex lens
The central-projection
model.
Intrinsic Parameters
5
pixel size s x , s y
X
xf
Z
lens distortion k1 , k 2
Z
focal length f
Intrinsic Parameters:
Focal Length f
Pixel size s , s
x
y
Image center ox , oy
Extrinsic Parameters
7
Pc=R(Pw-T)
Translation followed by rotation
Coordinate Frames
8
Pixel Coordinates
Zc
Yc
Zw
Yw
Extrinsic
Parameters
Xc
Intrinsic
Parameters
Image Coordinate Frame
Why Calibrate?
9
In general the principal point is not at the centre of the photosite array.
The focal length of a lens correct only if the lens is focused at infinity.
The only intrinsic parameters that it may be possible to obtain are the
photosite dimensions w and h from the sensor manufacturers data
sheet.
cos
sin
0
sin
cos
0
0
1
cos
0
sin
0
1
0
sin
0
cos
0
0
0
cos
sin
0
sin
cos
W
X
W
Y
ZW
TX
TY
T
Z
Zcamera
Ycamera
(xim, yim)
Xcamera
(ox,oy)
Yimage
Ximage
Geometric Model
12
x=
y=
Transformation from Image
to Camera Frame.
(ox,oy,sx,sy)
No distortion!
XcT
ZcT
YcT
ZcT
3D Point in
Camera
Coordinate
Frame
Transformation from
World to Camera Frame.
Perspective projection
(f, R, T)
Point in Camera Frame
3D
S
[R t]
A
Let
Let the ith column vector of H be hi = [hi1; hi2; hi3]T . Then, we have
with
Therefore, the two fundamental constraints (3) and (4), from a given
homography, can be rewritten as 2 homogeneous equations in b:
The solution to (9) is well known as the eigenvector of VTV associated with
the smallest eigenvalue.
Once b is estimated, we can compute all camera intrinsic matrix A.
Once A is known, the extrinsic parameters for each image is readily
computed. From (2), we have
Maximum likelihood
estimation
21
We are given n images of a model plane and there are m points on the
model plane.
Assume that the image points are corrupted by independent and
identically distributed noise. The maximum likelihood estimate can be
obtained by minimizing the following functional:
d=
Demo
ZHANGS CAMERA CALIBRATION
(zhang2D_with_demo)
26
Reference
27