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

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

问题描述

原始问题

我在寻找一个函数,试图量化如何遥远(或不同)两种颜色。这个问题实际上分为两部分:

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. 距离度量最好代表人类视觉(欧几里德?)


推荐答案

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.

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

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