def rgb_to_lab(x): """Converts RGB image to the lab colorspace [0; 100] [-127; 128] [-128; 127].""" return rgb2lab(x)