Flux rss

Computer representation of colour

Colour representations

In order to be able to handle colours correctly and to exchange colorimetric information it is necessary to have the means to categorize them and to choose them. Thus, it is not uncommon to have the choice of the colour of a product before it is even manufactured. In this case, a palette is presented, in which the appropriate colour is selected. Most of the time, the product (vehicle, building, etc) has a colour which corresponds to that selected.

Likewise in IT, it is essential to have a means of choosing a colour among all those that are usable. However, the possible colour range is very vast and the image processing chain passes through various peripheral devices: for example, a digitizer (scanner) followed by image improvement software, and finally a printer. It is thus necessary to be able to represent the colour in a reliable way in order to ensure coherence between these various peripheral devices.

The mathematical representation of a set of colours is thus called the "colour space". There are several, among which the best known are:

The colour spectrum that a peripheral display device allows to be shown is called a gamut or colorimetric space. The colours not belonging to the gamut are called out-of-range colours.

Selection of colours in software

Most graphic software offers means of selecting a colour in an interactive way. The main one is often the swatch chart, that is, the colours are presented in a table in which they are classified by nuances:

Swatch chart

More and more software is integrating more powerful tools however, allowing the choice of a colour from a vast range. Thus, in the colour selector below, the hue is represented by a chromatic disc, while luminance is represented by a vertical selector offering the colour nuances ranging from black to white.

Colour selector

In the selector below on the other hand, the hue is presented as an X-coordinate of the selector on the left, and the saturation is presented as a Y-coordinate. The selector on the right-hand side makes it possible to regulate the luminosity:

Colour selector

Gamma factor

The criterion that defines the nonlinear character of the luminous intensity of an element is called the facteur gamma.

Thus, the luminance of a computerscreen is nonlinear insofar as  :

  • the luminous intensity which it emits is not linearly proportional to the voltage applied, but corresponds to a function curve of the screen gamma (usually between 2.3 and 2.6):
    I ~ Vgamma
  • the luminous intensity perceived by the eye is not proportional to the quantity of light actually emitted

In order to overcome this and to obtain a satisfactory reproduction of the luminous intensity, it is possible to compensate for luminance by applying a transformation called a "gamma correction".

Gamma correction

Thus, there is a gamma transformation corresponding to each peripheral display device, which is itself capable of being adapted to the perception of the user.

Colour management

It is easy to understand the interest regarding image colours when passing through several peripheral devices (a digital chain made up for example of a scanner, an image processing software and then a printer) in order to make sure that the image at the end of the processing chain has colours close to those of the original image. The group of operations that are necessary to guarantee the good conservation of the colours of an image is known as "colour management".

In order to be able to guarantee colour coherence, it is essential to calibrate (or gauge) all the devices or tools of the digital chain. The calibration (or gauging) of a device or tool thus consists in describing all the colours which it is capable of acquiring or producing (i.e. its gamut) in an independent colour space (for example CIE Lab or CIE XYZ) in a file called an ICC profile (International Color Consortium).

This ICC profile is integrated in the image and conveys the entire set of transformations which it underwent along the image processing chain, as a follow-up log.

Last update on Thursday October 16, 2008 02:43:16 PM.

This document entitled « Computer representation of colour » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.
Data transmission - Introduction The purpose of a network is to transmit information from one computer to another. To do this, you first have to decide how to encode the data to be sent, in other words its computer representation. This will differ according to the type of data,... en.kioskea.net/transmission/transintro.php3
Video and digital imaging - Computer graphics The field of the IT concerning the creation and the handling of digital images is called computer graphics. Computer graphics cover various areas of knowledge, including the representation of graphic elements (text, image or video), as well as their... en.kioskea.net/video/affich.php3
Printing in colour? Hell with my computer! I need to know how to print in colour for my dads menu and if i don't, I'll get DONE Please help! en.kioskea.net/forum/affich-524-printing-in-colour
Connecting two computers with a USB cable.Connecting two computers with a USB cable. What to choose? How does it work? What to do? If you have to transfer huge files from one PC to another, using a flash disk or burning a CD-ROM can seem like a waste of time. One wise way... en.kioskea.net/faq/sujet-342-connecting-two-computers-with-a-usb-cable
How to connect two computers with a USB CableHow to connect two computers with a USB Cable One of the best and fastest ways for connecting two computers is by using a USB-USB cable. This process allows you to transfer files from one computer to another and share internet connection. The... en.kioskea.net/faq/sujet-345-how-to-connect-two-computers-with-a-usb-cable
How to test your computer's power supplyHow to test your computer’s power supply To be able to test your computer’s power supply, you can follow the instructions below: 1. Turn off your power switch and plug it out from the power supply. 2. Remove the cable from the CPU and... en.kioskea.net/faq/sujet-323-how-to-test-your-computer-s-power-supply
Black screen after windows load (Solved)my computer has recently decided to show nothing but a blank screen after the windows load screen has finished. the screen flickers with random colours then switches to standby mode. the computer has no problem loading up in safe mode, so i have run... en.kioskea.net/forum/affich-6888-black-screen-after-windows-load
No start up on laptopHello, my laptop is about 20 months old. In the last few weeks when surfing the net the screen suddenly goes wonky and the colours of the site are patterned 'sideways' 45 degrees across the screen. Then the computer would sometimes stop, but... en.kioskea.net/forum/affich-40915-no-start-up-on-laptop
Computer will not load past welcome screenHello, My computer, after not being used for a few months logged into windows and the internet just fine, once....then it stopped going to web pages. So I restarted the computer. Then XP would load to the welcome screen, and the next screen it shows... en.kioskea.net/forum/affich-18121-computer-will-not-load-past-welcome-screen
'Sims' creator lets people play god in new computer gameComputer buff Will Wright created a multi-billion-dollar franchise with "The Sims" video games that let people play at real life affairs such as dating, working and raising children. Now from September, Wright will let people play god with his latest... en.kioskea.net/actualites/sims-creator-lets-people-play-god-in-new-computer-game-10300-actualite.php3
'Spore' computer game aliens coming to virtual lifeFile photo shows Will Wright, creator of computer game hits such as SimCity and The Sims, and the highly anticipated "Spore," at the Electronic Arts office in Emeryville, California. Alien beings destined to inhabit the "Spore" computer game after... en.kioskea.net/actualites/spore-computer-game-aliens-coming-to-virtual-life-10462-actualite.php3
Mind games: computer headset lets brain control actionEmotiv cofounder Tan Le wears an Emotiv EPOC headset that senses her smile and wink, causing a computer-generated cartoon robot to mirror her expression. Emotiv says the EPOC gaming headset it will have on the market in time for the year-end holiday... en.kioskea.net/actualites/mind-games-computer-headset-lets-brain-control-action-10512-actualite.php3
Video and digital imaging - The YUV format The YUV standard (also called CCIR 601), known before as YCrCb (Y Cr Cb), is a colour representation model dedicated to analogue video. It is based on a video transmission mode with separate components using three different cables to carry... en.kioskea.net/video/yuv-ycrcb.php3
Video and digital imaging - HSL (TSL) coding The HSL Model (Hue, Saturation, Luminance), based on the work of painter Albert H.Munsell (who created the Munsell Atlas), is a representation model known as “natural”, that is, close to the physiological perception of colour by the human... en.kioskea.net/video/hsl-tsl.php3
Computer - Sound card The sound card (also called an audio card) is the part of a computer which manages its audio input and ouput. It is usually a controller which can be inserted into an ISA slot (or PCI for more recent ones), but more and more motherboards include... en.kioskea.net/pc/carte-son.php3