jit.traffic 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: in[2] 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
in2 adapt no no no all all char long float32 float64
out n/a yes yes yes all all char long float32 float64

Example:

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