Difference between revisions of "Homogeneous coordinates"
Line 43: | Line 43: | ||
So the multiplication of a homogeneous transformation matrix <math>\mathbf{T}</math> with a vector <math>\vec{\mathbf{q}}_0</math> in homogeneous coordinates leads to:<br/> | So the multiplication of a homogeneous transformation matrix <math>\mathbf{T}</math> with a vector <math>\vec{\mathbf{q}}_0</math> in homogeneous coordinates leads to:<br/> | ||
:<math> | :<math> | ||
+ | \vec{\mathbf{q}}_1= | ||
\left[\begin{array}{c} | \left[\begin{array}{c} | ||
x_1\\ | x_1\\ | ||
Line 49: | Line 50: | ||
1 | 1 | ||
\end{array}\right]= | \end{array}\right]= | ||
− | \mathbf{T} \cdot | + | \mathbf{T} \cdot \vec{\mathbf{q}}_0 = |
+ | \left[\begin{array}{cccc} | ||
+ | r_{11} & r_{12} & r_{13} & p_x\\ | ||
+ | r_{21} & r_{22} & r_{23} & p_y\\ | ||
+ | r_{31} & r_{32} & r_{33} & p_z\\ | ||
+ | 0 & 0 & 0 & 1 | ||
+ | \end{array}\right] \cdot | ||
\left[\begin{array}{c} | \left[\begin{array}{c} | ||
x_0\\ | x_0\\ | ||
y_0\\ | y_0\\ | ||
+ | z_0\\ | ||
1 | 1 | ||
\end{array}\right]= | \end{array}\right]= |
Revision as of 16:39, 13 June 2014
← Back: Rotation | Overview: Transformations | Next: Combinations of transformations → |
In this article three-dimensional space is regarded because it is usually used in robotics. Rotation of three-dimensional coordinates can be described by an 3-by-3 matrix. All the components of the matrix are multiplied with one of the three coordinates. So the transformation is dependent on the original coordinates. Translation however is actually a vector addition and so independent of the original coordinates (see subarticle about translation).
To be able to also apply a translation by matrix multiplication, an additional dimension is introduced. For vectors, the additional fourth component is always 1. So a three-dimensional vector in homogeneous coordinates looks a sfollows:
A homogeneous transformation matrix for three-dimensional space is a 4-by-4 matrix. consists of the 3-by-3 rotation matrix and a 3-by-1 translation vector combined with the last row of the identity matrix:
Let the components of the rotation matrix and the translation vector be denoted as follows:
So the multiplication of a homogeneous transformation matrix with a vector in homogeneous coordinates leads to:
As can be seen in the resulting vector, the components and are independent of the original coordinates and just added to the x- or the y-coordinate, respectively.