Notes for Chapter 1 & 2 of Multiple View Geometry in Computer Vision

1. Introduction – a Tour of Multiple View Geometry

1.1 Introduction – the ubiquitous projective geometry

The points at infinity in the two-dimensional projective space form a line, usually called the line at infinity. In three-dimensions they form the plane at infinity.

projective transformation, in which the coordinate vector is multiplied by a non-singular matrix. Under such a mapping, points at infinity (with final coordinate zero) are mapped to arbitrary other points. The points at infinity are not preserved.

The geometry of the projective plane and a distinguished line is known as affine geometry and any projective transformation that maps the distinguished line in one space to the distinguished line of the other space is known as an affine transformation.

The equation for a circle in homogeneous coordinates is of the form

Every circle passes through the points , and therefore they lie in the intersection of any two circles. Since their final coordinate is zero, these two points lie on the line at infinity. For obvious reasons, they are called the circular points of the plane.

Euclidean geometry arises from projective geometry by singling out first a line at infinity and subsequently, two points called circular points lying on this line.

This line of thought leads to the discovery that in homogeneous coordinates all spheres intersect the plane at infinity in a curve with the equations: ; . This is a second-degree curve (a conic) lying on the plane at infinity, and consisting only of complex points. It is known as the absolute conic and is one of the key geometric entities in this book, most particularly because of its connection to camera calibration, as will be seen later.

1.2 Camera projections

The most general imaging projection is represented by an arbitrary matrix of rank , acting on the homogeneous coordinates of the point in mapping it to the imaged point in . This matrix is known as the camera matrix.

Furthermore, if all the points lie on a plane (we may choose this as the plane ) then the linear mapping reduces to

which is a projective transformation.

The absolute conic, however being a conic in the plane at infinity must project to a conic in the image. The resulting image curve is called the Image of the Absolute Conic, or IAC. If the location of the IAC is known in an image, then we say that the camera is calibrated.

Knowing the IAC, one can measure the angle between rays by direct measurements in the image.

1.3 Reconstruction from more than one view

In the two-view case, therefore, we consider a set of correspondences in two images. It is assumed that there exist some camera matrices, and and a set of 3D points that give rise to these image correspondences in the sense that and . Thus, the point projects to the two given data points. However, neither the cameras (represented by projection matrices and ), nor the points are known. It is our task to determine them.

It is possible to apply a projective transformation (represented by a 4 × 4 matrix ) to each point , and on the right of each camera matrix , without changing the projected image points, thus:

There is no compelling reason to choose one set of points and camera matrices over the other. The choice of \mathbf{H} is essentially arbitrary, and we say that the reconstruction has a projective ambiguity, or is a projective reconstruction.

It is possible to reconstruct a set of points from two views, up to an unavoidable projective ambiguity. Well, to be able to say this, we need to make a few qualifications; there must be suffi- ciently many points, at least seven, and they must not lie in one of various well-defined critical configurations.

The basic tool in the reconstruction of point sets from two views is the fundamental matrix, which represents the constraint obeyed by image points and if they are to be images of the same 3D point. This constraint arises from the coplanarity of the camera centres of the two views, the images points and the space point. Given the fundamental matrix , a pair of matching points must satisfy

where is a matrix of rank 2.

Given the two cameras and the corresponding image point pairs , find the 3D point that projects to the given image points. Solving for in this way is known as triangulation.

1.4 Three-view geometry

Whereas for two views, the basic algebraic entity is the fundamental matrix, for three views this role is played by the trifocal tensor. The trifocal tensor is a array of numbers that relate the coordinates of corresponding points or lines in three views. The trifocal tensor is of the form , having two upper and one lower index._

There is a point X in space that maps to x in the first image, and to points and lying on the lines and in the other two images. The coordinates of these three images are then related via the trifocal tensor relationship:

The 27 elements of the tensor are not independent, however, but are related by a set of so called internal constraints._

The fundamental matrix (which is a 2-view tensor) also satisfies an internal constraint but a relatively simple one: the elements obey .

