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

jit.colorspace Reference

Convert between colorspaces

jit.colorspace

Description

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.

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

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

input [symbol]

The name of the colorspace to convert from (default = RGB)

Possible values:

'RGB'
'RetinalCone'
'XYZ'
'UVW'
'uvY'
'xyY'
'U*V*W*'
'S0W*'
'L*HoC*'
'YIQ'
'YUV'
'RGBcie'
'RGBsmpte'
'HSV'
'HLS'
'IHS'
'L*a*b*'
'L*u*v*'
'CMY'
'CMYK'
'KCMY'
'I1I2I3'

output [symbol]

The name of the colorspace to convert to (default = RGB)
The options are the same as for the input attribute.

Possible values:

'RGB'
'RetinalCone'
'XYZ'
'UVW'
'uvY'
'xyY'
'U*V*W*'
'S0W*'
'L*HoC*'
'YIQ'
'YUV'
'RGBcie'
'RGBsmpte'
'HSV'
'HLS'
'IHS'
'L*a*b*'
'L*u*v*'
'CMY'
'CMYK'
'KCMY'
'I1I2I3'

Common Box Attributes

See Also

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