View source: R/summary_color.R
summary_color | R Documentation |
Summarize the colors present in the segmented area of an image (Sumarizar as cores presentes na area segmentada de uma imagem).
summary_color(im,
segmentation,
return=c("image","summary","histogram1","histogram2","histogram3"))
im |
:This object must contain an image in EBImage format (Este objeto deve conter uma imagem no formato do EBImage). |
segmentation |
Binary matrix obtained of a segmentation(matrix binaria obtida por uma segmentacao). |
return |
: Indicates the result you want to obtain from the segmented area in the image ("image","summary","histogram1","histogram2","histogram3") (Indica o resultado que se deseja obter a partir da area segmentada na imagem). |
Returns an image with the colors present in the segmented area, measures that summarize these colors or histograms (Retorna uma imagem com as cores presentes na área segmentada, medidas que resumem essas cores ou histogramas).
segmentation , histogram_image
im=read_image(example_image(3),plot=TRUE)
r=gray_scale(im,method = "r")
seg=segmentation(img.band = r,threshold = 0.3,selectHigher = FALSE,fillHull = FALSE,plot = TRUE)
summary_color(im,seg,return = "image")
summary_color(im,seg,return = "summary")
summary_color(im,seg,return = "histogram1")
summary_color(im,seg,return = "histogram2")
summary_color(im,seg,return = "histogram3")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.