Professional Documents
Culture Documents
Central Projection in Homogenous Coordinates: Plane Through A Camera Center
Central Projection in Homogenous Coordinates: Plane Through A Camera Center
Central Projection in Homogenous Coordinates: Plane Through A Camera Center
A camera model describes a projection from P 3 to P 2 . The ray through the camera
The camera center is also called center orthogonal to the image
The most basic camera model is the pinhole camera where a 3D projection center, perspective plane is called principal axis,
world point X is projected onto a 2D image point x in the image center, optical center, or focus. principal ray, camera axis or
plane through a camera center C. central ray.
The image plane is also called
In the physical camera, a mirror image is formed behind the focal plane. The intersection between the
camera center. However, often a virtual image plane is depicted in The distance between the cam-
principal ray and the image plane
front of the camera center. is called principal point or foot
era center and the image plane is
point.
The points X, C and (the 3D point) x are collinear, i.e. lie on the called focal distance, principal dis-
same line in space. tance, camera constant, or film- The plane through the camera
focus-distance. center parallel with the image
Y plane is called the principal plane.
Y
X X
y X X
x y
x
C x
Z x
p
C Z
principal axis p
camera
centre image plane principal axis
camera
centre image plane
– p. 1 – p. 2
– p. 3 – p. 4
The principal point The camera calibration matrix
If the principal point is not at the origin If we write 2 3
of the image coordinate system, the map- ycam
f px
ping becomes K=4
6
f py 5
7
py p 1
(X, Y, Z)> 7→ (f X/Z + px , f Y /Z + py )> , y
x cam
the projection may be written as
where (px , py )> are the image coordinates x px x = K[I | 0]Xcam .
for the principal point.
In homogenous coordinates The matrix K is called the camera calibration matrix. The notation Xcam
emphasizes that the world coordinates are with respect to the camera, i.e.
the camera center is at the origin, the X and Y axes coincide and the
X X
f X + Zpx f px 0 principal axis coincides with the Z axis.
Y Y
7→ f Y + Zpy = f py 0
Ycam
Z Z
Z 1 0
1 1
Zcam
C
Xcam
– p. 5 – p. 6
– p. 9 – p. 10
– p. 11 – p. 12
The camera column vectors The camera row vectors
Let pi , i = 1, . . . , 4 be the columns of P. Then p1 , p2 , p3 are the Let Pi> , i = 1, . . . , 3 be the rows of P.
mappings of the axis directions in the world coordinate system. The principal plane of the camera is the plane through
E.g. the X axis D = (1, 0, 0, 0)> is mapped to the camera center parallel with the image plane. It
consists of all points X that are mapped to the line at
infinity in the image plane, i.e. PX = (x, y, 0)> .
1
h i 0 A point is on the principal plane iff P3> X = 0. Thus
PD = p1 p2 p3 p4 = p1 .
the vector P3 represents the principal plane. P3 y x
0
Especially C is in the principal plane since PC = 0.
0
All points X on the plane P2 satisfy P2> X = 0 and principal plane
The principal point and the principal axis The direction of the principal axis
The principal axis is the line through the camera center C In theory all points X outside the principal plane are projected to a finite point
orthogonal to the principal plane P3 . in the image plane according to x = PX. In reality only points in front of the
camera.
The axis intersects the image plane in the principal point.
Let P = [M | p4 ]. We know that m3 points in the direction of the principal axis.
The normal of the principal plane P3 = (p31 , p32 , p33 , p34 )> has However, the sign of P is undefined so the question is if m3 or −m3 points in
direction P̂3 = (p31 , p32 , p33 , 0)> . the positive direction.
Study the projection
The projection of this point gives the principal point PP̂3 .
If P = [M | p4 ] the principal point is calculated as x = Pcam Xcam = K[I | 0]Xcam ,
x0 = Mm3 , where Xcam is a 3D point in camera coordinates. Note that the vector
v = det(M)m3 = (0, 0, 1)> points forward in the direction of the principal axis,
where m3> is the third row of M. independently of the scaling of Pcam since
Pcam → kPcam ⇒ v → k 4 v
Points at infinity (vanishing points) D = (d> , 0)> are mapped to Let C = (C̃> , 1)> be the camera center. Then
x = PD = [M | p4 ]D = Md w = P3> X = P3> (X − C)
X(λ) = P+ x + λC.
– p. 17 – p. 18
For an unnormalized camera matrix, the depth of a point X = (X, Y, Z, T )> with The matrix R describes the orientation and K the calibration of the camera.
respect to a camera P = [M | p4 ] may instead be calculated as If K is chosen to have positive diagonal elements the factorization is unique.
sign(det(M))w If the calibration matrix K is scaled such that K33 = 1 it may be interpreted as
depth(X; P) = ,
T km3 k 2 3
αx s x0
where K=4 αy y0 5 .
6 7
P(X, Y, Z, T )> = w(x, y, 1)> . 1
If P is a finite camera, then all points satisfying
sign(det(M))w/T > 0
– p. 19 – p. 20
Affine cameras
An affine camera P = [M | p4 ] is an infinite camera, i.e. M has rank 2.
An affine camera P has last row P3> = (0, 0, 0, 1)> .
Points at infinity in P 3 are mapped onto points at infinity in P 2 .
The camera center C is on the plane at infinity.
The principal plane is the point at infinity.
The principal point is undefined.
The canonical form [I | 0] is replaced by the parallel projection matrix
2 3
1 0 0 0
4 0 1 0 0 5.
6 7
0 0 0 1