29.12.2012 Views

Gernot Hoffmann CIE Color Space

Gernot Hoffmann CIE Color Space

Gernot Hoffmann CIE Color Space

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.1 <strong>Color</strong> <strong>Space</strong> Calculations / General<br />

In this chapter we derive the relations between <strong>CIE</strong> xyY, <strong>CIE</strong> XYZ and any arbitrary RGB<br />

space. It is essential to understand the principle of RGB basis vectors in the XYZ coordinate<br />

system. This was shown on previous pages.<br />

Given are the coordinates for the primaries in <strong>CIE</strong> xyY and for the white point:<br />

x r ,y r ,x g ,y g ,x b ,y b ,x w ,y w . <strong>CIE</strong> xyY is the horseshoe diagram. Furtheron we need the<br />

luminance V.<br />

We want to derive the relation between any color set r,g,b and the coordinates X,Y,Z .<br />

() 1 r = (, rgb , )<br />

( 2)<br />

X = ( XYZ , , )<br />

( 3)<br />

x = ( xyz , , )<br />

( 4)<br />

( 8) X = Vx/ y<br />

Y = V<br />

Z = Vz/ y<br />

T<br />

T<br />

T<br />

L = X+ Y+ Z<br />

( 5)<br />

x = X/ L<br />

y = Y/ L<br />

z = Z/ L<br />

( 6) z = 1−x−y<br />

( 7)<br />

X = L x<br />

( 9) R = Lx = L( x , y , z )<br />

r r r r T<br />

<strong>Color</strong> values in RGB<br />

<strong>Color</strong> values in XYZ<br />

<strong>Color</strong> values in xyY<br />

Scaling value<br />

V is the luminance of the stimulus, according to the luminous efficiency function V(λ) in [3].<br />

We should not call this immediately Y because Y is mostly normalized for 1 or 100.<br />

Basis vectors for the primaries and white point in XYZ:<br />

G = Lx = L( x , y , z )<br />

g g g g T<br />

B = Lx = L( x , y , z )<br />

b b b b T<br />

( 10) W = Lw = L( x , y , z )<br />

( 11) u = ( uvw , , )<br />

T<br />

w w w T<br />

Set of scale factors for the white point correction:<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!