可见光谱的RGB值 [英] RGB values of visible spectrum

查看:540
本文介绍了可见光谱的RGB值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个算法或函数来对光谱的可见光范围内的每个波长映射到其等效的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.

这篇关于可见光谱的RGB值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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