In this section, we will learn about different image-transformation techniques, such as rotation, translation, resizing, and masking a region of interest. Image transformations are used to correct distorted images or to change the perspective of an image. With regard to self-driving cars, there are lots of applications of image transformation. We have different cameras mounted in the car, and most of the time they are required to transform the image. Sometimes, by transforming the image, we allow the car to concentrate on an area of interest. We will also look at a project on behavioral cloning in Chapter 9, Implementation of Semantic Segmentation.
There are two types of image transformation:
- Affine transformationÂ
- Projective transformationÂ