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

jit.rgb2luma Reference

Converts RGB to monochrome (luminance)

jit.rgb2luma

Description

jit.rgb2luma 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).

Examples

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

More about Matrix Operators

The Jitter MOP

MOP Arguments

MOP Attributes

MOP Messages

Attributes

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)

Common Box Attributes

See Also

Name Description
Working with Video in Jitter Working with Video in Jitter
jit.colorspace
jit.hue
jit.hsl2rgb
jit.rgb2hsl
jit.traffic
Tutorial 29: Using the Alpha Channel Tutorial 29: Using the Alpha Channel