In matplotlib,I was trying to read an RGB image and trying to convert it to grayscale
let the image file name be "image.png"
img = rgb2gray(imread('image.png'));
Even in the Matplotib tutorial they didn't cover it.
import matplotlib.image as mpimg
img = mpimg.imread('image.png')
then it will slice the array. but the thing is, its not the same thing as converting the RGB to grayscale from what I understand
I couldn't believe that matplotlib or numpy doesn't have inbuilt function for converting rgb to gray.So can anyone just tell me, how to convert an RGB image into grayscale in python ?