Once the trifocal tensor is known, it is possible to extract the three camera matrices from it, and thereby obtain a reconstruction of the scene points and lines. As ever, this reconstruction is unique only up to a 3D projective transformation; it is a projective reconstruction.

1.5 Four view geometry and n-view reconstruction

Many methods have been considered for reconstruction from several views. One way to proceed is to reconstruct the scene bit by bit, using three-view or two-view techniques.

The task of reconstruction becomes easier if we are able to apply a simpler camera model, known as the affine camera. This camera model is a fair approximation to perspective projection whenever the distance to the scene is large compared with the difference in depth between the back and front of the scene. If a set of points are visible in all of a set of n views involving an affine camera, then a well-known algorithm, the factorization algorithm, can be used to compute both the structure of the scene, and the specific camera models in one step using the Singular Value Decomposition.

The dominant methodology for the general reconstruction problem is bundle adjustment. This is an iterative method, in which one attempts to fit a non-linear model to the measured data (the point correspondences).

Using n-view reconstruction techniques, it is possible to carry out reconstructions automatically from quite long sequences of images.

1.6 Transfer

Transfer: given the position of a point in one (or more) image(s), determine where it will appear in all other images of the set.

Suppose the camera rotates about its centre or that all the scene points of interest lie on a plane. Then the appropriate multiple view relations are the planar projective transformations between the images. In this case, a point seen in just one image can be transferred to any other image.

1.7 Euclidean reconstruction

Now, suppose that we have computed a projective reconstruction of the world, using calibrated cameras. By definition, this means that the IAC is known in each of the images; let it be denoted by ωi in the i-th image. The back-projection of each ωi is a cone in space, and the absolute conic must lie in the intersection of all the cones. Two cones in general intersect in a fourth-degree curve, but given that they must intersect in a conic, this curve must split into two conics. Thus, reconstruction of the absolute conic from two images is not unique – rather, there are two possible solutions in general. However, from three or more images, the intersection of the cones is unique in general. Thus the absolute conic is determined and with it the Euclidean structure of the scene.

Of course, if the Euclidean structure of the scene is known, then so is the position of the absolute conic. In this case we may project it back into each of the images, producing the IAC in each image, and hence calibrating the cameras. Thus knowledge of the camera calibration is equivalent to being able to determine the Euclidean structure of the scene.

1.8 Auto-calibration

Generally given three cameras known to have the same calibration, it is possible to determine the absolute conic, and hence the calibration of the cameras.

Knowing the plane at infinity. Assuming one knows the plane at infinity, one can back-project a hypothesised IAC from each of a sequence of images and intersect the resulting cones with the plane at infinity. This gives a linear constraint on the entries of the matrix representing the IAC. Thus, auto-calibration is relatively simple, once the plane at infinity has been identified. The identification of the plane at infinity itself is substantially more difficult.

Auto-calibration given square pixels in the image. If the cameras are partially calibrated, then it is possible to complete the calibration starting from a projective reconstruction. One interesting example is the square-pixel constraint on the cameras. What this means is that a Euclidean coordinate system is known in each image. In this case, the absolute conic, lying in the plane at infinity in the world must meet the image plane in its two circular points. The circular points in a plane are the two points where the absolute conic meets that plane.

2. Projective Geometry and Transformations of 2D

2.1 Planar geometry

A point is identified with a vector in terms of some coordinate basis. A line is also identified with a vector, and a conic section (more briefly, a conic) is represented by a symmetric matrix.

2.2 The 2D projective plane

Homogeneous representation of lines. The vectors and represent the same line,for any non-zero k. An equivalence class of vectors under this equivalence relationship is known as a homogeneous vector. Any particular vector is a representative of the equivalence class. The set of equivalence classes of vectors in forms the projective space . The notation indicates that the vector , which does not correspond to any line, is excluded.

Homogeneous representation of points. A point lies on the line if and only if .

The point x lies on the line l if and only if . The set of vectors for varying values of to be a representation of the point in . Thus, just as with lines, points are represented by homogeneous vectors.

Degrees of freedom (dof). To specify a point two values must be provided, namely its x- and y-coordinates. A line is specified by two parameters (the two independent ratios ) and so has two degrees of freedom.

