I have this code that converts an image from RGB space to HSI space:
import numpy as np import imageio from matplotlib import pyplot as plt def RGB_TO_HSI(img):