View source: R/open_image_rscript.R
rgb_2gray | R Documentation |
convert an RGB image to Gray
rgb_2gray(RGB_image)
RGB_image |
a 3-dimensional array where the third dimension is equal to 3 |
This function converts an RGB image to gray
a matrix
Lampros Mouselimis
path = system.file("tmp_images", "1.png", package = "OpenImageR")
image = readImage(path)
gray = rgb_2gray(image)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.