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


Converts RGB to monochrome (luminance)


The jit.rgb2luma object converts a 4-plane char ARGB (alpha, red, green, blue) matrix into a 1-plane char monochrome matrix containing the luminosity of the original matrix using the equation L = (.299 * R value) + (.587 * G value) + (.114 * B value).

Matrix Operator

matrix inputs:1, matrix outputs:1
Name IOProc Planelink Typelink Dimlink Plane Dim Type
out n/a 0 1 1 1 1 char

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


Name Type g/s Description
ascale float The alpha scaling factor (default = 0.)
bscale float The blue scaling factor (default = 0.114)
gscale float The green scaling factor (default = 0.587)
rscale float The red scaling factor (default = 0.299)

Information for box attributes common to all objects


See Also

Name Description
jit.colorspace Convert between colorspaces
jit.hue Rotate hue
jit.hsl2rgb Converts HSL to RGB
jit.rgb2hsl Convert HSL to RGB
jit.traffic Multiply the planar vector by a matrix
Tutorial 29: Using the Alpha Channel Tutorial 29: Using the Alpha Channel