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 lose all that color information and get a tensor with zero values and visualizing this image show a totally black image.
So, is there any way to change the 3 channel label/mask image to 1 channel image but not grayscale?
My professor ask me to do this…
Waiting for your responses asap