Learn R Programming

imager (version 0.14)

imrotate: Rotate image by an arbitrary angle.

Description

Most of the time, the size of the image is modified.

Usage

imrotate(im, angle, interpolation = 1L, boundary = 0L)

Arguments

im
an image
angle
Rotation angle, in degrees.
interpolation
Type of interpolation. Can be { 0=nearest | 1=linear | 2=cubic }.
boundary
Boundary conditions. Can be { 0=dirichlet | 1=neumann | 2=periodic }.