Convert to HLS

Converts an image to the HLS color model.

Inputs

Image (Type: Image)

The input image. This image can be of any color model.

Outputs

Hls (Type: Image)

The output image in the HLS color model.

Comments

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.

Sample

Here is an example: