~ubuntu-branches/ubuntu/vivid/ubuntu-kylin-docs/vivid

« back to all changes in this revision

Viewing changes to ubuntu-kylin-help/C/color-whatisspace.page

  • Committer: Package Import Robot
  • Author(s): Lei Luo
  • Date: 2014-04-10 14:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20140410145812-9mfgq3xleqy0l89f
Tags: 14.04.3

* Add "Replaces" field in debian control file to automatically remove
  ubuntu-docs before installation.
* Merge ubuntu-docs changes.
* Update zh_CN tranlation.

Show diffs side-by-side

added added

removed removed

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