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

View source: R/pick_resolution.R

pick_resolutionR Documentation

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

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

Value

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

Author(s)

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

pick_color , pick_length

Examples

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


## End(Not run)


ExpImage documentation built on Jan. 6, 2023, 1:24 a.m.