Monday, May 21, 2012

CIE library: The Observers

First, this is not official CIE anything (except the data for standard observer, white points, and illumination sources)

As a test, I wrote a quick program to draw the standard observers from 250nm to 750nm on a window and compare the two, the top observer is the 1964 10° data, the bottom observer is the 1931 2° data. This is approximately how you perceive the spectrum. The colors have been converted from the CIEXYZ color space to the sRGB color space, and have been mapped using a source gamma of 1.8, which is likely incorrect, but gives a nice display for me.

This was a quickie, and I'm sure I could get a better rendering, but that wasn't the focus of this exercise. and yes, I realize that 250-750 is way overkill for these, but this gets into all of the UV and Near IR ranges common in such sources as sunlight.

No comments: