- 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:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/1fe912fc-2dba-41b7-abe9-03443e5a0be2.png?sign=1739629758-HS9fLziPKms6InoOPvFWU8DxRPSMZw8Q-0-f59604df3d3af76a57298df39acb9f60)
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:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/8e268fb7-87ef-4dc7-b478-4ae01ced9521.png?sign=1739629758-hff5BZ8i79Bfcy9Fw38sBdtVjlF0zJXX-0-f3555917fb784e95602f748ed3eaf6f0)
Figure 2.5: Rotated photo of the retina