pick_length: Measure objects in the image on click (Medir objetos na...

View source: R/pick_length.R

pick_lengthR Documentation

Measure objects in the image on click (Medir objetos na imagem ao clicar).

Description

Measure objects in the image on click (Medir objetos na imagem ao clicar).

Usage

pick_length(im,dpi=NULL,NumPoints=2,col="red")

Arguments

im

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

dpi

:Dots Per Inch - Number of pixels per inch in the image (Numero de pixels por polegadas na imagem)

NumPoints

: Number of points on the segment to be measured (Numero de pontos no segmento que se deseja medir).

col

: Font color (Cor da fonte).

Value

Returns the length of a segment in an image on click (Retorna o comprimento de um segmento em uma imagem ao clicar).

Author(s)

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

pick_color , pick_resolution

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.