Learn R Programming

ExpImage (version 0.10.1)

pick_color: Selecionar os valores de RGB em pixels (Selecting RGB values in pixels).

Description

Esta funcao retorna o valor de R, G e B no pixel selecionado. (This function returns the value of R, G and B at the selected pixel ).

Usage

pick_color(im, matrix = NULL)

Value

Esta funcao retorna o valor de R, G e B no pixel selecionado. (This function returns the value of R, G and B at the selected pixel ).

Arguments

im

Este objeto deve conter uma imagem no formato do EBImage (This object must contain an image in EBImage format ).

matrix

Deve ser uma matriz com 3 colunas correspondentes aos canais R, G e B. Os novos valores selecionados serao adicionados a essa matriz. (It must be a matrix with 3 columns corresponding to the R, G and B channels. The new selected values will be added to this matrix).

Author

Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)

See Also

segmentation_logit

Examples

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

#library(ExpImage)
#library(EBImage)
#Carregar imagem de exemplo
im=read_image(example_image(2),plot=TRUE)
pick_color(im)
}

Run the code above in your browser using DataLab