Answer the question
In order to leave comments, you need to log in
How to convert three real numbers showing red, green and blue to one real number showing how bright the color is?
There are three real numbers, each of which lies in the interval [0; 1] .
The first real number shows how red the pixel is, the second how much the pixel is green, the third how much the pixel is blue, that is, the classic color representation through red, green and blue (used in JPEG ). It is necessary to convert all these real numbers into one real number lying in the interval [0; 1] and showing the brightness of a pixel. An example for some values from this range:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question