且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

后续:找到准确的“距离”之间的颜色

更新时间:2023-02-26 20:26:44

b *(aka只是简单的实验室,你也将看到参考CIELAB)。色差的良好快速测量是

Convert to La*b* (aka just plain "Lab", and you'll also see reference to "CIELAB"). A good quick measaure of color difference is


(L1-L2)^ 2 +(a1-a2)^ 2 + )^ 2

(L1-L2)^2 + (a1-a2)^2 + (b1-b2)^2

色彩科学家有其他更精致的措施,这可能不值得麻烦,

Color scientists have other more refined measures, which may not be worth the bother, depending on accuracy needed for what you're doing.

a b 相反的颜色以类似于锥体如何工作的方式,并且可以是负的或正的。中性色 - 白色,灰色 a = 0 b = 0 L 是以特定方式定义的亮度,从零(纯黑暗)到任何。

The a and b values represent opposing colors in a way similar to how cones work, and may be negative or positive. Neutral colors - white, grays are a=0,b=0. The L is brightness defined in a particular way, from zero (pure darkness) up to whatever.

粗暴的解释:>>给定一种颜色,我们的眼睛区分两个宽范围的波长 - 蓝色与长波长。然后,由于更近的基因突变,更长的波长锥分叉成两个,区分我们红色对绿色。

Crude explanation :>> Given a color, our eyes distinguish between two broad ranges of wavelength - blue vs longer wavelengths. and then, thanks to a more recent genetic mutation, the longer wavelength cones bifurcated into two, distinguishing for us red vs. green.

顺便说一下,你的职业生涯将超越你的颜色穴居人同行,他们知道只有RGB或CMYK这是伟大的设备但吸吮严重的感知工作。

By the way, it'll be great for your career to rise above your color caveman collegues who know of only "RGB" or "CMYK" which are great for devices but suck for serious perception work. I've worked for imaging scientists who didn't know a thing about this stuff!

有关色差理论的更多乐趣阅读,请尝试:

For more fun reading on color difference theory, try:

  • http://white.stanford.edu/~brian/scielab/introduction.html and info
  • and links on color theory in general, websurf starting with http://www.efg2.com/Lab/Library/Color/ and
  • http://www.poynton.com/Poynton-color.html

有关Lab的更多详情,请访问 http://en.kioskea.net/video/cie-lab.php3 我现在不能找到一个非丑的页面,实际上有转换公式,但我相信有人会编辑这个答案包括一个。

More detail on Lab at http://en.kioskea.net/video/cie-lab.php3 I can't at this time find a non-ugly page that actually had the conversion formulas but I'm sure someone will edit this answer to include one.