ITADN

Wrong matrix to transform from XYZ to lms

#1Closedgywn 创建于 2024-10-09
G
gywncommented
In the current code base, the matrix used to transform from XYZ to lms is the following: ```text [ [0.4122214708, 0.5363325363, 0.0514459929], [0.2119034982, 0.6806995451, 0.1073969566], [0.0883024619, 0.2817188376, 0.6299787005], ] ``` This matrix is mentioned in the following files: - src/oklab.rs - src/sse/image_to_oklab.rs - src/avx/image_to_oklab.rs - src/neon/image_to_oklab.rs This matrix is actually the transformation matrix from __linear sRGB__ to lms, c.f. https://bottosson.github.io/posts/oklab/#converting-from-linear-srgb-to-oklab .
关闭于 2024-10-09 2 条评论