rotate.image {adimpro} | R Documentation |
Rotate an image by 0, 90, 180 or 270 degrees.
rotate.image(img, angle = 90)
img |
image data, that is an object of class "adimpro". |
angle |
0, 90, 180 or 270 degrees |
The function rotates the image img
by 0, 90, 180 or 270
degrees. Any other value for degree
will cause an exception.
An object of class "adimpro" containing the rotated image.
Joerg Polzehl polzehl@wias-berlin.de
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")