![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=1739439732-ovQ8NOuSFzI8RZauQxU2qtuWeEXHKcSN-0-78ffb86ab75035641fcfc6ee20195489)
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=1739439732-UFZsAZ1vXey48ZFg8jPGpcE3CWVNpZTy-0-1b7147be0a86a6b901e03d60364c31ec)
Figure 2.5: Rotated photo of the retina