I have a LAB image that I want to convert to RGB. When trying to convert an image from LAB colour space to RGB it works fine, but when I want to convert RGB->LAB, the luminance value for all pixels is 100, while the ab values for all pixels are 0. Anyone know why? This is the code I am using:
lab_img = cv2.cvtColor(rgb_img.astype(np.float32), cv2.COLOR_RGB2LAB)
I actually had a copy of an LAB image and tried to reverse the process, first converting said image to RGB (which worked fine) and then convert the result back to LAB (didn't work).