POV-Ray : Newsgroups : povray.advanced-users : Spectral data -> XYZ : Re: Spectral data -> XYZ Server Time
29 Jul 2024 02:27:14 EDT (-0400)
  Re: Spectral data -> XYZ  
From: Jaime Vives Piqueres
Date: 26 Mar 2003 04:22:43
Message: <20030326102242.390b82f5.jaimevives@ignorancia.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.