| transform_random_affine | R Documentation |
Random affine transformation of the image keeping center invariant
transform_random_affine(
img,
degrees,
translate = NULL,
scale = NULL,
shear = NULL,
interpolation = 0,
fill = 0,
resample,
fillcolor
)
img |
A |
degrees |
(numeric vector of length 2 or numeric): Range of degrees to
select from. If |
translate |
(numeric vector of length 2, optional): Numeric vector of
maximum absolute fraction for horizontal and vertical translations. For
example |
scale |
(numeric vector of length 2, optional): Scaling factor
interval, e.g. |
shear |
(numeric vector or numeric, optional): Range of degrees to
select from. If |
interpolation |
(integer or character, optional): Interpolation mode.
Supported values are |
fill |
(numeric vector or numeric): Fill color for the area outside the
transform. Default is |
resample |
Deprecated. Use interpolation instead. |
fillcolor |
Deprecated. Use fill instead. |
Other random_transforms:
transform_color_jitter(),
transform_random_crop(),
transform_random_erasing(),
transform_random_grayscale(),
transform_random_horizontal_flip(),
transform_random_perspective(),
transform_random_resized_crop(),
transform_random_rotation(),
transform_random_vertical_flip()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.