Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在维基百科上找到了一个公式,其中显示了转换为的RGB公式Grayscale。如果收到线性灰色阴影是可以理解的。压缩灰色阴影的公式尚不清楚。
RGB
Grayscale
是什么意思:1.055, 1/2.4 (I think 2.4 - gray gamma, but why 2.4 not 2.2?), 0.055... 和其他系数。我没有找到任何有关此的信息。
1.055
1/2.4 (I think 2.4 - gray gamma, but why 2.4 not 2.2?)
0.055
“<a href="https://www.w3.org/Graphics/Color/sRGB" rel="nofollow noreferrer">互联网的标准默认色彩空间”中给出的原因是:
上述方程的效果是紧密拟合带有轻微偏移的简单伽马 2.2 曲线,以允许整数数学中的可逆性。
我的解释是,当使用整数变量(例如,不是浮点数)时,公式更容易计算,这在当时很重要。