powered by
convert an RGB image to Gray
rgb_2gray(RGB_image)
a 3-dimensional array
a matrix
This function converts an RGB image to gray
# NOT RUN { path = system.file("tmp_images", "1.png", package = "OpenImageR") image = readImage(path) gray = rgb_2gray(image) # }
Run the code above in your browser using DataLab