The following formula is used:
luma = 0.2126*R + 0.7152*G + 0.0722*B
It is not clear what luma here is supposed to mean.
I can see two explanations for this formula:
-
This is the same formula which is used in conversion from Rec. 709 RGB to YCbCr to find Y (luma) component. However it seems that it is assumed that Rgb pixel is in sRGB color space (although docs don't say anything about color spaces) and not in Rec. 709.
-
Coefficients are the same as in matrix to convert from linear sRGB to XYZ. If R, G and B values were in linear sRGB then the above formula would give the luminance value.
The above two cases do not apply and I don't see any other explanations for this .