14.camera Calibration
14.camera Calibration
Ph.D. student
Chang-Ryeol Lee
• Omnidirectional camera
• Camera model
• Calibration: A flexible Technique for Accurate Omnidirectional
Camera Calibration and structure from motion
Camera model
y
z
Grid size:3cm
{World} x
{Image}
Camera calibration
• Camera parameters
• Intrinsic parameter K
• Focal length, skew, principal point
• Extrinsic parameter P
• Rotation, translation
x kI KPXWk
fx s px r11 r12 r13 t1
x kI 0 fy p y r21 r22 r23 t2 XWk
0 0 1 r31 r32 r33 t3
Tsai’s and Zhang’s methods
• Retrieve not only the intrinsic but also extrinsic parameters
• Set their Z-coordinate to 0
• because the 3D points on the object are coplanar.
X
X
Y
m ≅ 𝐊 𝐑T | −𝐑T t M = 𝐊 r1 r2 r3 t ′ = 𝐊 r1 r2 t ′ Y
0
1
1
𝐇 = h1 h2 h3 = λ𝐊 r1 r2 t ′
Tsai’s and Zhang’s methods
• Solving for Homography
Tsai’s and Zhang’s methods
• Any rotation matrix is an orthonormal matrix
r1 r2 t ′ = 𝐊 −1 h1 h2 h3
r1 𝑇 r2 = (𝐊 −1 h1 )𝑇 𝐊 −1 h2 = h2 𝑇 𝐊 −𝑇 𝐊 −1 h2 = 0
r1 𝑇 r1 = r2 𝑇 r2 = (𝐊 −1 h1 )𝑇 𝐊 −1 h1 = h1 𝑇 𝐊 −𝑇 𝐊 −1 h1 = h2 𝑇 𝐊 −𝑇 𝐊 −1 h2
𝐵12 𝛼𝑥 2 𝛼𝑦 𝑠𝑢𝑦 𝛼2
𝑠=− 𝑢𝑥 = − 𝐵13
λ 𝛼 λ
Tsai’s and Zhang’s methods
• After intrinsic parameters, the extrinsics readily follow
r1 r2 t ′ = 𝐊 −1 h1 h2 h3
r1 = μ𝐊 −1 h1 r2 = μ𝐊 −1 h2 t = μ𝐊 −1 h3
1
r3 = r1 × r2 μ =
𝐊 −1 h1
Omnidirectional camera
Catadioptric
(camera with mirror)
Omnidirectional camera
• Camera model
u
x v R t X PX
f ( )
f ( ) a0 a1 a2 2 aN N
A flexible Technique for Accurate Omnidirectional
Camera Calibration and structure from motion
• No focal length, skew, principal point
• Calibration parameters
• Taylor expansion coefficients a
• Rotation R
• Translation t
u
x v R t X PX
f ( )
f ( ) a0 a1 a2 2 aN N
A flexible Technique for Accurate Omnidirectional
Camera Calibration and structure from motion
• Set their Z-coordinate to 0 by planarity of pattern
A flexible Technique for Accurate Omnidirectional
Camera Calibration and structure from motion
• Cross product of a corner point
• We know X j , Yj , u j , v j
, where f ( ) a0 a1 a2 2 aN N
A flexible Technique for Accurate Omnidirectional
Camera Calibration and structure from motion
• Equations stacked with K observations of pattern is
expressed linearly
1st
Kth
where