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


Multiply the planar vector by a matrix


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.

For 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

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

Information for box attributes common to all objects


See Also

Name Description
jit.colorspace Convert between colorspaces
jit.hsl2rgb Converts HSL to RGB
jit.rgb2luma Converts RGB to monochrome (luminance)
jit.rgb2hsl Convert HSL to RGB