Learn R Programming

ExpImage (version 0.10.1)

square_image: Transform the square image (Transforme a imagem quadrada).

Description

Transforms the image square by placing borders at the edges (Transforma a imagem quadrada colocando bordas nas margens).

Usage

square_image(im,r=1,g=1,b=1,plot=FALSE)

Value

Returns the resolution in DPI of an image. (Retorna a resolução em uma imagem).

Arguments

im

:Image in ExpImage format (Imagem no formato do ExpImage).

r

:Value from 0 to 1 corresponding to the Red band (Valor de 0 a 1 correspondente a banda de Vermelho).

g

:Value from 0 to 1 corresponding to the Green band (Valor de 0 a 1 correspondente a banda de Verde).

b

:Value from 0 to 1 corresponding to the Blue band (Valor de 0 a 1 correspondente a banda de Azul).

plot

:TRUE if you want to see the image resized (TRUE se desejar ver a imagem redimensionada).

Author

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

pick_color , pick_length

Examples

Run this code
im=read_image(example_image(10),plot=TRUE)
square_image(im,r=0,g=0,b=1,plot=TRUE)

Run the code above in your browser using DataLab