![]() ![]() ![]() There is no absolute physical definition of white - white is in our brains. Some people use the color of their florescent lights. Some people use the white of their (horribly orange) incandescent bulbs to mean white. How do you define white? The color of sunlight? The colors are then described as being relative to that whitepoint.īut there is no such color as white. Meanwhile, every practical color spaces that people use:ĭepends some whitepoint. XYZ, xyz, and xyY are absolute color spaces that describe colors using absolute physics. So we've converted a wavelength of pure monochromatic emitted light into a XYZ color. We now have the 455 nm light specified in 3 different color spaces: We can also add a third color space: xyY x = x = 0.145945 You have your 455 nm light specified using two different color spaces: Note: The chromacity coordinates are simply calculated from the CIE color matching functions: x = X / (X+Y+Z) ![]() To convert a wavelength into an RGB colorįirst you consult a CIE 1964 Supplementary Standard Colorimetric Observer chart ( archive)Īnd look up the CIE color matching function values for the wavelength you want.įor example, i want to get the color of 455 nm light:įor our desired wavelength: | nm | CIE color matching functions | Chromacity coordinates | r,g,b are returning color components in range.Now the code: void spectral_color(double &r,double &g,double &b,double l) // RGB the last one is my current color output.the second one is linearized Spectrum of our Sun taken from Earth.the first spectrum is the best rendered spectrum I found but still way off the real thing.Also, the color ranges do not match to each other, so I used from this point only linearized real spectroscopy data like this ( original link now dead): So I did little research and data compilation and found out that most spectrum images out there are incorrect. I recently found out that my spectral colors don't work properly because they were based on nonlinear and shifted data. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |