Most digital images intended for viewing are generally assumed to be in sRGB colour space, which is gamma-encoded. This means that a linear increase of value in colour space does not correspond to a linear increase in actual physical light intensity, instead following more of a curve. If we want to mathematically operate on colour values in a physically accurate way, we must first convert them to linear space by applying gamma decompression. After processing, gamma compression should be reapplied before display. The following C code demonstrates how to do so following the sRGB standard:
// 测试函数:验证排序正确性
,更多细节参见heLLoword翻译官方下载
Жители Санкт-Петербурга устроили «крысогон»17:52
扎克伯格2亿美元天价合同,终究没能留住这位基础模型顶级大牛。2月26日,OpenAI完成了一次教科书级的挖角,将加盟Meta仅七个月的大牛庞若鸣招至麾下。