|
![](/i/fill.gif) |
Hi Matti:
> How can I convert spectral data to CIE XYZ components?
:) ...use CIE.inc by Ive, included with my lighting system:
http://www.ignorancia.org/t_lightsys.php
> I calculate definite integral of spectrum multiplying spectrum values
> CIE 1931 color matching functions and then divide X, Y, Z -integrals
> with(X+Y+Z). Then I calculate chromaticity coordinates from XYZ
> components and compare these chromaticity coordinates to real
> chromaticity coordinates of spectral data what I use to test code. My
> code gives wrong results and I like to know what I do wrong.
I'm not the expert (Ive done all this implementation himself), but I
think that taking a look at CIE.inc can give you some clues. The current
published version is not still 100% accurate, but I can send you a beta
for the next version, wich is almost 99'9% accurate. It will be very
nice to know your opinion on it...
Regards.
--
Jaime Vives Piqueres
La Persistencia de la Ignorancia
http://www.ignorancia.org
Post a reply to this message
|
![](/i/fill.gif) |