RGB to GrayScale

This example illustrates RGB to Grayscale Conversion

using ImageCore, TestImages

rgb_image = testimage("lighthouse")

I = Gray.(rgb_image) converts an RGB image to Grayscale.

gray_image = Gray.(rgb_image)
mosaicview(rgb_image, gray_image; nrow = 1)