Home Image Transformation
Post
Cancel

Image Transformation

What is Image Transformation?

Image transformation performs two role:

  • Image translation : image translation simply shifts the position of an image.
  • Image rotation : image rotation makes the image rotate by $\theta$.


Image translation



To do the image translation, we can use
cv2.warpAffine(image, T, (width, height)) where




Image rotation



To do the image rotation, we can use
cv2.getRotationMatrix2D(rotation_center_x, rotation_centery, angle of rotation, scale) where





Implementation

Image transformation



This post is licensed under CC BY 4.0 by the author.