本文介绍了如何使用RGB获取像素的波长?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目可以对像素的颜色进行分类.无论是红色、紫色、橙色还是色轮中的任何颜色.我知道像素有超过 1600 万种颜色组合.但是我能够阅读一个网页,上面说我可以使用颜色的波长来完成我的项目.请给我使用RGB值计算波长的公式.谢谢!

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 color combination for pixels. But I was able to read a web page that says its possible for me to do my project using the wavelengths of color. Please give me the formula to compute for the wavelength using RGB values. Thanks!

推荐答案

纯色有一个波长(任何单色 LED 都有一个特定的波长).红色、绿色和蓝色各有一个波长范围.但是,当您制作 RGB 颜色时,会将这些波长加在一起,这不会为您提供新的波长.眼睛无法区分由一种波长组成的黄色与添加红色和绿色的黄色(这就是眼睛的工作原理).我建议阅读色彩理论

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

这篇关于如何使用RGB获取像素的波长?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-21 04:07