可见光谱的RGB值光谱、RGB

由网友(谁动了我的心弦)分享简介:我需要一个算法或函数来对光谱的可见光范围内的每个波长映射到其等效的RGB值。有没有光的RGB体系和波长之间的结构关系?像这样的图片:抱歉,如果这是无关紧要的: - ] 的I need an algorithm or function to map each wavelength of visible range...

我需要一个算法或函数来对光谱的可见光范围内的每个波长映射到其等效的RGB值。 有没有光的RGB体系和波长之间的结构关系? 像这样的图片: 抱歉,如果这是无关紧要的: - ] 的

I need an algorithm or function to map each wavelength of visible range of spectrum to its equivalent RGB values. Is there any structural relation between the RGB System and wavelength of a light? like this image: sorry if this was irrelevant :-]

推荐答案

有频率与所谓的色调之间的关系,但对感知复杂的原因,显示器色域和校准,最好你能做到的外昂贵的实验室设备的粗略估计。

There is a relationship between frequency and what is known as Hue, but for complicated reasons of perception, monitor gamut, and calibration, the best you can achieve outside of expensive lab equipment is a gross approximation.

请参阅 http://en.wikipedia.org/wiki/HSL_and_HSV ,在数学,并注意您将不得不拿出的色调⇔频率映射你的最好的猜测。我希望这种经验的映射是什么,但线性的。

See http://en.wikipedia.org/wiki/HSL_and_HSV for the math, and note that you'll have to come up with your best guess for the Hue ⇔ Frequency mapping. I expect this empirical mapping to be anything but linear.

阅读全文

相关推荐

最新文章