


# https://www.globalsino.com/ICs/page4853.html
# Display red, green, and blue (rgb) channels of an image

from PIL import Image

red_image = Image.open(r"C:\GlobalSino\images\GasSensors.PNG")

red_image_rgb = red_image.convert("RGB")
red_image_rgb.show()
rgb_pixel_value = red_image_rgb.getpixel((200,200))
print(rgb_pixel_value)


red_image_rgb_L = red_image.convert("L")
red_image_rgb_L.show()
rgb_pixel_value_L = red_image_rgb_L.getpixel((200,200))
print(rgb_pixel_value_L)

red_image_rgb_1 = red_image.convert("1")
red_image_rgb_1.show()
rgb_pixel_value_1 = red_image_rgb_1.getpixel((200,200))
print(rgb_pixel_value_1)
