| transform_affine | R Documentation |
Apply affine transformation on an image keeping image center invariant
transform_affine(
img,
angle,
translate,
scale,
shear,
interpolation = 0,
fill = NULL,
resample,
fillcolor,
center = NULL
)
img |
A |
angle |
(numeric): Rotation angle value in degrees, counter-clockwise. |
translate |
(integer vector of length 2): Horizontal and vertical translations (post-rotation translation). |
scale |
(numeric): Overall scale. |
shear |
(numeric vector or numeric): Shear angle value in degrees
between |
interpolation |
(integer or character): Interpolation mode.
Supported values are |
fill |
Fill color for area outside the transform. Default is |
resample |
Deprecated. Use |
fillcolor |
Deprecated. Use |
center |
(numeric vector of length 2, optional): Optional center of
rotation, |
Other unitary_transforms:
transform_adjust_brightness(),
transform_adjust_contrast(),
transform_adjust_gamma(),
transform_adjust_hue(),
transform_adjust_saturation(),
transform_center_crop(),
transform_convert_image_dtype(),
transform_crop(),
transform_grayscale(),
transform_hflip(),
transform_linear_transformation(),
transform_normalize(),
transform_pad(),
transform_perspective(),
transform_resize(),
transform_rgb_to_grayscale(),
transform_rotate(),
transform_to_tensor(),
transform_vflip()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.