plot_indexes: Function to plot multiple indices (funcao para plotar varios...

View source: R/plot_indexes.R

plot_indexesR Documentation

Function to plot multiple indices (funcao para plotar varios indices)

Description

Function to plot multiple indices (funcao para plotar varios indices).

Usage

plot_indexes(im,indexes=c("r","g","b","rg","rb","gb","rgb",
"r/rgb","g/rgb","b/rgb",
"BI","BIM","SCI","GLI","HI",
"NGRDI","SI","VARI","HUE","MGVRI","GLI",
"MPRI","RGVBI","ExG","VEG"),
NumberCores="all")

Arguments

im

:

indexes

:indices que se deseja testar (indexes you want to test):
"r" = extrair a banda de vermelho
"g" = extrair a banda de verde
"b" = extrair a banda de azul
"rg" = considera a media da banda de vermelho e verde: (r+g)/2
"rb" = considera a media da banda de vermelho e azul: (r+b)/2
"gb" = considera a media da banda de verde e azul: (g+b)/2
"rgb" = considera a media das 3 bandas: (r+g+b)/3
"r/g"=r/g
"r/b"=r/b
"g/r"=g/r
"g/b"=g/b
"b/r"=b/r
"b/g"=b/g
"S"=((R+G+B)-3*B)/(R+G+B) "BI"=sqrt((r^2+g^2+b^2)/3)
"BIM"=sqrt((2r+2g+2b)/3)
"SCI"=(r-g)/(r+g)
"GLI"=(2g-r-b)/(2g+r+b)
"HI"=(2r-g-b)/(g-b)
"NGRDI"=(g-r)/(g+r)
"SI"=(r-b)/(r+b)
"VARI"=(g-r)/(g+r-b)
"HUE"=atan(2(b-g-r)/30.5(g-r))
"MGVRI"=(g^2-r^2)/(g^2+r^2)
"GLI"=(2g-r-b)/(2g+r+b)
"MPRI"=(g-r)/(g+r)
"RGVBI"=(g-(br))/(g^2(br))
"ExG"=(2*g-r-b)
"VEG"=(g/(g^0.66667*b^0.66667))

NumberCores

Indica o numero de cores a serem utilizados no processamento. Pode ser um valor numerico. Se for 'ALL' sera considerado o numero maximo de cores do PC. (Indicates the number of colors to be used in processing. It can be a numerical value. If it is 'ALL' it will be considered the maximum number of PC cores).

See Also

gray_scale

Examples


#Carregar imagem de exemplo
im=read_image(example_image(2),plot=TRUE)
plot_indexes(im,NumberCores=2)


ExpImage documentation built on Jan. 6, 2023, 1:24 a.m.