TunAugmentor.transformations.translations module
- class TunAugmentor.transformations.translations.Translation(shift_along_x, shift_along_y, color_value)
Bases:
TunAugmentor.transformations.basic_transform.BasicTransform
Translates the image along the y-axis and colors the remaining part of the image with the chosen color.
- shift_along_xint
Distance of the shift along x-axis.
- shift_along_yint
Distance of the shift along y-axis.
- color_valueint
The chosen color for the remaining part of the image.
- class TunAugmentor.transformations.translations.TranslationX(shift_along_x, color_value)
Bases:
TunAugmentor.transformations.basic_transform.BasicTransform
Translates the image along the x-axis then adds a padding corresponding to the color value chosen.
- shift_along_xint
Distance of the shift along x-axis.
- color_valueint
The chosen color for the padding
- class TunAugmentor.transformations.translations.TranslationY(shift_along_y, color_value)
Bases:
TunAugmentor.transformations.basic_transform.BasicTransform
Translates the image along the y-axis and colors the remaining part of the image with the chosen color.
- shift_along_yint
Distance of the shift along y-axis.
- color_valueint
The chosen color for the remaining part of the image.