TunAugmentor.transformations.rotations module

class TunAugmentor.transformations.rotations.Identity

Bases: TunAugmentor.transformations.basic_transform.BasicTransform

Does not change the input images

class TunAugmentor.transformations.rotations.RandomRotation90(factor=1)

Bases: TunAugmentor.transformations.basic_transform.BasicTransform

Rotates the image by 90 degrees, from 0 to 3 times

factorint

Number of times the image will be rotated. You can choose a value between 0 or 3 or leave it random if you don’t specify.

class TunAugmentor.transformations.rotations.Rotation(angle)

Bases: TunAugmentor.transformations.basic_transform.BasicTransform

Rotates the image by angle using a pivot point

angle: float

angle in degrees

class TunAugmentor.transformations.rotations.Transpose

Bases: TunAugmentor.transformations.basic_transform.BasicTransform

Transposes the image.