[Radiance-general] RGB to CIE-XYZ
Nina Wittmann
nina.wittmann at ise.fraunhofer.de
Tue Jun 28 17:25:21 CEST 2005
Hi all!
I have a question about converting RGB to CIE-XYZ with xyz_rgb.cal.
For transforming XYZ into RGB I can use this lines:
rcalc -f xyz_rgb.cal -e 'ix=$1;iy=$2;iY=$3' -f xyz_rgb.cal \
-e 'iX=ix/iy*iY;iZ=(1-ix-iy)/iy*iY' \
-e '$1=R(iX,iY,iZ) ; $2=G(iX,iY,iZ) ; $3=B(iX,iY,iZ)'
But there is also a part for calculating CIE-XYZ from RGB values, isn´t it?
Unfortenatly, I don´t know what lines I have to write.
Thanks,
Nina
More information about the Radiance-general
mailing list