Blame gnome-help/C/color-whatisspace.page

Packit Bot 4b9ea4
Packit Bot 4b9ea4
      xmlns:its="http://www.w3.org/2005/11/its"
Packit Bot 4b9ea4
      type="topic" style="question"
Packit Bot 4b9ea4
      id="color-whatisspace">
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <info>
Packit Bot 4b9ea4
    <link type="guide" xref="color#profiles"/>
Packit Bot 4b9ea4
    <link type="seealso" xref="color-whatisprofile"/>
Packit Bot 4b9ea4
    <desc>A color space is a defined range of colors.</desc>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
    <credit type="author">
Packit Bot 4b9ea4
      <name>Richard Hughes</name>
Packit Bot 4b9ea4
      <email>richard@hughsie.com</email>
Packit Bot 4b9ea4
    </credit>
Packit Bot 4b9ea4
    <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
Packit Bot 4b9ea4
  </info>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <title>What is a color space?</title>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    A color space is a defined range of colors.
Packit Bot 4b9ea4
    Well known color spaces include sRGB, AdobeRGB and ProPhotoRGB.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    The human visual system is not a simple RGB sensor, but we can
Packit Bot 4b9ea4
    approximate how the eye responds with a CIE 1931 chromaticity diagram
Packit Bot 4b9ea4
    that shows the human visual response as a horse-shoe shape.
Packit Bot 4b9ea4
    You can see that in human vision there are many more shades of green
Packit Bot 4b9ea4
    detected than blue or red.
Packit Bot 4b9ea4
    With a trichromatic color space like RGB we represent the colors
Packit Bot 4b9ea4
    on the computer using three values, which restricts up to encoding
Packit Bot 4b9ea4
    a triangle of colors.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <note>
Packit Bot 4b9ea4
    

Packit Bot 4b9ea4
      Using models such as a CIE 1931 chromaticity diagram is a huge
Packit Bot 4b9ea4
      simplification of the human visual system, and real gamuts are
Packit Bot 4b9ea4
      expressed as 3D hulls, rather than 2D projections.
Packit Bot 4b9ea4
      A 2D projection of a 3D shape can sometimes be misleading, so if
Packit Bot 4b9ea4
      you want to see the 3D hull, use the gcm-viewer
Packit Bot 4b9ea4
      application.
Packit Bot 4b9ea4
    

Packit Bot 4b9ea4
  </note>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  <figure>
Packit Bot 4b9ea4
    <desc>sRGB, AdobeRGB and ProPhotoRGB represented by white triangles</desc>
Packit Bot 4b9ea4
    <media its:translate="no" type="image" mime="image/png" src="figures/color-space.png"/>
Packit Bot 4b9ea4
  </figure>
Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    First, looking at sRGB, which is the smallest space and can encode
Packit Bot 4b9ea4
    the least number of colors.
Packit Bot 4b9ea4
    It is an approximation of a 10 year old CRT display, and so most
Packit Bot 4b9ea4
    modern monitors can easily display more colors than this.
Packit Bot 4b9ea4
    sRGB is a least-common-denominator standard and is used
Packit Bot 4b9ea4
    in a large number of applications (including the Internet).
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    AdobeRGB is frequently used as an editing space.
Packit Bot 4b9ea4
    It can encode more colors than sRGB, which means you can change
Packit Bot 4b9ea4
    colors in a photograph without worrying too much that the most vivid
Packit Bot 4b9ea4
    colors are being clipped or the blacks crushed.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    ProPhoto is the largest space available and is frequently used for
Packit Bot 4b9ea4
    document archival.
Packit Bot 4b9ea4
    It can encode nearly the whole range of colors detected by the human
Packit Bot 4b9ea4
    eye, and even encode colors that the eye cannot detect!
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    Now, if ProPhoto is clearly better, why don’t we use it for everything?
Packit Bot 4b9ea4
    The answer is to do with quantization.
Packit Bot 4b9ea4
    If you only have 8 bits (256 levels) to encode each channel, then a
Packit Bot 4b9ea4
    larger range is going to have bigger steps between each value.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    Bigger steps mean a larger error between the captured color and the
Packit Bot 4b9ea4
    stored color, and for some colors this is a big problem.
Packit Bot 4b9ea4
    It turns out that key colors, like skin colors are very important,
Packit Bot 4b9ea4
    and even small errors will make untrained viewers notice that something
Packit Bot 4b9ea4
    in a photograph looks wrong.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    Of course, using a 16 bit image is going to leave many more steps and
Packit Bot 4b9ea4
    a much smaller quantization error, but this doubles the size of each
Packit Bot 4b9ea4
    image file.
Packit Bot 4b9ea4
    Most content in existence today is 8bpp, i.e. 8 bits-per-pixel.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
    Color management is a process for converting from one color space to
Packit Bot 4b9ea4
    another, where a color space can be a well known defined space like
Packit Bot 4b9ea4
    sRGB, or a custom space such as your monitor or printer profile.
Packit Bot 4b9ea4
  

Packit Bot 4b9ea4
Packit Bot 4b9ea4
</page>