![Intelligent Projects Using Python](https://wfqqreader-1252317822.image.myqcloud.com/cover/975/36698975/b_36698975.jpg)
上QQ阅读APP看书,第一时间看更新
Translation
For translation, the affine transformation matrix is the identity matrix, and the translation vector, b, has a nonzero value:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/73d49d1a-f974-40f0-9638-6ee27f574016.png?sign=1738847403-oX3cgiQlaWNBcmElcauRiGMqAT0zqg3m-0-30eebd784ec2d51b824755bb2ded2605)
For instance, for a translation of five pixel positions along the vertical direction and three pixel positions along the horizontal direction, we can use b= [5 3]T, with M as the identity matrix.
The following is an image translation of a retina by 24 pixel locations, along both the width and height of the image:
![](https://epubservercos.yuewen.com/759B01/19470382808830006/epubprivate/OEBPS/Images/d8fe4d81-04d8-481f-afdd-3a8295ab2a1c.png?sign=1738847403-zGfO5pLeB5V1qYBltBAiic8G8KCIiOpl-0-e53fc591d1459315d9f8b276b11cece6)
Figure 2.5: Image translation of the retina