Learn R Programming

adimpro (version 0.7.7)

rotate.image: Image Processing

Description

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

Usage

rotate.image(img, angle = 90, compress=NULL)

Arguments

img
image data, that is an object of class "adimpro".
angle
0, 90, 180 or 270 degrees
compress
store result as compressed image if compress=TRUE. compress=NULL uses the same format as the original object.

Value

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

Details

The function rotates the image img by 0, 90, 180 or 270 degrees. Any other value for degree will cause an exception. The returned object contains an additional component rotate determining the rotation.

See Also

show.image

Examples

Run this code
demo(manipulate)

Run the code above in your browser using DataLab