<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.12-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Jeffrey Friedl's Blog</title>
	<link>http://regex.info/blog</link>
	<description>Not a photo blog, but sometimes I play one on TV</description>
	<pubDate>Thu, 04 Dec 2008 14:35:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.12-alpha</generator>
	<language>en</language>
			<item>
		<title>Digital-Image Color Spaces, Page 5: Chromaticity Diagrams</title>
		<link>http://regex.info/blog/photo-tech/color-spaces-page5/</link>
		<comments>http://regex.info/blog/photo-tech/color-spaces-page5/#comments</comments>
		<pubDate>Tue, 03 Oct 2006 08:45:30 +0000</pubDate>
		<dc:creator>Jeffrey Friedl</dc:creator>
		
		<category>General</category>

		<guid isPermaLink="false">http://regex.info/blog/photo-tech/color-spaces-page5/</guid>
		<description><![CDATA[

 

Article:
Table of Contents &#160; &#160; &#160; Page:
1 &#183;
2 &#183;
3 &#183;
4 &#183;
5 &#183;
6 &#183;
7
&#160;&#160;&#160;&#160;&#160;&#160;This is the fifth page of a seven-page article



<br style='display:block;margin:5px'/>

When talking about color spaces, it seems to be obligatory to show a
chromaticity diagram, so here is a common CIE xy chromaticity diagram:



<br style='display:block;margin:5px'/>xy Chromaticity Diagram(with grossly inaccurate colors)Showing sRGB and AdobeRGB color spaces

<br style='display:block;margin:5px'/>

This kind of diagram is often seen, but not so often understood, so here
are some notes:




<br style='display:block;margin:5px'/>The shark-fin shaped blob is meant to represent the chromaticity
that the human eye can see. &#8220;Chromaticity&#8221; is color without
regard to brightness; each point on the graph represents a [...]]]></description>
			<content:encoded><![CDATA[

<style type='text/css'>
a.btn    { background-color: #555; border: solid 1px #888; padding: 2px 5px }
span.now { background-color: #533; border: solid 1px #888; padding: 2px 5px; font-weight: bold }
</style>
<div style='display: block; background-color: #444; padding: 7px; border: solid 2px gray; margin-bottom:40px'>
<b>Article:</b>
<a class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page0/'>Table of Contents</a> &nbsp; &nbsp; &nbsp; <b>Page:</b>
<a title='Introduction' class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page1/'>1</a> &middot;
<a title='Test Images' class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page2/'>2</a> &middot;
<a title='Color Mis-Management' class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page3/'>3</a> &middot;
<a title='Color Management' class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page4/'>4</a> &middot;
<span class='now'>5</span> &middot;
<a title='Design Tradeoffs'          class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page6/'>6</a> &middot;
<a title='Recommendations and Links' class='btn' href='http://regex.info/blog/photo-tech/color-spaces-page7/'>7</a>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the fifth page of a seven-page article</small>
</div>


<p>

When talking about color spaces, it seems to be obligatory to show a
chromaticity diagram, so here is a common CIE xy chromaticity diagram:

</p>

<div style='margin-top:20px' class='img_center'><img src="http://regex.info/i/cs/chromaticity.jpg" width="452" height="500" alt='Chromaticity Diagram showing the sRGB and
AdobeRGB color spaces'/><br/><big><b>xy Chromaticity Diagram</b></big><br/><small>(with grossly inaccurate colors)</small><br/>Showing sRGB and AdobeRGB color spaces</div>

<p>

This kind of diagram is often seen, but not so often understood, so here
are some notes:

</p>
<ol>

<li><p>The shark-fin shaped blob is meant to represent the chromaticity
that the human eye can see. &#8220;Chromaticity&#8221; is color without
regard to brightness; each point on the graph represents a specific
spectrum (relative combination of visible wavelengths of light). Such light
doesn't become a &#8220;color&#8221; until perceived by the eye.

</p><p>

Keep in mind that the eye's perception of a light's color is strongly
influenced by the light's relative brightness. (For example, relatively
unbright white is perceived as gray, and relatively unbright orange is
perceived as brown.) Brightness is not taken into account with this graph,
which is concerned only with chromaticity.

</p></li>

<li><p>The two triangles are meant to represent the range of chromaticities
that the sRGB and AdobeRGB color spaces can encode.

</p><p>

Note that the size of the green area is exaggerated by the mathematical
approach taken with this plot (much like the size of Greenland is
exaggerated in a standard <a class='quiet'
href='http://en.wikipedia.org/wiki/Mercator_projection'>Mercator
projection</a> map). The difference between sRGB and AdobeRGB is not as
pronounced as this plot might at first suggest. This lack of <i>perceptual
uniformity</i> across the plot is a common criticism of xy chromaticity
diagrams (but that's an issue about the plot, not about the color spaces
the plot is attempting to illustrate).

</p>
<li><p>

The triangles are the range of <i>chromaticities</i> that the two color
spaces can represent; keep in mind that the range of <i>brightnesses</i>
across which those chromaticities can be encoded in the color space is not
at all represented by this graph.

</p><p>

The total range of colors (chromaticity/brightness combinations) that a
color space can encode is called its &#8220;<a
href='http://en.wikipedia.org/wiki/Gamut'>gamut</a>,&#8221; but again, an
xy chromaticity diagram like this shows only two dimensions of a
three-dimensional issue.

</p></li>

<li><p>The colors that you see in the plot are necessarily approximations.
The graph is presented via a digital image &mdash; an image with the sRGB
color space, so <i>by definition</i> anything outside the small triangle
simply can't be represented properly because the color space <i>by
definition</i> has no way to encode those colors.</p></li>

<li><p>Even those colors inside the sRGB triangle are approximations,
because the relative brightness is inconsistent across the graph. Since
this is all just an illustration to begin with, I opted for a prettier
display rather than the much-harder-to-understand correct display. (This
page on <a href='http://www.techmind.org/colour/rogues.html'>bad
chromaticity graphs</a> shows what they really should look like.)</p></li>

<li><p>The top and sides of the fin are labeled with marks ranging from 380
to 700, which are wavelengths of light, in nanometers. The colors around
that edge (the edge of the fin except the bottom edge) are the
<i>monochromatic</i> or <i>spectral</i> colors &mdash; colors made up of a
single wavelength of light. Although these select colors are the building
blocks of <i>all</i> color, they are rarely found in nature.

</p><p>

Ostensibly, these are the colors of a rainbow, but because one sees a
rainbow only in the context of what's behind it, you don't see
monochromatic colors when looking at a rainbow. You do see them with a
prism, and from a laser.</p></li>

<li><p><a name='Monochromatic'>You'll</a> notice that the <b>entire</b> set
of monochromatic (&#8220;rainbow&#8221;) colors are outside both the sRGB
and AdobeRGB triangles. Neither color space can represent these deep, rich,
pure colors; they are simply omitted from the color space. The closest
colors within the triangles are <i>close</i>, but they are different. Many
would argue that they are not so different that most people could tell on
our consumer monitors or printers, but in any case, remember that the
colors you see in the image are just an approximation.</p></li>

<li><p>The point marked &#8220;D65&#8221; is the <i>white point</i> for
both color spaces. You might be surprised that there's not a standard
definition for the color &#8220;white,&#8221; so the white point of a color
space is the <i>its</i> definition of white. The white called
&#8220;D65&#8221; is roughly equivalent to late-afternoon shade on a clear
day (although evaluate this description in the vague, er, light of the next
paragraph). Some color spaces have dramatically different white points,
often due to historical conventions within a particular field.

</p><p>

As an aside, it might also be surprising to learn that many lights that we
generally consider to be white have fairly strong tints to them. Our
eyes/brain compensate quite well (&#8220;chromatic adaptation&#8221;), so we normally
don't notice. The color of sunlight, for example, changes markedly as the
sun's height above the horizon, and weather, change. The color of light in
direct sun is remarkably different than the color of light in the shade.
Yet a &#8220;white&#8221; shirt (objects generally have no color; they merely reflect
light) on a passerby indeed seems white, even though it's usually presented
to our eyes via some very light shade of blue or red.

</p><p>

Because a digital camera's sensor doesn't compensate the way our eye does,
it sees the light as it is, tint and all. We must therefore set the
camera's &#8220;white balance&#8221; setting to let it know the tint of the
ambient light so that it can attempt the same compensation that our brains
do automatically. If you're not familiar with the problems of not setting
this correctly, I have a <a
href='http://regex.info/blog/2006-06-28/208'>short writeup on white
balance</a> that might be informative.</p></li>


<li><p>An interesting feature of this kind of plot is that the colors
between any two points are made up of the various combinations of the two
endpoint colors. Similarly, colors within a triangle of three points are
made up of the various combinations of the colors of those three points.
This last effect means that the <i>range</i> of chromaticities of these
color spaces is defined by three points (apply named the color space's
<i>red point</i>, <i>blue point</i>, and <i>green point</i>). These points
are the exact shade of each color that is considered &#8220;pure&#8221;
within the context of the color space.

</p><p>Here's a small Java application which allows you to <a href='http://www.cs.rit.edu/~ncs/color/a_chroma.html'>play with a three-point gamut</a> in real time.

</p></li>

</ol>

<p>

There is more to the design of a color space than the location of its four
color points. Another important consideration is how it represents
brightness. Human perception of brightness is not linear; if you double the
luminance of a particular light, for example, yes, it is perceived as
brighter, but still much dimmer than twice as bright.

</p><p>

The non-linearity of our perception of brightness can be seen in the
&#8220;18% gray card&#8221; that photographers use when metering exposure
and white balance. Have you ever wondered how it got its name? It appears
<b>50%</b> as bright as a white sheet of paper, but achieves that reduction
in brightness by reflecting only <b>18%</b> of the light that hits it. It
could well be called a &#8220;50% white&#8221; card or a &#8220;half bright&#8221; card; I suppose
the &#8220;18% gray&#8221; name was chosen because how much light it reflects is a
reference to a quantitatively measurable characteristic, as opposed to a
subjective characteristic of human perception like brightness.

</p><p>

Anyway, because of this non-linear nature of brightness perception, color
spaces are more efficient with their finite amount of encoding space if
they encode brightness in a non-linear fashion as well. This non-linear
component is the color space's <a
href='http://en.wikipedia.org/wiki/Gamma_correction'>gamma</a>.

</p>
<p><b>Continued on the Next Page</b></p>
<p>

If you're really interested in the design tradeoffs that go into a color
space, you'll want to continue with the next page: <a
href='http://regex.info/blog/photo-tech/color-spaces-page6/'>Page 6:
Color-Space Design Tradeoffs</a>.

</p><p>

However, if you'd like to skip that, jump right to <a href='http://regex.info/blog/photo-tech/color-spaces-page7/'>Page 7: Recommendations and Links</a>.


</p>







]]></content:encoded>
			<wfw:commentRss>http://regex.info/blog/photo-tech/color-spaces-page5/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
