Collinearity equation

from Wikipedia, the free encyclopedia

The collinearity equation is based on the mathematical and geometric principles of collinear mapping . A typical example of a collinear mapping is the central projection . Straight lines are mapped onto straight lines again, division ratios are retained.

Areas of application of the collinearity equation can be found in all areas of optics and optical image recording, especially in optical measurement , photogrammetry and other indirect measurement techniques (e.g. flow velocity of a body of water, flexural strength of materials). Usually, the recorded image points are used to calculate back to the coordinates of the corresponding object points. Image point , projection center and observed object point lie on a straight line .

Derivation of the collinearity equation

Rays of light fall through the hole of a pinhole camera

When deriving the collinearity equation, one proceeds in two stages. In stage 1 , one first considers the projection of a 3D object point with respect to the camera coordinate system ( KKS ) in the image plane. The imaging model is the central projection . Then, in stage 2, the transformation from a higher-level national or global world coordinate system ( WCS ) to the KKS is described. Because the position of the camera is only known temporarily and only serves as a measuring instrument. But what you actually need is the relationship between the measured image coordinates and a global 3D coordinate system, in which a 3D model can be calculated at the end that is independent of the camera.

Stage 1 - Central projection as an imaging model of the pinhole camera

In order to mathematically describe the imaging process of a real camera, one first tries to reduce the high complexity of reality in order to obtain a simplified model. As a rule, the pinhole camera model is used for this . The imaging model of the pinhole camera is the central projection . It is a purely geometric model and therefore particularly simple. By means of ray theorems, ratio equations can be set up, one each for the image coordinates and . The collinearity equations are based on this basic idea.

Description of the mapping process

Central projection as an idealized imaging model of a camera

To derive this, look at the figure on the left, the cavalier perspective (left). Note that the image plane is in front of the camera (positive position). In contrast to the pinhole camera, where the image plane is behind the projection center (negative position), the resulting image in the positive position is laterally correct and is upright. This simplifies the derivation, the relationships of the central projection remain the same.

A 3D object point is mapped into the image plane via the straight projection beam that goes through the projection center and generates the 2D image point . There is a close relationship between the image coordinate system ( UCS , green axes) located in the image plane and the KKS . The X and Y axes of the KKS are parallel to the corresponding x and y axes of the UCS. The XY plane of the KKS is thus parallel to the image plane. The Z-axis of the KKS is based on the right-hand rule and creates a right-hand system . Therefore the Z-axis depends on the alignment of the axes of the UCS . In this case, the UCS is defined as a standard mathematical coordinate system; i.e., the x-axis points to the right (horizontal) and the y-axis points to the top (vertical). For this reason, the positive Z-axis from the KKS points backwards against the direction of view.

The extension of the negative Z-axis of the KKS represents the viewing direction of the camera. It penetrates the image plane and creates the main point of the image . The main point is the origin of the image coordinate system ( UCS ). The vertical distance of the projection center from the image plane (line ) is called the camera constant .

Establishing the equations

If we now look at the side view (on the right in the figure), then, based on the ray laws of the central projection, relationship equations result . The figure shows directly:

Because the image plane is along the negative Z-axis, the camera constant must be given a negative sign. And the following applies accordingly:

Note: in principle, the axes can also be aligned differently, as in the case of the sensor coordinate system ( SKS , red axes). The origin of the SKS is in the upper left corner of the picture and the x-axis points to the right (horizontal), but the y-axis points downward (vertical). A KKS which is aligned accordingly then has a positive Z-axis that points forward in the direction of view of the camera. This is the common practice in computer vision . In photogrammetry , however, a different alignment of the axes has been established for historical reasons.

Stage 2 - Transformation from WCS to KKS

Next, the relationship between the global world coordinate system and the local camera coordinate system will be described. With such a coordinate transformation , one considers a point with respect to two different reference systems which can be shifted from one another and rotated as required. So you need a translation (displacement) and a rotation (rotation) to formulate the mathematical relationship. It is easiest to first carry out the translation, so that the reference systems share a common origin, that is, they are more or less on top of each other. The rotation is then carried out.

Coordinate transformation from WCS to KKS with a focus on translation.

To do this, we consider the figure on the right. Two reference systems are shown here: the WCS (red axes) and the KKS (blue axes). A point has in relation to the WCS the coordinates (red) and with respect to the PPS the coordinates (blue). The rules of vector arithmetic must be observed here. This means that you can only combine vectors with respect to one and the same reference system. This poses a problem for us because the vector (blue) is defined with respect to the KKS . However, we need it with regard to the WCS .

There is a trick here: by subtracting the translation vector (red) from , the vector results again in the parallelogram as a difference vector (red). The vector searched for is parallel to the difference vector and thus maintains its direction with respect to the KKS . So you don't move the coordinate system, but the point and stay in the same reference system.

Then you can transfer the coordinates of the difference vector to the target system by multiplication with a general rotation matrix . The entire coordinate transformation can be formulated as follows in vector-matrix notation.

, With

And the components are written in detail:

, With

The indicators KKS and WKS should each show the assignment of the coordinates to a reference system.

For the next step it is useful to represent each row of the rotation matrix as a vector (with row index ). Note that by default a vector is defined as a column vector, which is why it is transposed to get a row vector.

Stage 3 - Summary of Transformation

If you now insert the equations for coordinate transformation from WCS to KKS into the above relationship equations, you get the collinearity equations . First in compact form:

and multiplied again:

Note: The indicators ( WKS , KKS and BKS ) were deliberately left out here in order to simplify the formula.

These collinearity equations represent the mapping process between the coordinates of a 3D point (in the world coordinate system) and its 2D point (in the image coordinate system) in a compact form. Because of the fraction, it is a non-linear relationship. However, using homogeneous coordinates, it is possible to formulate the relationship between the central projection in a linear manner (see projection matrix (computer vision) ).

Note: In the literature, the rotation matrix as described above is often not used. Instead, the matrix of the reverse rotation from the local to the global system ( KKS to WKS ) is used. This corresponds to the transposed matrix , which turns the row vectors of the matrix into column vectors. If you put this transposed matrix in the collinearity equations, then there are other indices of the rotation parameters , where the row index and the column index are interchanged, i.e. H. .

Variant 2 ( ) :

In addition, the collinearity equation is usually extended to the effect that a reference is made to a sensor coordinate system lying in the image plane (or to the fiducial mark system in the case of analog images). Ie, you add the coordinates of the main point. It should be noted, however, that the alignment of the axes between the sensor system and the image coordinate system change. In particular, the y-axis of the SKS is directed in the opposite direction to the BKS . In addition, the translation vector (coordinates of the main point) from the UCS to the SKS is replaced by the vector directed in the opposite direction, whereby (minus times minus results in plus) the coordinates of the main point are added.

Variant 3 (regarding SKS, ) :

Using the collinearity equation

This equation is used in many ways, especially in photogrammetry. It is used for camera calibration, the determination of the external orientation ( georeferencing ) and for the calculation of 3D models. The collinearity equation serves as the basic equation for a least squares adjustment . In principle, any number of correction terms can be added to this form of adjustment calculation, e.g. B. for the determination of distortion parameters during camera calibration. Because of this flexibility, the collinearity equation has a special meaning.

See also

literature

  • Karl Kraus : Photogrammetry, Volume 1 - Fundamentals and Standard Methods, Ferd. Dümmlers Verlag, Bonn 1997 (6th edition), ISBN 3-427-78646-3 .
  • Thomas Luhmann: Close-range photogrammetry - basics, methods and applications , Wichmann, Berlin and Offenbach 2010 (3rd edition), ISBN 978-3-87907-479-2