I am trying to convert a given Mat representing an RGB image with 8-bit depth to Lab using the function provided in the documentation:
Mat
I am not sure about João Abrantes's range on A and B.
The opencv documentation has clearly mentioned the CIE L*a*b*range.
CIE L*a*b*
8 bit images
Thus leading to a range of
0 <= L <= 255 0 <= a <= 255 0 <= b <= 255