~ubuntu-branches/ubuntu/precise/gnome-user-docs/precise

« back to all changes in this revision

Viewing changes to gnome-help/hi/color-whatisspace.page

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2011-09-12 09:23:35 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: package-import@ubuntu.com-20110912092335-11udas9xjsi3g6n0
Tags: 3.1.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="color-whatisspace" xml:lang="hi">
 
3
 
 
4
  <info>
 
5
    <link type="guide" xref="color#profiles"/>
 
6
    <link type="seealso" xref="color-whatisprofile"/>
 
7
    <desc>A color space is a defined range of colors.</desc>
 
8
    <credit type="author">
 
9
      <name>Richard Hughes</name>
 
10
      <email>richard@hughsie.com</email>
 
11
    </credit>
 
12
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
 
13
  </info>
 
14
 
 
15
  <title>What is a color space?</title>
 
16
 
 
17
  <p>
 
18
    A colorspace is a defined range of colors.
 
19
    Well known colorspaces include sRGB, AdobeRGB and ProPhotoRGB.
 
20
  </p>
 
21
 
 
22
  <p>
 
23
    The human visual system is not a simple RGB sensor, but we can
 
24
    approximate how the eye responds with a CIE 1931 chromacity diagram
 
25
    that shows the human visual response as a horse-shoe shape.
 
26
    You can see that in human vision there is many more shades of green
 
27
    detected than blue or red.
 
28
    With a trichromatic colorspace like RGB we represent the colors
 
29
    on the computer using three values, which restricts up to encoding
 
30
    a <em>triangle</em> of colors.
 
31
  </p>
 
32
 
 
33
  <note>
 
34
    <p>
 
35
      Using models such as a CIE 1931 chromacity diagram is a huge
 
36
      simplification of the human visual system, and real gamuts are
 
37
      expressed as 3D hulls, rather than 2D projections.
 
38
      A 2D projection of a 3D shape can sometimes be misleading, so if
 
39
      you want to see the 3D hull, use the <code>gcm-viewer</code>
 
40
      application.
 
41
    </p>
 
42
  </note>
 
43
 
 
44
  <figure>
 
45
    <desc>sRGB, AdobeRGB and ProPhotoRGB represented by white triangles</desc>
 
46
    <media type="image" mime="image/png" src="figures/color-space.png"/>
 
47
  </figure>
 
48
 
 
49
  <p>
 
50
    First, looking at sRGB, which is the smallest space and can encode
 
51
    the least number of colors.
 
52
    It it an approximation of a 10 year old CRT display, and so most
 
53
    modern monitors can easily display more colors than this.
 
54
    sRGB is a standard <em>least-common-demoninator</em> standard and
 
55
    is used in a large number of applications (including the Internet).
 
56
  </p>
 
57
  <p>
 
58
    AbodeRGB is frequently used as an <em>editing space</em>.
 
59
    It can encode more colors than sRGB, and means you adjust colors in
 
60
    a photograph without worrying too much that the brightnest colors
 
61
    are being clipped or the blacks crushed.
 
62
  </p>
 
63
  <p>
 
64
    PhoPhoto is the largest space available and is frequently used for
 
65
    document archival.
 
66
    It can encode nearly the whole range of colors detected by the human
 
67
    eye, and even encode colors that the eye cannot detect!
 
68
  </p>
 
69
 
 
70
  <p>
 
71
    Now, if PhoPhoto is clearly better, why don't we use it for everything?
 
72
    The answer is to do with <em>quantisation</em>.
 
73
    If you only have 8 bits (256 levels) to encode each channel, then a
 
74
    larger range is going to have bigger steps between each value.
 
75
  </p>
 
76
  <p>
 
77
    Bigger steps mean a larger error between the captured color and the
 
78
    stored color, and for some colors this is a big problem.
 
79
    It turns out that key colors, like skin colors are very important,
 
80
    and even small errors will make untrained viewers notice that something
 
81
    in a photograph looks wrong.
 
82
  </p>
 
83
  <p>
 
84
    Of course, using a 16 bit image is going to leave many more steps and
 
85
    a much smaller quantisation error, but this doubles the size of each
 
86
    image file.
 
87
    Most content in existance today is 8bpp, i.e. 8 bits-per-pixel.
 
88
  </p>
 
89
  <p>
 
90
    Color managment is a process for converting from one colorspace to
 
91
    another, where a color space can be a well known defined space like
 
92
    sRGB, or a custom space such as your monitor or printer profile.
 
93
  </p>
 
94
 
 
95
</page>