Intersection of lines. From the triple scalar product identity , we see that . Thus, the intersection of two lines l and l is the point .

Consider the simple problem of determining the intersection of the lines and . .

which is the inhomogeneous point as required.

Line joining points. The line through two points and is .

Intersection of parallel lines. The intersection of parallel lines and is , and ignoring the scale factor , this is the point .

Ideal points and the line at infinity. Homogeneous vectors with last coordinate are known as ideal points, or points at infinity. The set of all ideal points may be written , with a particular point specified by the ratio . Note that this set lies on a single line, the line at infinity, denoted by the vector ._ Indeed, one verifies that .

A model for the projective plane. A fruitful way of thinking of is as a set of rays in . The set of all vectors as varies forms a ray through the origin. Such a ray may be thought of as representing a single point in . In this model, the lines in are planes passing through the origin. One verifies that two nonidentical rays lie on exactly one plane, and any two planes intersect in one ray. This is the analogue of two distinct points uniquely defining a line, and two lines always intersecting in a point.

mvgcv-1

Points and lines may be obtained by intersecting this set of rays and planes by the plane . As illustrated in the figure above the rays representing ideal points and the plane representing are parallel to the plane . Points and lines of are represented by rays and planes, respectively, through the origin in . Lines lying in the represent ideal points, and the represents .

_(HopingTang: That’s tell us, why the combination of points in infinity form the line in infinity.)

Duality principle. To any theorem of 2-dimensional projective geometry there corresponds a dual theorem, which may be derived by interchanging the roles of points and lines in the original theorem.

Conic. The equation of a conic in inhomogeneous coordinates is

i.e. a polynomial of degree 2. “Homogenizing” this by the replacements: gives

or in matrix form

where the conic coefficient matrix C is given by

Note that the conic coefficient matrix is symmetric. Multiplying by a non-zero scalar does not affect the above equations. Thus is a homogeneous representation of a conic. The conic has five degrees of freedom which can be thought of as the ratios or equivalently the six elements of a symmetric matrix less one for scale.

Tangent lines to conics. The line tangent to at a point on is given by .

Dual conics. A line tangent to the conic satisfies . The notation indicates that is the adjoint matrix of . For a non-singular symmetric matrix (up to scale). Thus, . The equation for a dual conic is straightforward to derive in the case that C has full rank. The conic is the envelope of the lines .

Degenerate conics. If the matrix is not of full rank, then the conic is termed degenerate. Degenerate point conics include two lines (rank 2), and a repeated line (rank 1). Degenerate line conics include two points (rank 2), and a repeated point (rank 1). For example, the line conic has rank 2 and consists of lines passing through either of the two points and . Note that for matrices that are not invertible .

2.3 Projective transformations

A projectivity is an invertible mapping from to itself such that three points , and lie on the same line if and only if , and do. Projectivities form a group since the inverse of a projectivity is also a projectivity, and so is the composition of two projectivities. A projectivity is also called a collineation (a helpful name), a projective transformation or a homography: the terms are synonymous.

A mapping is a projectivity if and only if there exists a non-singular matrix such that for any point in represented by a vector it is true that .

Projective transformation. A planar projective transformation is a linear transformation on homogeneous -vectors represented by a non-singular matrix:

or more briefly, x = Hx. H is a homogeneous matrix. There are eight independent ratios amongst the nine elements of H, and it follows that a projective transformation has eight degrees of freedom.

If the two coordinate systems defined in the two planes are both Euclidean (rectilinear) coordinate systems then the mapping defined by central projection is more restricted than an arbitrary projective transformation. It is called a perspectivity rather than a full projectivity, and may be represented by a transformation with six degrees of freedom.

Transformation of lines. . Under the point transformation , a line transforms as

.

Points transform according to , whereas lines (as rows) transform according to . Points transform contravariantly and lines transform covariantly.

Transformation of conics. Under a point transformation , becomes a conic transforms to . a dual conic transforms to .

2.4 A hierarchy of transformations

Projective transformations form a group, called the projective linear group, and it will be seen that these specializations are subgroups of this group.

