Spectrum to XYZ to sRGB

如何将频谱响应转换为对应的RGB显示值:

首先要在频率功率分布(SPD)曲线的基础上,分别使用X/Y/Z三个频率匹配曲线(spectral matching curves,又名CIE XYZ Color Matching Functions)计算卷积,分别求得三个系数,这个三个系数即为该SPD所对应的XYZ值。然后再根据求得的XYZ值,进行线性矩阵计算,求得对应的linear RGB值。最后针对linear RGB进行Gamma Correction,得到最终的sRGB显示值。

  • CIE色彩空间:https://en.wikipedia.org/wiki/CIE_1931_color_space
  • sRGB色彩空间:https://en.wikipedia.org/wiki/SRGB
  • RGB Working Space Spec: http://www.brucelindbloom.com/index.html?WorkingSpaceInfo.html
  • RGB to XYZ: http://www.brucelindbloom.com/index.html?Eqn_RGB_to_XYZ.html
  • XYZ to RGB: http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_RGB.html
  • RGB/XYZ Matrices: http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html

你可能感兴趣的:(Spectrum to XYZ to sRGB)