rotate.image {adimpro}R Documentation

Image Processing

Description

Rotate an image by 0, 90, 180 or 270 degrees.

Usage

rotate.image(img, angle = 90)

Arguments

img image data, that is an object of class "adimpro".
angle 0, 90, 180 or 270 degrees

Details

The function rotates the image img by 0, 90, 180 or 270 degrees. Any other value for degree will cause an exception.

Value

An object of class "adimpro" containing the rotated image.

Author(s)

Joerg Polzehl polzehl@wias-berlin.de

See Also

show.image

Examples

img <- read.image(system.file("img/wias.ppm",package="adimpro"))
X11(height=5,width=10)
par(mfrow=c(1,2))
show.image(img,main="Original Image")
img.rot <- rotate.image(img)
show.image(img.rot,main="Rotated Image")

[Package adimpro version 0.4.4 Index]