[Radiance-general] RGB to CIE-XYZ

Gregory J. Ward gregoryjward at gmail.com
Wed Jun 29 15:29:13 CEST 2005


Hi Nina,

Raphael gave the equivalent formula as you get from xyz_rgb.cal  
unless you change the primaries or white point in there.  To use the  
formulas from xyz_rgb.cal, try:

rcalc -f xyz_rgb.cal -e 'iR=$1;iG=$2;iB=$3' -e '$1=X(iR,iG,iB);$2=Y 
(iR,iG,iB);$3=Z(iR,iG,iB)'

As you give R G B on input, you'll get X Y Z on output.

-Greg

> From: Nina Wittmann <nina.wittmann at ise.fraunhofer.de>
> Date: June 29, 2005 3:02:56 PM GMT+02:00
>
> Thank you Raphael, but this is not the thing I wanted to know.
>
> I would like to calculate XYZ from RGB with xyz_rgb.cal.
>
> What I need are the commands that xyz_rgb.cal will calculate it.
>
> rcalc ....
>
> I hope anybody can help me.
>
> Thanks, Nina



More information about the Radiance-general mailing list