Skip to content

What is the meaning of conversion from RGB to luma? #598

@kryptan

Description

@kryptan

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:

  1. 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.

  2. 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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions