![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=1738827946-jIRvLyAVADeEsZfle2tG4WUs4G6Z3KoO-0-dffd3d9006ca97c1caf371016edd7717)
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=1738827946-yJjMPPmqB727InqgDgk8jKM6WdP7wMuU-0-38a93b488db27377733f62400abb240e)
Figure 2.5: Image translation of the retina