Converts an image to the HLS color model.
Image
The input image. This image can be of any color model.
The output image in the HLS color model.
This function converts an image to the HLS 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 hue, lightness and saturation channels look side by side.
Here is an example: