Camera Parameters
INEL 6088 Computer Vision
Camera Parameters INEL 6088 Computer Vision Camera Parameters - - PowerPoint PPT Presentation
Camera Parameters INEL 6088 Computer Vision Camera Parameters Extrinsic parameters: define the location and orientation of the camera with respect to the world reference frame Intrinsic parameters: link the pixel coordinates of an image
INEL 6088 Computer Vision
image point to the corresponding coordinates in the camera reference frame
3D Computer Vision by Emanuele Trucco and Alessandro Verri
camera and known world reference frames.
the two frames
brings axes of the two frames into each other Pc = R (Pw − T) Pc = RPw − T
rx = 1 cψ −sψ sψ cψ ry = cϕ sϕ 1 −sϕ cϕ rz = cθ −sθ sθ cθ 1 R = r11 r12 r13 r21 r22 r23 r31 r32 r33 = rxryrz = cθcϕ −sθcϕ sϕ cθsψsϕ + cψsθ −sψsϕsθ + cψcθ −sψcϕ −cψsϕcθ + sψsθ cψsϕsθ + sψcθ cψcϕ
Rotation matrix in Wikipedia
Basic Properties
axis goes through the focus on the other side;
in one side emerges parallel to the axis on the other side
Thin lens equation:
Perspective camera model Weak-perspective camera model (difference in distance to scene points is small compared to average distance) (x, y, z) (x′, y′)
x′ f = x z ⇒ x′ = f x z y′ f = y z ⇒ y′ = f y z x′ = f x ¯ z y′ = f y ¯ z
(x, y, z) Image plane coordinates (x′, y′) World coordinates
Ignoring the lenses’ geometric distortions and assuming that the sensor array is made of a rectangular grid of photosensitive elements, where
directions, respectively
Transformation between Camera and Image frame coordinates
Pc = R (Pw − T)
Transformation between World and sensor coordinates
x′ = − (xim − ox)sx y′ = − (yim − oy)sy
x′ = − (xim − ox)sx = − f R1
T(Pw − T)
R3
T(Pw − T)
= − f [r11 r21 r31] [ x y z] − tx ty tz [r13 r23 r33] [ x y z] − tx ty tz y′ = − (yim − oy)sy = − f R2
T(Pw − T)
R3
T(Pw − T)
= − f [r12 r22 r32] [ x y z] − tx ty tz [r13 r23 r33] [ x y z] − tx ty tz x′ = − (xim − ox)sx = − f R1
T(Pw − T)
R3
T(Pw − T)
Pc = R (Pw − T)
y′ = − (yim − oy)sy = − f R2
T(Pw − T)
R3
T(Pw − T)
Mint = −f/sx
−f/sy ox 1 Mext = r11 r12 r13 −R1
TT
r21 r22 r23 −R2
TT
r31 r32 r33 −R3
TT
Define: Intrinsic parameter matrix: Transformation between camera and image reference frame Extrinsic parameter matrix: Transformation between world and camera reference frame x1 x2 x3 = MintMext Xw Yw Zw 1 Linear Matrix Equation of Perspective Projections: xim = x1/x3 yim = x2/x3 (xim, yim): pixel coordinates that we measure
M = −fr11 −fr12 −fr13 f R1
TT
−fr21 −fr22 −fr23 f R2
TT
r31 r32 r33 −R3
TT
For simplicity, asume
Projection matrix M = MintMext: M describes the full perspective camera mode Weak-perspective camera model difference in distance to scene points is small compared to average distance M = −fr11 −fr12 −fr13 f R1
TT
−fr21 −fr22 −fr23 f R2
TT
R3
T(¯
P − T)
Radial distortion of the image
edge of the lens
No distortion Pin cushion Barrel
from Helmut Dersch
To model lens distortion
matrix multiplication
Apply radial distortion Apply focal length translate image center Project to “normalized” image coordinates