I am having a 3 channel image, in which each channel has some information encoded in the form of colors. I want to convert it to a single channel image with all the information retained. When I convert it into 1 channel (using grayscale) I loose all that color information and get a tensor with zero values and visualizing this image show a total black image.
So, is there any way to change the 3 channel image to 1 channel image but not grayscale ?