Learn R Programming

ExpImage (version 0.10.1)

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

Value

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

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

Author

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

pick_color , pick_resolution

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