The group of invertible matrices with real elements is the (real) general linear group on n dimensions, or . To obtain the projective linear group the matrices related by a scalar multiplier are identified, giving (this is a quotient group of ). In the case of projective transformations of the plane . The important subgroups of include the affine group, which is the subgroup of consisting of matrices for which the last row is , and the Euclidean group, which is a subgroup of the affine group for which in addition the upper left hand matrix is orthogonal. One may also identify the oriented Euclidean group in which the upper left hand matrix has determinant .

Class I: Isometries are transformations of the plane \mathbb{R}^2 that preserve Euclidean distance (from iso = same, metric = measure). An isometry is represented as

where . If then the isometry is orientation-preserving and is a Euclidean transformation (a composition of a translation and rotation). If then the isometry reverses orientation. A planar Euclidean transformation can be written more concisely in block form as

where_ is a rotation matrix (an orthogonal matrix such that ), t a translation -vector, and a null 2-vector. Special cases are a pure rotation (when ) and a pure translation (when ). A Euclidean transformation is also known as a displacement.

A planar Euclidean transformation has three degrees of freedom, one for the rotation and two for the translation. The transformation can be computed from two point correspondences.

Invariants: length (the distance between two points), angle (the angle between two lines), and area.

Class II: A Similarity transformations (or more simply a similarity) is an isometry composed with an isotropic scaling. In the case of a Euclidean transformation composed with a scaling (i.e. no reflection) the similarity has matrix representation

This can be written more concisely in block form as

where_ the scalar s represents the isotropic scaling. A similarity transformation is also known as an equi-form transformation, because it preserves “shape” (form). A planar similarity transformation has four degrees of freedom, the scaling accounting for one more degree of freedom than a Euclidean transformation. A similarity can be computed from two point correspondences.

Invariants : Angles, parallel, the ratio of two lengths (ratio of areas).

The description metric structure implies that the structure is defined up to a similarity.

Class III: An affine transformation (or more simply an affinity) is a non-singular linear transformation followed by a translation. It has the matrix representation

or in block form

with_ a non-singular matrix. A planar affine transformation has six degrees of freedom corresponding to the six matrix elements. The transformation can be computed from three point correspondences. The affine matrix A can always be decomposed (SVD) as

where and are orthogonal matrices, and are rotations by and respectively, and is a diagonal matrix:

The affine matrix is hence seen to be the concatenation of a rotation (by ); a scaling by and respectively in the (rotated) and directions; a rotation back (by ); and finally another rotation (by ).

Invariants : Parallel lines, Ratio of lengths of parallel line segments, Ratio of areas.

Class IV: A Projective transformations was defined in section 2.3. It is a general non-singular linear transformation of homogeneous coordinates. Here we examine its block form

where_ the vector . A projective transformation between two planes can be computed from four point correspondences, with no three collinear on either plane.

Invariants: a ratio of ratios or cross ratio of lengths on a line is a projective invariant.

Decomposition of a projective transformation:

with_ a non-singular matrix given by , and K an upper-triangular matrix normalized as . This decomposition is valid provided , and is unique if is chosen positive. The transformation HP is an elation, described in section A7.3(p631).

The number of functionally independent invariants is equal to, or greater than, the number of degrees of freedom of the configuration less the number of degrees of freedom of the transformation.

mvgcv-002

2.5 The projective geometry of 1D

A projective transformation of a line is represented by a 2 × 2 homogeneous matrix,

and_ has degrees of freedom corresponding to the four elements of the matrix less one for overall scaling. A projective transformation of a line may be determined from three corresponding points. (HopingTang: 2 corresponding points is enough?)

The cross ratio is the basic projective invariant of . Given points the_ cross ratio is defined as

2.6 Topology of the projective plane

2.7 Recovery of affine and metric properties from images

The projective distortion may be removed once the image of l∞ is specified, and the affine distortion removed once the image of the circular points is specified. Then the only remaining distortion is a similarity.

The line at infinity, , is a fixed line under the projective transformation if and only if is an affinity.

Recovery of affine properties from images. If the imaged line at infinity is the line , then provided a suitable projective point transformation which will map back to is

sence, .

Under any similarity transformation there are two points on which are fixed. These are the circular points (also called the absolute points) ,, with canonical coordinates

