What's wrong with this RGB to XYZ color space conversion algorithm?

后端 未结 6 1236
无人及你
无人及你 2020-12-29 06:35

My goal is to convert an RGB pixel into CIELab color space for some special calculations only possible in CIELab. For this, I must convert RGB to XYZ first, which is the rea

6条回答
  •  情话喂你
    2020-12-29 07:20

    The right values of this matrix is different slightly,the accurate one from "RGB/XYZ Matrices" in http://www.brucelindbloom.com

    sX = sRed * 0.4124564 + sGreen * 0.3575761 + sBlue * 0.1804375
    sY = sRed * 0.2126729 + sGreen * 0.7151522 + sBlue * 0.072175
    sZ = sRed * 0.0193339 + sGreen * 0.119192 + sBlue * 0.9503041
    

提交回复
热议问题