tfm.vision.augment.rotate

Stay organized with collections Save and categorize content based on your preferences.

Rotates the image by degrees either clockwise or counterclockwise.

image An image Tensor of type uint8.
degrees Float, a scalar angle in degrees to rotate all images by. If degrees is positive the image will be rotated clockwise otherwise it will be rotated counterclockwise.

The rotated version of image.