3D Transformations
Three dimensional transformation is very useful and important in 3D image analysis, 3D reconstruction and Robot pose analysis.
Three dimensional geometric transformation includes translation transformation, scale transformation and rotation transformation. Three dimensional translation transformation and scale transformation can be regarded as the generalization of two-dimensional transformation, but rotation transformation is more complex.
1. Transformation Matrix
Similar to two dimensional geometric transformation, we also use homogeneous coordinates to describe the coordinates and transformation of each point in three-dimensional space. At this time, the transformation matrix describing the spatial three-dimensional transformation is in the form of 4 * 4.
[ a 11 a 21 a 31 p x a 12 a 22 a 32 p y a 13 a 23 a 33 p z t x t y t z s ] \begin{bmatrix} \begin{array}{ccc:c} a_{11} & a_{21} & a_{31} & p_x \\ a_{12} & a_{22} & a_{32} & p_y \\ a_{13} & a_{23} & a_{33} & p_z \\ \hdashline t_x & t_y & t_z & s \end{array} \end{bmatrix} ⎣⎢⎢⎡a11a12a13txa21a22a23tya31a32a33tzpxpypzs⎦⎥⎥⎤
Among them, [ a 11 a 21 a 31 a 12 a 22 a 32 a 13 a 23 a 33 ] \begin{bmatrix} a_{11} & a_{21} & a_{31} \\ a_{12} & a_{22} & a_{32} \\ a_{13} & a_{23} & a_{33} \end{bmatrix} ⎣⎡a11a12a13a21a22a23a31a32a33⎦⎤generates transformations such as scaling, rotation and staggered tangent by axis, [ p x p y p z ] \begin{bmatrix} p_x \\ p_y \\ p_z \end{bmatrix} ⎣⎡pxpypz⎦⎤generates translation transformation, [ t x t y t z ] \begin{bmatrix} t_x & t_y & t_z \end{bmatrix} [txtytz]generates projection transformation, and [ s ] \begin{bmatrix} s \end{bmatrix} [s]generates overall scaling transform.
2. Translation Transformation
![](https://i-blog.csdnimg.cn/blog_migrate/71eddbb2de777582654d9950e8f32260.png#pic_center)
If the spatial translation amount is ( t x , t y , t z ) \lparen{t_x, t_y, t_z}\rparen (tx,ty,tz), the translation transformation is
{ x ′ = x + t x y ′ = y + t y z ′ = z + t z \begin{cases} x' = x+t_x \\ y'=y+t_y \\ z'=z+t_z \end{cases} ⎩⎪