jit.rgb2hsl Reference

Convert RGB to HSL

jit.rgb2hsl

Description

jit.hsl2rgb converts a 4 plane matrix of ARGB (alpha, red, green, blue) data to AHSL (alpha, hue, saturation, lightness) data. An offset and a scaling factor can be applied to the hue, saturation, and lightness data individually.

Examples

Matrix Operator

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 1 1 1 4 1 char float32 float64

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

hoffset [float]

The hue offset (default = 0.)

hscale [float]

The hue scaling (default = 1.) Hue scaling values above 1. wrap to 0.

loffset [float]

The lightness offset (default = 0.)

lscale [float]

The lightness scale (default = 1.) Lightness scaling values above 1. clip to 1.

soffset [float]

The saturation offset (default = 0.)

sscale [float]

The saturation scale (default = 1.) Saturation scaling values above 1. clip to 1.

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.colorspace
jit.hue
jit.hsl2rgb
jit.rgb2luma
jit.traffic