Geometric and photometric transformations
As discussed in Chapter 3, geometric transformations alter a picture’s geometry, such as by flipping, cropping, padding, rotating, or resizing it. For segmentation, when horizontally flipping an image, the same must be done for the mask. Pluto will show you how to flip an original and accompanying mask image; here is a sneak peek:
Figure 4.1 – Image segmentation horizontal flip
Many of the safe values discussed in Chapter 3 stay mostly the same. For example, if the picture’s subject is people or an urban cityscape, the classification augmentation can’t flip vertically because the prediction of people’s age or the city’s name relies on the picture not being upside down. However, segmentation aims to group or draw an outline of the people or cars. Thus, vertical flipping is acceptable.
The safe range needs further investigation for many real-world applications. For example...