| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43673761
这篇 Hacker News 帖子讨论了一篇文章,该文章调查红橙色袋子是否会使橙子看起来更橙。几位评论者指出了该方法的缺陷,包括使用 sRGB 色彩空间平均像素颜色(非线性且可能歪曲结果)、不受控的照明条件以及相机的自动白平衡可能会补偿红色袋子的影响。一些人建议转换为线性色彩空间,如 HSL 或 CieLAB,或使用 PNG 图片以避免色度子采样。 许多人认为实验存在缺陷,因为人类的色彩感知很复杂,受环境影响,而不仅仅是平均像素值。他们引用了 identical-colors-big.jpg 错觉作为这种效应的例子。其他人批评照片中橙子的颜色看起来较暗,认为显示器的颜色设置不准确。一些人指出所使用的橙子(德科蓬/清见柑橘)是杂交品种,可能不具有典型性。橙子的高价也受到了讨论。总的基调是批评性的但建设性的,提出了改进实验的建议,并强调了在与颜色相关的研究中考虑人类感知的重要性。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
sRGB is the familiar color space you all know and love, it's what your display uses, and it's what has those RGB numbers between 0 and 255. But it's not a linear color space.
First think of values as being between 0 and 1 instead of 0 and 255. To change sRGB to Linear, do X^2.2 (close to squaring the value). To change Linear back to sRGB, do X^(1/2.2) (close to a square root).
In Linear RGB, a value of 0.5 is halfway between black and white. You can put a stripe or checkerboard pattern next to the color value, and it will appear to be the same brightness. But in sRGB, a value of 0.5 is much darker. Linear RGB of 0.5 is roughly equivalent to sRGB of 0.73.
The actual method of conversion involves a complicated curve that isn't continuous, using X^2.2 is still an approximation.
reply