View source: R/pick_segmentation.R
pick_segmentation | R Documentation |
With this function it is possible to segment objects by clicking on their boundaries (Com essa funcao e possivel segmentar objetos clicando em suas delimitacoes).
pick_segmentation(im,num.points=NULL, col="red")
im |
:This object must contain an image in EBImage format (Este objeto deve conter uma imagem no formato do EBImage). |
num.points |
:Maximum number of points to be used to delimit the object (Número maximo de pontos a ser utilizado para delimitar o objeto). |
col |
: Color of points and lines that delimit the object (Cor dos pontos e linhas que delimitarão o objeto) |
Returns an image with pixel values equal to 1(white) for the foreground and 0 (black) for the foreground (Retorna uma imagem com valores de pixel igual a 1( branco) para o foreground e 0 (preto) para o foreground).
Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)
segmentation
, segmentation_logit
, segmentation_logitGUI
## Not run:
# Not run: Depende da interacao com uma interface grafica
#(It depends on interaction with a graphical interface).
require(ExpImage)
im=read_image(example_image(3),plot=TRUE)
mask=pick_segmentation(im)
im2=extract_pixels(im,mask,plot = TRUE,valueTarget = 1)
crop_image(im2,segmentation = mask,plot=TRUE)
im3=extract_pixels(im,mask,plot = TRUE,valueTarget = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.