跟进:找到准确的“距离"颜色之间 [英] Followup: Finding an accurate "distance" between colors

查看:32
本文介绍了跟进:找到准确的“距离"颜色之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

原始问题

我正在寻找一个函数,该函数试图量化两种颜色的距离"(或不同)程度.这个问题实际上分为两部分:

I am looking for a function that attempts to quantify how "distant" (or distinct) two colors are. This question is really in two parts:

  1. 哪种色彩空间最能代表人类视觉?
  2. 该空间中什么距离度量最能代表人类视觉(欧几里得?)

推荐答案

转换为 La*b*(也就是简单的Lab",您还会看到对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 + (b1-b2)^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.

ab 值以类似于锥体工作方式的方式表示相反的颜色,可以是负的也可以是正的.中性色 - 白色、灰色为 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

有关实验室的更多详细信息,请访问 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.

这篇关于跟进:找到准确的“距离"颜色之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