View source: R/linearize_image.R
linearize_image | R Documentation |
This function linearize matrix image (Esta funcao lineariza a imagem).
linearize_image(im,exclude=FALSE)
im |
:Image object (Imagem com o objeto). |
exclude |
:Logical value, if TRUE, pixels with zero will be excluded (Valor logico, se for TRUE o valor zero sera excluido da matriz). |
Return images size (Retorna o tamanho das imagens).
Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)
gray_scale
, read_image
im1=read_image(example_image(2),plot=TRUE) B=gray_scale(im = im1,method = "b",plot=TRUE) plot_image(B,col=3) plot_image(B,col=2,axis = TRUE) m=segmentation(B,treshold =0.38,selectHigher = FALSE,fillHull =TRUE,plot = TRUE ) Lin1=linearize_image(im =im1) head(Lin1) info_image(Lin1) Lin2=linearize_image(im=m) head(Lin2) info_image(Lin2) Lin3=linearize_image(im=m,exclude = TRUE) head(Lin3) info_image(Lin3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.