Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rotate_xy

Rotate image by an arbitrary angle, around a center point.


Description

Rotate image by an arbitrary angle, around a center point.

Usage

rotate_xy(im, angle, cx, cy, interpolation = 1L, boundary_conditions = 0L)

Arguments

im

an image

angle

Rotation angle, in degrees.

cx

X-coordinate of the rotation center.

cy

Y-coordinate of the rotation center.

interpolation

Interpolation type. 0=nearest | 1=linear | 2=cubic

boundary_conditions

Boundary conditions. 0=dirichlet | 1=neumann | 2=periodic

Examples

rotate_xy(boats,30,200,400) %>% plot
rotate_xy(boats,30,200,400,boundary=2) %>% plot

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.