[Radiance-general] Confirm Procedure to Convert Spectral (SPD) Data to Radiance rgb color triplet

Kolomenski, Andrei (JSC-SF311)[WYLE INTEG. SCI. & ENG.] andrei.kolomenski at nasa.gov
Tue Jun 9 12:07:26 PDT 2015


Dear Radiance Users,
I have a fundamental question about how to convert spectrum power distribution (SPD) of a material to its Radiance material counterpart. For now, I'm strictly concerned with the rgb color triplet passed to a material primitive. Below I summarized four steps that I believe accomplish this task. I would appreciate it people could confirm or provide comments on discrepancies in the procedure. Your input is much appreciated!
I tried the procedure with an experimentally measured SPD of a tan blanket, however my rpict rendering is showing a slightly lighter color than expected. I'm using ambient lighting (-ab 1 1 1) to view a rectangular surface modified by the material primitive obtained from this method.
void plastic material
0
0
5 r_calc g_calc b_calc 0 0

#1.) Obtain the SPD data from the spectrophotometer and compute the associated Tristimulus values XYZ. I'm using a CIE 2° Standard Observer for color matching functions and a D65 illuminant, as this is the illuminant used by the spectrophotometer.
[cid:image001.png at 01D0A2BD.9C2A4940]
[cid:image002.png at 01D0A2BD.9C2A4940]
[cid:image003.png at 01D0A2BD.9C2A4940]
[cid:image004.png at 01D0A2BD.9C2A4940]
#2.) Perform chromatic adaptation on the computed Trisitimulus values, to account for different white point definitions between source (sensor) & destination (Radiance) illuminants. For this transformation, the Tristimulus of the white point of both the source (S) & the destination (D) illuminants must be defined. Also, the Sharp color space is chosen for the chromatic adaptation transformation (Ref 1.), defined by the matrix, [cid:image005.png at 01D0A2BD.9C2A4940] .
[cid:image006.png at 01D0A2BD.9C2A4940]
[cid:image007.png at 01D0A2BD.9C2A4940]
[cid:image008.png at 01D0A2BD.9C2A4940]
[cid:image009.png at 01D0A2BD.9C2A4940]

[cid:image010.png at 01D0A2BD.9C2A4940]
[cid:image011.png at 01D0A2BD.9C2A4940]
#3.) Convert white point balanced Tristimulus values to Radiance sRGB color space. For this transformation, the chromaticity of the red, green and blue primaries and the white point must be defined for the sRGB color space used by Radiance. Radiance uses equal-energy white as its white point with the following chromaticity coordinates.
[cid:image012.png at 01D0A2BD.9C2A4940]
            Define the primary chromaticity coordinates for sRGB color space, obtained from 'xyz_rgb.cal' file within the Radiance source code.
[cid:image013.png at 01D0A2BD.9C2A4940]
[cid:image014.png at 01D0A2BD.9C2A4940]
[cid:image015.png at 01D0A2BD.9C2A4940]
[cid:image016.png at 01D0A2BD.9C2A4940]
[cid:image017.png at 01D0A2BD.9C2A4940]
[cid:image018.png at 01D0A2BD.9C2A4940]
[cid:image019.png at 01D0A2BD.9C2A4940]
[cid:image020.png at 01D0A2BD.9C2A4940]

#4.) Scale each channel by the measured reflectance of the material and by the luminous efficacy weighted sum of the input RGB triplet. An equal weight can be applied or the chromaticity coordinates of the green (photopic) primary can be used as RGB channel weights. The obtained rgb values are to be used as input to a material primitive definition.
[cid:image021.png at 01D0A2BD.9C2A4940]
[cid:image022.png at 01D0A2BD.9C2A4940]
[cid:image023.png at 01D0A2BD.9C2A4940]
[cid:image024.png at 01D0A2BD.9C2A4940]






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1760 bytes
Desc: image001.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0024.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1725 bytes
Desc: image002.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0025.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1697 bytes
Desc: image003.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0026.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1225 bytes
Desc: image004.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0027.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 415 bytes
Desc: image005.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0028.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 2639 bytes
Desc: image006.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0029.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 2633 bytes
Desc: image007.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0030.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 4117 bytes
Desc: image008.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0031.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 2854 bytes
Desc: image009.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0032.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 1583 bytes
Desc: image010.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0033.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.png
Type: image/png
Size: 1600 bytes
Desc: image011.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0034.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.png
Type: image/png
Size: 2486 bytes
Desc: image012.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0035.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image013.png
Type: image/png
Size: 2046 bytes
Desc: image013.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0036.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image014.png
Type: image/png
Size: 2051 bytes
Desc: image014.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0037.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image015.png
Type: image/png
Size: 2079 bytes
Desc: image015.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0038.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image016.png
Type: image/png
Size: 1180 bytes
Desc: image016.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0039.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image017.png
Type: image/png
Size: 611 bytes
Desc: image017.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0040.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image018.png
Type: image/png
Size: 1428 bytes
Desc: image018.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0041.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image019.png
Type: image/png
Size: 1105 bytes
Desc: image019.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0042.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image020.png
Type: image/png
Size: 1598 bytes
Desc: image020.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0043.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image021.png
Type: image/png
Size: 1810 bytes
Desc: image021.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0044.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image022.png
Type: image/png
Size: 1167 bytes
Desc: image022.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0045.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image023.png
Type: image/png
Size: 1099 bytes
Desc: image023.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0046.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image024.png
Type: image/png
Size: 856 bytes
Desc: image024.png
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150609/46a70817/attachment-0047.png>


More information about the Radiance-general mailing list