jit.colorspace Convert between colorspaces

The jit.colorspace object converts a 4-plane char matrix between two different colorspaces. Output matrices are always 4-plane char, even if the colorspace is normally described in a different format. The alpha channel (plane 0) remains untouched in all conversions except for the KCMY colorspace.

Matrix Operator: in[1] out[1]
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in n/a n/a n/a n/a n/a n/a n/a
out n/a yes yes yes 4 all char

Attributes:
Name Type Description
input symbol The name of the colorspace to convert from (default = RGB)
Currently supported colorspaces are:
RGB
RetinalCone
XYZ
UVW
uvY
xyY
UVW
S0W
LHoC
YIQ
YUV
RGBcie
RGBsmpte
HSV
HLS
IHS
Lab
Luv
CMY
KCMY (where black is stored in the alpha channel)
I1I2I3
output symbol The name of the colorspace to convert to (default = RGB)
The options are the same as for the input attribute.

Example:

See Also:
jit.rgb2luma, jit.hsl2rgb, jit.traffic, jit.rgb2hsl