- Intelligent Projects Using Python
- Santanu Pattanayak
- 71字
- 2021-07-02 14:10:49
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