jit.scalebias Multiply and add

The jit.scalebias object scales the values of a 4 plane input matrix of type char (ARGB) and adds to an offset value (bias).

Matrix Operator: in[1] 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
out n/a yes yes yes 4 all char

Attributes:
Name Type Description
abias float The alpha bias (offset) value (default = 0.)
ascale float The alpha scale value (default = 1.)
bbias float The blue bias (offset) value (default = 0.)
bias (set) float The bias (offset) value for all colors if channel summing is set using the mode 1 message (default = 0.)
bscale float The blue scale value (default = 1.)
gbias float The green bias (offset) value (default = 0.)
gscale float The green scale value (default = 1.)
interp int Offset interpolation flag (default = 0)
mode int Channel summing mode (default = 0 (normal))
0 = normal
1 = sum all the channels together
rbias float The red bias (offset) value (default = 0.)
rscale float The red scale value (default = 1.)
scale (set) float The all scale value if channel summing is set using the mode 1 message (default = 0.)

Example:

See Also:
jit.charmap, jit.map, jit.op, jit.rgb2luma