#Abrindo uma imagem de exemplo
im=read_image(example_image(10),plot=TRUE)
b=gray_scale(im,method = "b",plot=TRUE)
raiz=segmentation(b,threshold = 0.62,selectHigher = TRUE,plot=TRUE)
raiz2=erode_image(raiz,n = 1,plot = TRUE)
Run the code above in your browser using DataLab