Converts an image in the RGB color model to monochrome.
Image
The input image.
The output image.
This function converts an image in the RGB color model to a monochrome image.
Here is an example of the original color image:
And here is the same image converted to monochrome:
Here is an example that converts a color image to monochrome.