A newer version of Max is available. Click here to access the latest version of this document.

jit.colorspace

Convert between colorspaces

Description

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

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

Information for Jitter Matrix Operator (MOP) messages and attributes to this object

Attributes

Name Type g/s 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.

Information for box attributes common to all objects

Examples

See Also

Name Description
jit.rgb2luma Converts RGB to monochrome (luminance)
jit.hsl2rgb Converts HSL to RGB
jit.traffic Multiply the planar vector by a matrix
jit.rgb2hsl Convert HSL to RGB