当前位置:网站首页>About 1931cie -- conversion of XYZ color coordinate graph to RGB color coordinate relationship
About 1931cie -- conversion of XYZ color coordinate graph to RGB color coordinate relationship
2022-07-29 00:38:00 【Love learning one by one】
List of articles
Preface
This article will be based on the relationship of the previous blog XYZ Coordinate to RGB Coordinate conversion .
One 、RGB Color coordinate diagram ——>XYZ Chromatic coordinates ( Normalization relation )
{ x = 0.49001 r + 0.30999 g + 0.20000 b y = 0.17697 r + 0.81240 g + 0.01063 b z = 0.01000 g + 0.99000 b \left\{ \begin{aligned} x & = & 0.49001r + 0.30999g+ 0.20000b\\ y & = & 0.17697r + 0.81240g+ 0.01063b\\ z & = & 0.01000g + 0.99000b \end{aligned} \right. ⎩⎪⎨⎪⎧xyz===0.49001r+0.30999g+0.20000b0.17697r+0.81240g+0.01063b0.01000g+0.99000b
See the following link :
https://blog.csdn.net/weixin_42105848/article/details/124251493
Two 、XYZ Color coordinate diagram ——>RGB Chromatic coordinates ( Normalization relation )
The above formula can also be written as [ x y z ] = [ 0.49001 0.30999 0.20000 0.17697 0.81240 0.01063 0 0.01000 0.99000 ] × [ r g b ] \begin{bmatrix}x\\y\\z\\\end{bmatrix}=\begin{bmatrix}0.49001&0.30999&0.20000\\0.17697&0.81240&0.01063\\0&0.01000&0.99000\\\end{bmatrix}\times\begin{bmatrix}r\\g\\b\\\end{bmatrix} ⎣⎡xyz⎦⎤=⎣⎡0.490010.1769700.309990.812400.010000.200000.010630.99000⎦⎤×⎣⎡rgb⎦⎤
Let the coefficient matrix be A, That is to say [ x y z ] = A × [ r g b ] \begin{bmatrix}x\\y\\z\\\end{bmatrix}=A\times\begin{bmatrix}r\\g\\b\\\end{bmatrix} ⎣⎡xyz⎦⎤=A×⎣⎡rgb⎦⎤
therefore [ r g b ] = A − × [ x y z ] \begin{bmatrix}r\\g\\b\\\end{bmatrix}=A^{-}\times\begin{bmatrix}x\\y\\z\\\end{bmatrix} ⎣⎡rgb⎦⎤=A−×⎣⎡xyz⎦⎤
After calculation, the following relationship is obtained :
[ r g b ] = [ 2.3645 − 0.8965 − 0.4681 − 0.5152 1.4264 0.0888 0.0052 − 0.0144 1.0092 ] × [ x y z ] \begin{bmatrix}r\\g\\b\\\end{bmatrix}=\begin{bmatrix}2.3645&-0.8965&-0.4681\\-0.5152&1.4264&0.0888\\0.0052&-0.0144&1.0092\\\end{bmatrix}\times\begin{bmatrix}x\\y\\z\\\end{bmatrix} ⎣⎡rgb⎦⎤=⎣⎡2.3645−0.51520.0052−0.89651.4264−0.0144−0.46810.08881.0092⎦⎤×⎣⎡xyz⎦⎤
therefore , take XYZ Color coordinates in color coordinate diagram (x,y,z) You can get RGB Color coordinates in color coordinate diagram (r,g,b) 了 .
summary
That's all for today , I hope you can get something ~
边栏推荐
- Idea connection database
- Html+css+php+mysql realize registration + login + change password (with complete code)
- 动态规划问题(二)
- CDN mode uses vant components, and components cannot be called after they are introduced
- 我不建议你使用SELECT *
- Teach you how to install latex (nanny level tutorial)
- MySQL 分库分表及其平滑扩容方案
- Introduction and solution of common security vulnerabilities in Web System SQL injection
- What does the expression > > 0 in JS mean
- [micro services ~nacos] Nacos service providers and service consumers
猜你喜欢

Oracle实例无法启动的问题如何解决

手把手教你安装Latex(保姆级教程)

15.模型评估和选择问题

PTA (daily question) 7-73 turning triangle

Brief introduction to compressed sensing

Html+css+php+mysql realize registration + login + change password (with complete code)

【飞控开发基础教程8】疯壳·开源编队无人机-I2C(激光测距)

17.机器学习系统的设计

Talk about seven ways to realize asynchronous programming

MySQL的存储过程
随机推荐
Dynamic programming problem (6)
Attack and defense world web master advanced area PHP_ rce
vulnhub:Sar
flask与七牛云上传图片
Web系统常见安全漏洞介绍及解决方案-sql注入
Dynamic programming (V)
I was asked several questions about string in the interview. Can you answer them?
MySQL sub database and sub table and its smooth expansion scheme
Still writing a lot of if to judge? A rule executor kills all if judgments in the project
2022dasctfjuly empowerment competition (reappearance)
Api 接口优化的那些技巧
MySQL transaction (this is enough...)
16. Influence of deviation, variance, regularization and learning curve on the model
Software designer - intermediate, exam summary
会议OA项目之会议通知&会议反馈&反馈详情功能
Advanced area of attack and defense world web masters training www robots
Api 接口优化有哪些技巧?
execute immediate 简单示例合集(DML)
“吃货联盟定餐系统”
vscode下链接远程服务器安装插件失败、速度慢等解决方法