pick_circle {ExpImage} | R Documentation |
Segmentation with the shape of a circle by clicking on the image (Segmentacao com o formato de um circulo clicando em na imagem)
Description
With this function it is possible to make a segmentation with the shape of a circle by clicking on the image (Com essa funcao e possivel fazer uma segmentacao com o formato de um circulo clicando em na imagem).
Usage
pick_circle(im,num.points=NULL, col="red")
Arguments
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) |
Value
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).
Author(s)
Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)
See Also
segmentation
, segmentation_logit
, segmentation_logitGUI
Examples
## Not run:
# Not run: Depende da interacao com uma interface grafica
#(It depends on interaction with a graphical interface).
im=read_image("https://raw.githubusercontent.com/AlcineiAzevedo/Files_ExpImage/main/PlacaPetri.jpg",
plot=TRUE)
seg=pick_circle(im)
im2=extract_pixels(im,target = seg,plot=TRUE)
## End(Not run)