How to get the wavelength of a pixel using RGB?

前端 未结 4 1964
深忆病人
深忆病人 2020-12-06 01:06

I have a project that would classify the color of a pixel. Whether it is red,violet, orange or simply any color in the color wheel. I know that there are over 16 million col

4条回答
  •  伪装坚强ぢ
    2020-12-06 01:11

    A pure color has a wavelength (any single color LED will have a specific wavelength). Red, green and blue each have a range of wavelength. However, when you make an RGB color, you add these wavelengths together, which will NOT give you a new wavelength. The eye can't distinguish a yellow composed of one wavelength from that of adding red and green (just how the eye works). I'd recommend reading up on color theory

    http://en.wikipedia.org/wiki/RGB_color_model

提交回复
热议问题