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

jit.traffic Reference

Multiply the planar vector by a matrix

jit.traffic

Description

The jit.traffic object takes an input matrix and multiplies its cells using an N x N+1 float32 matrix (where N is the planecount of the input matrix). The left input matrix can be of any type.

Examples

Discussion

Example: for an input cell (a, r, g, b), an output cell (A, R, G, B) and a multiplicaton matrix m0...m19 (4 X 5 float32 matrix) the object multiplies using the following formula:
A = m0*a + m4*r + m8*g + m12*b + m16
R = m1*a + m5*r + m9*g + m13*b + m17
G = m2*a + m6*r + m10*g + m14*b + m18
B = m3*a + m7*r + m12*g + m15*b + m19

Matrix Operator

matrix inputs:2, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
in2 adapt 0 0 0 1 1 char long float32 float64
out n/a 1 1 1 1 1 char long float32 float64

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

Common Box Attributes

See Also

Name Description
jit.colorspace
jit.hsl2rgb
jit.rgb2luma
jit.rgb2hsl