Intelligent Projects Using Python
上QQ阅读APP看书,第一时间看更新

Rotation 

The following is the affine transformation matrix for rotation, where θ represents the angle of rotation:

The translation vector, b, is zero, in this case. We can get rotation followed by translation by selecting a non-zero b.

As an example, the following image shows a photo of a retina, and then the same photo, rotated 90 degrees:

Figure 2.5: Rotated photo of the retina