Camera Models
簡韶逸 Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2019
1
Camera Models Shao-Yi Chien Department of Electrical Engineering - - PowerPoint PPT Presentation
Camera Models Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2019 1 Outline Camera models [Slides credit: Marc Pollefeys] 2 Camera Obscura: the Pre-Camera First idea: Mo-Ti, China (470BC
簡韶逸 Shao-Yi Chien Department of Electrical Engineering National Taiwan University Fall 2019
1
2
[Slides credit: Marc Pollefeys]
Illustration of Camera Obscura Freestanding camera obscura at UNC Chapel Hill
Photo by Seth Ilys
Camera Obscura, Reinerus Gemma-Frisius, 1544
T T
T y x T
T y x p
y x x x
cam
y x
cam
cam
Internal Camera Parameter Internal Orientation Intrinsic Matrix External Camera Parameter Exterior Orientation Extrinsic Matrix
y x x x
y x x x
Non-square pixels
y x x x
y x x x
4
4 1p
s: skew parameter, =0 for most normal cameras P4: Last column of P
1 p M
4 1
C
Md , d C
Proof: The camera center is a point at infinity
4 3 2 1 2
p1, p2, p3: vanishing points of the world coordinate X, Y, and Z axes Image points corresponding to X,Y,Z directions and origin
3 2 1
T T T
3 2 1
T T T
principal point
33 32 31 3
3 3
3
cam cam cam
T
3
cam cam
4
4
The principal axis vector v=det(M)m3 is directed towards the front of the camera
4
1
T T
(pseudo-inverse)
4
4
For finite camera
T 3 T 3 T 3
(dot product) (PC=0)
3
3
T
X X,Y,Z,T
(use SVD to find null-space)
4 3 2
4 3 1
4 2 1
3 2 1
(use RQ decomposition ~QR) Q R
Q R (if only QR, invert)
y x x x
1 g arctan(1/s)
resulting camera:
homography 4 4 1 1 1 homography 3 3 P general projective interpretation Meaningfull decomposition in K,R,t requires Euclidean image and space Camera center is still valid in projective space Principal plane requires affine image and space Principal ray requires affine image and Euclidean space
3T 3T 2T 2T 1T 1T
t t
3T 2T 2T 1T 1T 3 3T 3T 3 2T 2T 3 1T 1T
3T 2T 2T 1T 1T 3T 2T 2T 1T 1T
t t t t t t
2T 2T 1T 1T
t t
2 1
3 2 1
t
proj
affine
proj
affine
proj proj affine
2x2
2x2
2x2 2x2
2x2 2x2 2x2 2x2
2x2 2x2
Prefer this one
2 2
2 1T 1 1T
2 1T 1 1T
y x
2 1T 1 1T
1. Affine camera=camera with principal plane coinciding with P∞ 2. Affine camera maps parallel lines to parallel lines 3. No center of projection, but direction of projection PAD=0 (point on P∞)
y x A
2 1T 1 1T
1 P
2 23 22 21 1 13 12 11
t m m m t m m m
A
affine 4 4 1 1 1 affine 3 3 P
A
T
T
T
Straight lines are not mapped to straight lines! (otherwise it would be a projective camera)
Z Y X p p p p p p y x
23 22 21 13 12 11
Null-space PC=0 yields camera center Also decomposition
2 2 2 2 2 2 3 2