| transform_random_rotation | R Documentation |
Rotate the image by angle
transform_random_rotation(
img,
degrees,
interpolation = 0,
expand = FALSE,
center = NULL,
fill = NULL,
resample
)
img |
A |
degrees |
(numeric vector of length 2 or numeric): Range of degrees to
select from. If |
interpolation |
(integer, optional): Interpolation mode. |
expand |
(logical, optional): Optional expansion flag. If |
center |
(numeric vector of length 2, optional): Optional center of
rotation, |
fill |
(numeric vector or numeric): Pixel fill value for area outside
the rotated image. If a single numeric value, the value is used for all
channels. Defaults to |
resample |
Deprecated. Use |
Other random_transforms:
transform_color_jitter(),
transform_random_affine(),
transform_random_crop(),
transform_random_erasing(),
transform_random_grayscale(),
transform_random_horizontal_flip(),
transform_random_perspective(),
transform_random_resized_crop(),
transform_random_vertical_flip()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.