Learn R Programming

ExpImage (version 0.10.1)

pick_resolution: Get the dpi resolution on an image (Obter a resolução em dpi em uma imagem).

Description

Obter o numero de pixels por centimetros ou polegadas em uma imagem (Get the number of pixels per centimeters or inches in an image).

Usage

pick_resolution(im,inches=NULL,centimeters=NULL,several=TRUE,col="red")

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

inches

:reference object size in inches (tamanho do objeto de referencia em polegadas).

centimeters

:reference object size in centimeters (tamanho do objeto de referencia em centimetros).

several

:TRUE: If you want to get the DPI from the average of several measurements (TRUE: Se deseja obter o DPI a partir da média de várias medidas ).

col

: Font color (Cor da fonte).

Author

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

pick_color , pick_length

Examples

Run this code
if (FALSE) {
# Not run: Depende da interacao com uma interface grafica
#(It depends on interaction with a graphical interface).

im=read_image(example_image(3),plot=TRUE)
dpi=pick_resolution(im,centimeters=8.5)
dpi$dpi
pick_length(im,dpi = dpi$dpi)

}

Run the code above in your browser using DataLab