I have an numpy array containing a single pixel/color in floating point RGB. I need to convert this value to LAB, for which I am trying the following:
color = cv2.cvtColor(color.reshape((1,1,3)), cv2.COLOR_RGB2LAB).reshape((3))
Where color is:
array([137.38841, 161.38841, 65.38841], dtype=float32)
The resulting LAB is: [100. 0. 0.]
Which clearly isn;t correct as it should be close to: [62.667494977600484, 22.98637993404601, 46.1397720707445]
How do I convert the value to LAB?