Convert RGB to Light Frequency

Is it possible to get the light frequency of a color from an RGB representation? I found the opposite process [1], but I do not know if this is possible.

[1] http://www.fourmilab.ch/documents/specrend/

+5
source share
4 answers

AFAIK, there is no direct answer, because several wavelengths can combine to give the same color correctly? Thus, you have wavelengths that correspond to pure colors, and then their combinations can produce many other and the same colors. And there are several combinations that can give the same color. This is due to interference. Therefore, you are essentially requesting a mapping from one to many.

: . . , .

+6

Javascript - rgb .

,

Wavelength

RGB HSL, HSL

HSL spectrum

, , .

, , , . RGB.

+6
  • RGB XYZ
  • XYZ Yxy
  • xy
0

C, , color_match 81 - , -, 3 . , , RGB , RGB , , , , .

The problem, of course, is that your RGB value may be from a mixture of light at different frequencies. In this case, you will get a point that comes from the inside of Figure 3 - it will not be close to any values ​​outside (so at least you can say that there is a problem), and there will be more possible sets of frequencies that could produce it - this corresponds to the weighted average points on the outside of the chart, which are averaged to create your point on the inside.

0
source

All Articles