当前位置:网站首页>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 ~
边栏推荐
- DCAT in laravel_ Admin preliminary use record
- 动态规划问题(八)
- Api 接口优化有哪些技巧?
- Dynamic programming problem (3)
- How to solve the problems of MQ message loss, duplication and backlog?
- 15.模型评估和选择问题
- Dynamic programming problem (6)
- Use hutool tool class to operate excel with more empty Sheet1
- [micro services ~nacos] Nacos service providers and service consumers
- 动态规划问题(七)
猜你喜欢
IDEA 连接 数据库
Immutable x officially opens IMX token pledge detailed IMX pledge introduction optimistic about the development prospect of IMX
Simple use and understanding of laravel message queue
动态规划问题(八)
Samsung asset management (Hong Kong) launched yuancosmos ETF to focus on investing in the future tuyere track
110 MySQL interview questions and answers (continuously updated)
“吃货联盟定餐系统”
Api 接口优化的那些技巧
I don't know how lucky the boy who randomly typed the log is. There must be a lot of overtime!
NFTScan 与 NFTPlay 在 NFT 数据领域达成战略合作
随机推荐
MySQL transaction (this is enough...)
flask结合容联云发送验证码
Common sparse basis and matlab code for compressed sensing
16. Influence of deviation, variance, regularization and learning curve on the model
Introduction and solution of common security vulnerabilities in Web System SQL injection
动态规划问题(二)
Teach you how to install latex (nanny level tutorial)
17. Design of machine learning system
Camera Hal OEM模块 ---- cmr_preview.c
动态规划问题(六)
What does the expression > > 0 in JS mean
15. Model evaluation and selection
Dynamic programming problem (VII)
How to learn R language
Basic knowledge of PHP language (super detailed)
Soft test --- database (4) SQL statement
Shell programming specifications and variables
SAP vl02n delivery note posting function WS_ DELIVERY_ UPDATE
Api 接口优化的那些技巧
Laravel8 middleware realizes simple permission control