powered by
rotateScale rotates (clockwise) and scales an image using the warpAffine function.
rotateScale
warpAffine
rotateScale( image, center = (dim(image)[2:1] - 1)/2, angle = 90, scale = 1, ... )
An Image object.
Image
A 2-elements vector indicating the location (row, column) of the center of the rotation in the source image. It defaults to the center of the image.
A numeric value indicating the rotation angle in degrees (default: 90).
A numeric value indicating an isotropic scale factor (default: 1).
Additional parameters for the warpAffine function.
# NOT RUN { img <- image(system.file("sample_img/balloon1.png", package = "Rvision")) img_rotated <- rotateScale(img, c(50, 50), 45, 1) # }
Run the code above in your browser using DataLab