I need an help to convert an array of rgb values (3 channels) into a single dimension grayscale array. Thank you so much.
I need an help to convert an array of rgb values (3 channels) into a single dimension grayscale array. Thank you so much.
If you are using PIL or Pillow to hold your RGB values as an image, the conversion is trivial:
gray_image = rgb_image.convert('L')