Learn R Programming

ExpImage (version 0.10.1)

rotate_image: Esta funcao rotaciona a imagem. (This function rotates the image .)

Description

Esta funcao permite rotacionar a imagem (This function allows rotate the image).

Usage

rotate_image(im,angle=NULL,BGcolor=c(0,0,0),plot=TRUE)

Value

Retorna uma imagem rotacionada (Returns a rotated image).

Arguments

im

Este objeto deve conter uma imagem no formato do EBImage (This object must contain an image in EBImage format ).

angle

Valor em graus (Degree value).

BGcolor

Vetor com os valores que preencherao o background (Vector with the values that will fill the background).

plot

Indica se sera apresentada (TRUE) ou nao (FALSE) (default) a imagem segmentada (Indicates whether the segmented image will be displayed (TRUE) or not (FALSE) (default)).

Author

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

edit_image

Examples

Run this code
#library(ExpImage)
#Carregar imagem de exemplo
im=read_image(example_image(2),plot=TRUE)

##rotacionar a imagem
im2=rotate_image(im,angle=80)
if (FALSE) {
# Not run: Depende da interacao com uma interface grafica
#(It depends on interaction with a graphical interface).

im2=rotate_image(im,angle=60,BGcolor=c(1,1,1))

im2=rotate_image(im)

}

Run the code above in your browser using DataLab