查看“︁CIELAB色彩空间”︁的源代码
←
CIELAB色彩空间
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{copyedit|for=标点|time=2021-01-01T11:19:58+00:00}} [[File:Lab color space.png|thumb|L*a*b* 色彩空间,只展示可充入[[sRGB色彩空间|sRGB]]色域的颜色(因此可以显示在典型的计算机显示器上)。每个正方形的每个轴取值于 -128到127。]] '''CIELAB色彩空间'''(英語:'''CIELAB color space''')又寫為'''L*a*b*''',是[[國際照明委員會]](縮寫為CIE)在1976年定義的[[色彩空間]]。它將顏色用三個值表達示:「L*」代表感知的亮度、「a*」和「b*」代表人類視覺的四種獨特顏色:紅色、綠色、藍色和黃色。CIELAB旨在作為一個感知上統一的空間,其中給定的數字變化對應於相似的感知顏色變化;雖然並不是真正的感知均勻,但在工業上仍可用於檢測顏色的細微差異。 CIELAB色彩空间與Hunter Lab都源自[[CIE 1931色彩空間|CIE XYZ色彩空间]],為了有效區別,應避免將CIELAB寫為不帶星號的“Lab”。 == 概述 == '''CIE L*a*b*(CIELAB)'''是惯常用来描述人眼可见的所有颜色的最完备的[[色彩模型]]。它是为这个特殊目的而由[[国际照明委员会]](Commission Internationale d'Eclairage的首字母是CIE)提出的。L、a和b后面的星号(*)是全名的一部分,因为它们表示L*, a* 和b*,不同于L, a和b。因为红/绿和黄/蓝对立通道被计算为(假定的)锥状细胞响应的类似孟塞尔值的变换的差异,CIELAB是Adams色彩值(Chromatic Value)空间。 三个基本坐标表示颜色的亮度('''L*''', L* = 0生成黑色而L* = 100指示白色),它在红色/品红色和绿色之间的位置('''a*'''负值指示绿色而正值指示品红)和它在黄色和蓝色之间的位置('''b*'''负值指示蓝色而正值指示黄色)。 已经建立的L*a*b* 色彩模型来充当用做参照的设备无关的模型。要认识到永远不能精确的在视觉上表示这个模型中颜色的完全色域是至关重要的。它们只是用来帮助理解概念而天生就不精确的。 因为L*a*b* 模型是三维模型,它只能在三维空间中完全表现出来。<ref>See [http://www.brucelindbloom.com/index.html?WorkingSpaceInfo.html here] {{Wayback|url=http://www.brucelindbloom.com/index.html?WorkingSpaceInfo.html |date=20131002132220 }} for 3D representations of the L*a*b* gamut.</ref> “L*a*b*”模型也被表达为“L*C*h(a*, b*)”,它把a* 和b* 变换为辐射表示。<ref>See [http://en.wikipedia.org/wiki/Saturation_(color_theory)] {{Wayback|url=http://en.wikipedia.org/wiki/Saturation_(color_theory) |date=20201114000553 }} for information on L*C*h and conversion formulas.</ref> === 测量差别 === CIE 1976 L*a*b* 直接基於[[CIE1931色彩空间|CIE 1931 XYZ色彩空间]]衍生出來,它嘗試使用{{link-en|MacAdam橢圓|MacAdam ellipse}}所描述的顏色差異度量建立綫性化的顏色差異感知。L*, a* 和b* 的非綫性關係模仿人類眼睛的非線性響應。色彩信息参照這個系統裏帶有下標n的[[白點]]的顏色。<ref name="Jain89">{{cite book|title="Fundamentals of Digital Image Processing"|url=https://archive.org/details/fundamentalsofdi0000jain|author="Anil K. Jain"|pages=p. 68, 71, 73|year=1989|publisher=[[Prentice Hall|Prentince-Hall Inc.]]|location=New Jersey, United States of America|isbn=0-13-336165-9}}</ref> 在L*a*b* 模型中均勻改變對應在感知顏色中的均勻改變。所以在L*a*b* 中任何兩個顏色的相對感知差別,可以透過把每個顏色看成(有三個分量:L*, a*, b* 的)三維空間中一個點,並計算在它們之間的[[欧几里得距离]]。<ref name="Jain89"/>在L*a*b* 空間中的這個歐幾里得距離是ΔE(經常被稱為“Delta E”,更精確的是ΔE*<sub>ab</sub>)。 使用L*a*b* 中的兩個顏色<math>({L_1}^*,\ {a_1}^*,\ {b_1}^*)</math>和<math>({L_2}^*,\ {a_2}^*,\ {b_2}^*)</math>: :<math>\Delta {E^*}_{ab} = \sqrt{ ({L_2}^*-{L_1}^*)^2+({a_2}^*-{a_1}^*)^2 + ({b_2}^*-{b_1}^*)^2 }\,</math> 一個有關的色彩空間,{{link-en|CIELUV色彩空間|CIELUV|CIE 1976 (L*, u*, v*)}},遵從和L*a*b* 同樣的原理但有不同的u* 和v* 分量表示(保持相同的L*)。 === RGB和CMYK转换 === 在[[RGB]]或[[CMYK]]值与L*a*b* 之间没有转换的简单公式,因为RGB和CMYK色彩空间是设备依赖的。RGB或CMYK值首先必须被变换到特定[[绝对色彩空间]]中,比如[[sRGB色彩空间|sRGB]]或[[Adobe RGB色彩空间|Adobe RGB]]。这种调整将是设备依赖的,但是变换的结果数据是设备无关的,允许把数据变换成[[CIE 1931色彩空间]]并接着变换成L*a*b*。 === XYZ与CIE L*a*b*(CIELAB)的转换 === ==== 正向变换 ==== :<math>L^* = 116\,f(Y/Y_n) - 16</math> :<math>a^* = 500\,[f(X/X_n) - f(Y/Y_n)]</math> :<math>b^* = 200\,[f(Y/Y_n) - f(Z/Z_n)]</math> 其中, :<math>\begin{align} f(t) &= \begin{cases} {t^{1/3}} & \text{,if }\quad t > (6/29)^3 \\ \frac{1}{3} \left(\frac{29}{6} \right)^2 t + \frac{16}{116} & \text{,otherwise} \end{cases} \\ \end{align}</math> 这里的<math>X_n \,</math>、<math>Y_n \,</math>、<math>Z_n \,</math>是参照[[白点]]的CIE XYZ三色刺激值。(下標n暗示了“normalized”)。 <math>f(t) \,</math>函数被分成两个定义域是为了防止在<math>t=0 \,</math>处的无限斜率。在某个<math>t=t_0 \,</math>之下<math>f(t) \,</math>被假定是线性的,并被假定匹配函数的<math>t^{1/3} \,</math>部分在<math>t_0 \,</math>的值和斜率。换句话说: :{| |- |<math>t_0^{1/3}\,</math> |<math>=\,</math> |<math>a t_0 + b\,</math> | (匹配值) |- |<math>1/(3t_0^{2/3})\,</math> |<math>=\,</math> |<math>a\,</math> | (匹配斜率) |} <math>b</math>的值被选择为16/116。上面两个方程对<math>a</math>和<math>t_0</math>有解: :{| |- |<math>a\,</math> |<math>=\,</math> |<math>1/(3\delta^2)\,</math> |<math>= 7.787037\cdots</math> |- |<math>t_0\,</math> |<math>=\,</math> |<math>\delta^3\,</math> |<math>= 0.008856\cdots</math> |} 这里的<math>\delta=6/29 \,</math>。注意<math>16/116=2\delta/3 \,</math>。 ==== 反向变换 ==== 反向变换如下(<math>\delta=6/29 \,</math>如上): # 定义<math>f_y\ \stackrel{\mathrm{def}}{=}\ (L^*+16)/116</math> # 定义<math>f_x\ \stackrel{\mathrm{def}}{=}\ f_y+a^*/500</math> # 定义<math>f_z\ \stackrel{\mathrm{def}}{=}\ f_y-b^*/200</math> # 如果<math>f_y > \delta\,</math>则<math>Y=Y_nf_y^3\,</math> 否则<math>Y=(f_y-16/116)3\delta^2Y_n\,</math> # 如果<math>f_x > \delta\,</math>则<math>X=X_nf_x^3\,</math> 否则 <math>X=(f_x-16/116)3\delta^2X_n\,</math> # 如果<math>f_z > \delta\,</math>则<math>Z=Z_nf_z^3\,</math> 否则 <math>Z=(f_z-16/116)3\delta^2Z_n\,</math> == 用途 == 在软件和文献中存在对这个缩写的明确使用。 * 在[[Adobe Photoshop]]中,图象编辑使用的“Lab模式”是CIELAB D50。<ref name="margulis">{{cite book|last=Margulis|first=Dan|title=Photoshop Lab Color: The Canyon Conundrum and Other Adventures in the Most Powerful Colorspace|url=https://archive.org/details/photoshoplabcolo0000marg|publisher=Peachpit ; Pearson Education|year=2006|isbn=0-321-35678-0|location=Berkeley, Calif. : London}}</ref><ref>[https://web.archive.org/web/20081207061220/http://kb.adobe.com/selfservice/viewContent.do?externalId=310838 The Lab Color Mode in Photoshop], Adobe TechNote 310838</ref> * 在[[ICC Profile]]中,用做配置文件连接空间的“Lab色彩空间”是CIELAB D50。<ref name="ICC4">International Color Consortium, Specification ICC.1:2004-10 (Profile version 4.2.0.0) Image technology colour management—Architecture, profile format, and data structure, (2006).</ref> * 在[[TIFF]]文件中,可以使用CIELAB色彩空间。<ref name="TIFF6">TIFF: Revision 6.0. Adobe Developers Association, 1992</ref> * 在[[PDF]]文档中,“Lab色彩空间”是CIELAB。 == Hunter Lab == 由{{link-en|理查·亨特|Richard S. Hunter}}於1948年定義的Hunter Lab色彩空間是另一種名稱有“ Lab”的色彩空間。<ref name="Hunter1948a2">{{cite journal|last=Hunter|first=Richard Sewall|date=July 1948|title=Photoelectric Color-Difference Meter|url=http://www.opticsinfobase.org/abstract.cfm?URI=josa-38-7-651|journal=[[JOSA]]|volume=38|issue=7|pages=661|access-date=2021-01-15|archive-date=2019-12-12|archive-url=https://web.archive.org/web/20191212155523/http://www.opticsinfobase.org/abstract.cfm?URI=josa-38-7-651|dead-url=no}} (Proceedings of the Winter Meeting of the Optical Society of America)</ref><ref name="Hunter1948b2">{{cite journal|last=Hunter|first=Richard Sewall|date=December 1948|title=Accuracy, Precision, and Stability of New Photo-electric Color-Difference Meter|url=http://www.opticsinfobase.org/abstract.cfm?URI=josa-38-12-1092|journal=[[JOSA]]|volume=38|issue=12|pages=1094|access-date=2021-01-15|archive-date=2019-12-12|archive-url=https://web.archive.org/web/20191212155528/http://www.opticsinfobase.org/abstract.cfm?URI=josa-38-12-1092|dead-url=no}} (Proceedings of the Thirty-Third Annual Meeting of the Optical Society of America)</ref>與CIELAB一樣,它也可以通過CIEXYZ空間中的簡單公式進行計算,但在感知上比CIEXYZ更為一致。亨特將他的色彩坐標命名為L、a和b。CIE將CIELAB的坐標命名為L*a*b*,以便於區別Hunter的坐標。 ===與CIELAB色彩空间的比較=== 两个空间都得出自“主”空间[[CIE1931色彩空间|CIE 1931 XYZ色彩空间]],它可以预测哪些{{link-en|光谱功率分布|Spectral power distribution}}会被感知为相同的颜色,但是它不是显著感知均匀的。两个“Lab”色彩空间都受到了[[孟塞尔颜色系统]]的强烈影响,意图都是建立可以用简单公式从XYZ计算出来,但比XYZ在感知上更线性的色彩空间<ref>handprint.com explanation of this history: http://www.handprint.com/HP/WCL/color7.html#CIELUV {{Wayback|url=http://www.handprint.com/HP/WCL/color7.html#CIELUV |date=20070427093932 }}</ref>。感知上线性意味着在色彩空间上相同数量的变化应当产生大约相同视觉重要性的变化。在用有限精度值来存储颜色的时候,这可以增进色调的再生。两个Lab空间都相对于它们从而转换的XYZ数据的白点。Lab值不定义绝对色彩,除非还规定了这个白点。实际上白点经常被假定服从某个标准而不明确规定(比如ICC L*a*b* 值是相对于[[标准光源|CIE标准光源]]D50)。<ref name="ICC4"/> CIELAB使用立方根计算,而Hunter Lab使用平方根计算。<ref name="versus">[http://www.hunterlab.com/appnotes/an02_01.pdf Hunter L,a,b Versus CIE 1976 L*a*b*] {{Wayback|url=http://www.hunterlab.com/appnotes/an02_01.pdf |date=20070928151739 }} (PDF)</ref>。除非数据必须与现存的Hunter L,a,b值相比较,对新应用推荐使用CIELAB。<ref name="versus"/> == 參考文獻 == <div class="references-small"> <references /> </div> == 外部連結 == * [http://www.cs.rit.edu/~ncs/color/a_spaces.html Demonstrative color conversion applet] {{Wayback|url=http://www.cs.rit.edu/~ncs/color/a_spaces.html |date=20070630200155 }} * [http://www.brucelindbloom.com/ColorCalculator.html CIE Color Calculator] {{Wayback|url=http://www.brucelindbloom.com/ColorCalculator.html |date=20080428030039 }} {{色彩空間}} [[Category:色彩空間]]
该页面使用的模板:
Template:Cite book
(
查看源代码
)
Template:Cite journal
(
查看源代码
)
Template:Copyedit
(
查看源代码
)
Template:Link-en
(
查看源代码
)
Template:Wayback
(
查看源代码
)
Template:色彩空間
(
查看源代码
)
返回
CIELAB色彩空间
。
导航菜单
个人工具
登录
命名空间
页面
讨论
不转换
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息