rotate.image: Image Processing

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/edges.R

Description

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

Usage

1
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.

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.

Value

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

Author(s)

Karsten Tabelow tabelow@wias-berlin.de and Joerg Polzehl polzehl@wias-berlin.de

See Also

show.image

Examples

1
## Not run: demo(manipulate)

Example output

Loading required package: awsMethods

Use the function setCores() to change the number of CPU cores.

sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Reading RAW images requires to install dcraw, see 

    http://cybercom.net/~dcoffin/dcraw/ for LINUX and http://www.insflug.org/raw/ 
    for MAC OS and Windows 

Warning message:
In fun(libname, pkgname) : could not determine path to Imagemagick 

    please set the correct path manually using 

    'Sys.setenv(ImageMagick='path2imagemagick')'

adimpro documentation built on Jan. 16, 2021, 5:32 p.m.