![Intelligent Projects Using Python](https://wfqqreader-1252317822.image.myqcloud.com/cover/975/36698975/b_36698975.jpg)
上QQ阅读APP看书,第一时间看更新
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=1738827082-3TlOHQPj2W8GVwtTfZqHRSvzBEeCQg4V-0-caa5ad64d219c08e29d874bb8deda0b7)
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=1738827082-FUWoYhQt35EO7cn4ctgk1Pr0iRMHCnOb-0-799e2e3b64f568225228029f5047c192)
Figure 2.5: Rotated photo of the retina