The circular points, , , are fixed points under the projective transformation if and only if is a similarity.

The conic dual to the circular points. The conic

is dual to the circular points. The dual conic is fixed under the projective transformation if and only if H is a similarity. has degrees of freedom. .

Angles on the projective plane. For the lines and with normals parallel to respectively, the angle is

Once the conic is identified on the projective plane then Euclidean angles may be measured by

Lines and are orthogonal if .

Length ratios may also be measured once is identified. From the standard trigonometric sine rule the ratio of lengths .

Recovery of metric properties from images. Suppose the circular points are identified in an image, and the image is then rectified by a projective transformation that maps the imaged circular points to their canonical position (at ) on . The transformation between the world plane and the rectified image is then a similarity since it is projective and the circular points are fixed. Metric rectification using .

It is clear that the projective () and affine () components are determined directly from the image of . Sence, once the conic is identified on the projective plane then projective distortion may be rectified up to a similarity.

Actually, a suitable rectifying homography may be obtaineddirectly from the identified in an image using the SVD (section A4.4(p585)): writing the SVD of then by inspection from the equation above the rectifying projectivity is up to a similarity.

can be determined linearly from the images of five line pairs which are orthogonal on the world plane.

2.8 More properties of conics

We now introduce an important geometric relation between a point, line and conic, which is termed polarity.

mvgcv-003

The line is called the polar of with respect to , and the point is the pole of with respect to . The polar line of the point with respect to a conic intersects the conic in two points. The two lines tangent to at these points intersect at . If the point is on then the polar is the tangent line to the conic at . It is evident that the conic induces a map between points and lines of .

A correlation is an invertible mapping from points of to lines of . It is represented by a non-singular matrix as .

Conjugate points: If the point is on the line then . Any two points , satisfying are conjugate with respect to the conic . If is on the polar of then is on the polar of .

There is a dual conjugacy relationship for lines: two lines and are conjugate if .

Classification of conics. Projective normal form for a conic: Any conic is equivalent under projective transformation to one with a diagonal matrix. Let where or and each . Thus, may be written in the form

where . Note that . The various types of conics may now be enumerated, and are shown in table belowing:

mvgcv-004

Affine classification of conics. In affine geometry the Euclidean classification – ellipse, parabola and hyperbola – is still valid because it depends only on the relation of to the conic.

mvgcv-005

2.9 Fixed points and lines

The source and destination planes are identified (the same) so that the transformation maps points to points in the same coordinate system. The key idea is that an eigenvector corresponds to a fixed point of the transformation, since for an eigenvector with eigenvalue ,

and and represent the same point. A matrix has three eigenvalues and consequently a plane projective transformation has up to three fixed points, if the eigenvalues are distinct. A similar development can be given for fixed lines, which, since lines transform as (2.6–p36) , correspond to the eigenvectors of \mathbf{H}^\intercal .

A further specialization concerns repeated eigenvalues. Suppose two of the eigenvalues (, say) are identical, and that there are two distinct eigenvectors , corresponding to . Then the line containing the eigenvectors will be fixed pointwise.

Another possibility is that , but that there is only one corresponding eigenvector. In this case, the eigenvector has algebraic dimension equal to two, but geometric dimension equal to one. Then there is one fewer fixed point (2 instead of 3).

A Euclidean matrix. The two ideal fixed points are the complex conjugate pair of circular points , , with corresponding eigenvalues , where is the rotation angle. The third eigenvector, which has unit eigenvalue, is called the pole. A special case is that of a pure translation (i.e. where = 0). Here the eigenvalues are triply degenerate. The line at infinity is fixed pointwise, and there is a pencil of fixed lines through the point which corresponds to the translation direction. Consequently lines parallel to are fixed. This is an example of an elation.

A similarity matrix. The two ideal fixed points are again the circular points. The eigenvalues are . The action can be understood as a rotation and isotropic scaling by s about the finite fixed point. Note that the eigenvalues of the circular points again encode the angle of rotation.

An affine matrix. The two ideal fixed points can be real or complex conjugates, but the fixed line through these points is real in either case.