How can I get the RGB values of colors at the SAME value even in different environments?
조회 수: 1 (최근 30일)
이전 댓글 표시
I can get an image RGB values, but the values change when I take the same picture in a different environment.
As you know it should not change, each color has a single RGB value and these values are independent of the environment.
How can i provide it in matlab? * | | Please explain with a sample code||*
Thank you.
댓글 수: 0
답변 (2개)
John D'Errico
2017년 10월 14일
NO. I don't know that it should not change. The RGB that you observe in a picture as taken is not something that is immutable, a property of the object. That is something you misunderstand.
Consider a red ball. What color is it? Red? What if you remove the light source? Not red anymore. In fact, color does not exist without light.
What if you take a picture of a red ball, but using a predominantly red or green illuminant? A UV illuminant?
Reflected color is not a fundamental property of an object, but what you observe from an object under illumination. Change the illuminant, and the color changes, as it must. So you cannot talk about the color of an object in a way that is independent of environment.
Worse, then you add in the concept of RGB, which adds the camera itself into the equation.
댓글 수: 0
Image Analyst
2017년 10월 14일
Not sure how many times you want us to answer the same question. Here is my last answer: https://www.mathworks.com/matlabcentral/answers/360899-do-you-have-any-matlab-code-to-get-the-rgb-values-of-the-color-picture-taking-from-webcam#answer_285779
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Red에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!