Converts an image to the LAB color model.
Image
The input image. This image can be of any color model.
The output image in the LAB color model.
This function converts an image to the LAB color model, regardless of the color space of the input image.
Here is an example of the original color image:
And here is how the L, a and b channels look side by side.
Here is an example: