This application claims the benefit, under 35 U.S.C. §119, of French Patent Application No. 0653883 filed Sep. 21, 2006.
1. Field of the Invention
The invention relates to a method for converting colours from one colour space, known as source colour space, into a colour space referred to as destination colour space.
2. Description of the Prior Art
Such a method may notably be used for the display of images by means of a device such as a plasma display screen or LCD (liquid crystal display) screen. Starting from source signals that express colour vectors in a source colorimetric space, independent of any device, such as for example a standard CIE space XYZ, or xyY, it is required that these colour vectors be expressed in a colour space particular to the display device, or destination space, and that the destination signals, capable of driving this device for displaying these colours, be thus obtained. For conventional display devices using three primary colours (red, green, blue), such a colour space particular to the device is generally denoted RGB and the components of each colour correspond to the control signal for each primary colour. This method is used in an analogous manner for printing an image, notably by means of a printer or film, and the three primary colours then generally correspond to cyan, magenta and yellow, the destination space then being denoted CMY; the space CMYK, where K denotes black, is preferably used.
Such a method may be used in reverse for capturing images by means of a device, such as for example a camera or a scanner. Starting from source signals delivered by the camera that express colour vectors in a colour space particular to the imaging device, or source space, generally denoted RGB, it is required that these colour vectors be expressed in a destination calorimetric space independent of any device, such as for example a standard CIE space XYZ, or xyY, and that signals capable, for example, of the transmission, storage and/or processing of the captured images be thus obtained.
In order to carry out such a conversion from one colour space-to another, a look-up table between certain colour vectors of the source space and certain colour vectors of the destination space is generally used; this table is generally obtained by a series of calorimetric measurements. This table may be seen as modelling the behaviour of the display or image capture device. To each row of this table, there corresponds a colour vector in the source colour space and in the destination colour space, and an end point of this vector which will be used as a node for the mesh of one and/or of the other space; each row of this table therefore contains the values of the components of the colour vector expressed in the source space and the values of the components of the same colour vector expressed in the destination space. By connecting the ‘nodes’ corresponding to the various-rows of this table, a mesh of one and/or of the other space is obtained, in such a manner that a mesh may be associated with any given colour vector of one or other space, to which mesh the end of this vector belongs.
In order to perform such a conversion from one colour space to another, interpolation means are generally then used whose general .principle is as follows: given a source colour vector to be converted, identified by the values of its components expressed in the source space, the mesh of the source space to which it belongs, the nodes that bound this mesh and the components of these nodes in the source space are identified, which are found in the rows of the look-up table; to this mesh of the source space there corresponds a mesh of the destination space, nodes that bound this mesh and components of these nodes in the destination space that are found in the same rows of the look-up table; starting from the position of the end of the source colour vector in the mesh of the source space, the position of the end of this vector in the corresponding mesh of the destination space can be deduced by interpolation, and since, thanks to the look-up table, the components of the nodes of this mesh expressed in the destination space are known, the components of the colour vector in this destination space are finally deduced; thus the values of the components of the destination colour vector sought are now able to be interpolated. It should be noted that the determination of the position of the end of the source vector in the mesh amounts to comparing the values of the components of the source colour vector to be converted with the values of the components of the colour vectors Which correspond to the nodes, expressed in the source space.
The documents U.S. Pat. Nos. 5,786,908, 6,034,667, 6,781,596, EP1223765 and US2005/128497 describe such methods based on look-up tables (LUT) and various interpolation algorithms, for example: tri-linear interpolation where each mesh comprises eight nodes, tetrahedral interpolation where each mesh comprises four nodes, prismatic interpolation where each mesh comprises six nodes.
Such conversions from one colour space to another require time and processing means that are sometimes too weighty for practical use. Indeed, colour spaces are generally at least three-dimensional, which makes the interpolation operations particularly complex.
In the case where the source and destination colour spaces each have a component correlated to the luminance, the other components then being chromatic components, the documents U.S. Pat. Nos. 5,650,942, 6,335,800 and EP1011263 teach that the .conventional three-dimensional interpolation operation is decomposed into a two-dimensional interpolation operation on the chromatic components and a scalar interpolation operation (one-dimensional space) on the component correlated to the luminance; each interpolation operation uses its own look-up table.
Such a decomposition advantageously allows the conversion calculations to be simplified and accelerated, notably because simpler look-up tables can be used. In practice, starting from any given source colour space, it is possible to perform, by a simple linear operation, a preliminary conversion towards another source colour space one component of which is correlated to the luminance, the other components then being chromatic components; thus, it is very easy to go from the space XYZ to the space xyY, where x=X/(X+Y+Z) and y=Y/(X+Y+Z), Y representing the luminance and x and y the tri-chromatic components; the reverse is true for the destination space. Consequently, the two-step interpolation method can be used for conversions between any given colour spaces, with the caveat of adding a preliminary linear conversion step between source colour spaces and/or a final linear conversion step between destination colour spaces.
One goal of the invention is to further improve the space conversion process described in the documents U.S. Pat. Nos. 5,650,942, 6,335,800 and EP1011263.
For this purpose, the invention relates to a method for converting the n components xS, yS, SS of a colour vector expressed in an n-dimensional source colour space into m components RD, GD, ΣD of this same vector expressed in an m-dimensional destination colour space, the said n components comprising a source luminance component SS and n-1 source chromatic components xS, yS, the said m components also comprising a destination luminance component ΣD and m-1 destination chromatic components RD, GD, the said method comprising:
More precisely, according to the invention, for the interpolation operation of the second operation, a normalized luminance look-up table is used comprising a plurality of pairs SS-N, ΣD-N of values comprising a normalized luminance component SS-N in the source colour space and a normalized luminance component ΣD-N in the destination colour space.
Preferably, in order to go from a luminance component in the source space SS or in the destination space ΣD of the colour vector to be converted to a normalized luminance component in the source space SS-N or in the destination space ΣD-N of the same colour vector, the following equations are used:
where SINT-CR is the luminance component of the said intermediate colour vector in the source space.
Preferably, in the source colour space, the chromatic components XINT-CR, YINT-CR of the intermediate vector are equal to the chromatic components xS, yS of the vector to be converted.
Preferably, for the interpolation operation of the first operation, a chromatic look-up table is used that comprises a plurality of multiplets xS-Ci, yS-Ci, SS-Ci, RD-Ci, GD-Ci, ΣD-Ci with n+m values comprising the n components Xs-Ci, yS-Ci, SS-Ci that define a conversion colour vector in the source colour space and the m components RD-Ci, GD-Ci, ΣD-Ci that define this same conversion colour vector in the destination colour space. Advantageously, the ends of these colour vectors whose components appear in this look-up table form the nodes of a mesh of the source space and/or of a mesh of the destination space; preferably, this mesh is used for the interpolation operation.
According to a first variant, the source space is a calorimetric space independent of any device, and the destination space is a space dependent on a device, such as for example an image display device. As calorimetric space independent of any device a space derived from the CIE space XYZ is preferably chosen.
According to a second variant, the destination space is a calorimetric space independent of any device, and the source space is a space dependent on a device, such as for example an image capture device. As calorimetric space independent of any device a space derived from the CIE space XYZ is preferably chosen.
The invention will be better understood upon reading the description that follows, presented by way of non-limiting example and with reference to the appended figures, in which:
An embodiment of the method according to the invention will now be described that may be applied to the control of a tri-chromatic image display device; the starting point is therefore from a CIE colour space XYZ that is independent of any device in which each pixel of an image to be displayed is represented by a colour vector comprising three components X, Y and Z. The object of the method according to the invention is to express this vector in another colour space, conventionally denoted RGB, which is associated with the image display device in such a manner that the three components of each colour vector of this space correspond to three control signals for this device capable of displaying the said colour.
A first step of the conversion method consists in going from the colour space XYZ to the derivative space xyS which separates more precisely the two chromatic components x and y from a component correlated to the luminance S. This conversion is carried in a manner known per se by a simple linear operation according to the equations: S=X+Y+Z, x=X/S and y=Y/S. In parallel, in the destination space, a component correlated to the luminance is identified, which is defined for example as follows: Σ=R+G+B.
The following steps of the method therefore relate to the passage from the colour space referred to as source space xyS to the colour space referred to as destination space RBΣ.
In order to implement the method according to the invention, the starting point is the assumption that the conversion of the colour vectors takes place at constant proportion of colours; two simplified look-up tables can therefore be used:
The ends of the colour vectors of the chromatic look-up table are for example distributed uniformly in the destination space according to a homogeneous cubic mesh in the RGB space: if the values of the components are encoded over 10 bits (0 to 1023), the side of the elementary cubic mesh is for example equal to 93; each cubic mesh comprises eight corners which are the meshing nodes of this space; the entire space therefore comprises 10×10 elementary cubic meshes; the maximum values of R, G and B are then 930.
As illustrated by Table 1, which is an extract from the chromatic look-up table used, each row of this table therefore comprises six columns: the first three, x, y et S respectively, are the components of a conversion colour vector in the source space, whose end forms a meshing node of this space, and the last three, R, G and Σ respectively, are the components of the same conversion colour vector in the destination space whose end also forms a meshing node of this space. In practice, in order to obtain this table, in a manner known per se, each triplet R, G, B (where B=Σ-R-G) is used as input signal of the display device, and the components X, Y, and Z of the image thus displayed by the device are measured, from which the triplet x, y, S is deduced.
To the homogeneous cubic meshing in the destination space, there then corresponds a two-dimensional mesh in the sub-space of the chromatic components x, y of the source space, as is shown in
The ends of the colour vectors of the luminance look-up table are for example distributed, in the destination space, over the following axes: the achromatic axis W, or ‘grey’ axis, for which R=G=B, which is therefore the diagonal of the cube RGB, and the three respective axes red R, green G and blue B; the one-dimensional meshing nodes are distributed for example uniformly along these axes for example in increments of 11 between the value 0 and the value 1023. On each axis, each mesh therefore corresponds to an interval of values of S on this axis. This look-up table-only comprises two columns: the first gives the value S of the component correlated to the luminance of a colour vector in the source space, and the second gives the value Σ of the component correlated to the luminance of the same colour vector in the destination space. In practice, in a manner known per se, the previously defined values of R, G, B (where B=Σ-R-G) of the one-dimensional mesh nodes of the white, red, green and blue axes are used as input signal of the display device, and the components X, Y, and Z of the image thus displayed by the device are measured, from which the value of S is deduced.
ΣNORM=(Max(Σ).930)/1023; SNORM=(Max(S).930)/1023;
then
The chromatic look-up table and the normalized luminance look-up table thus being obtained, the conversion method according to the invention may be applied in the following manner.
The components of the ‘black’ colour vector in the source space are furthermore evaluated, for example by measurement of these components (xK, yK, SK) while applying to the display device input signals of zero value (RK=GK=BK=0).
Any given colour vector is taken expressed, in the source colour space, by its chromatic components and by its component correlated to the luminance.
A preliminary operation of the method consists in subtracting the ‘black’ colour vector from the colour vector to be converted. The chromatic component values xS and yS and the component value SS correlated to the luminance are obtained. The values RD, GD, BD and ΣD=RD+GD+BD of the components of the colour vector in the destination RGB space are therefore sought.
The first true operation of the method consists of an interpolation in the chromatic sub-space of the source space: in this two-dimensional space which is meshed as shown in
In the case where the chromatic point corresponding to the values xS and yS were situated outside of the mesh of the chromatic sub-space of the source space, colour mapping methods, which are known per se and which will not be described here in detail, could be employed; a well-known method called ‘clipping’ consists for example in projecting the point onto one side of the nearest mesh.
As a preliminary step to the third step of the method, the normalized luminance component is calculated:
The second operation of the method consists of an interpolation in the sub-space of normalized luminance of the source space: in this space with a single dimension which is meshed along a single curve shown in
The third operation of the method is a mathematical calculation that gives the values sought RD, GD, and ΣD of the components of the colour vector in the destination RGΣ space. This is given by:
RD=RINT-CR.ΣD-N GD=GINT-CR.ΣD-N ΣD=ΣINT-CR.ΣD-N
Since the components of the ‘black’ colour vector are all zero in the destination space, no correction is to be applied here to the values of the components obtained RD, GD, and ΣD.
For the control of the display device, the values of RD, GD and BD are needed; the value of BD is deduced by the equation: BD=ΣD-RD-GD.
In summary, the method essentially comprises:
The same method, but the reverse of what has just been described, can be used to go from the RGB space associated with the display device or with a capture device to the XYZ space, independent of this device.
The invention is especially applicable to the cases where no linear relationship exists between the source space and the destination space, notably to image display devices that comprise three primary colours. The invention may thus be applied to cathode-ray tube devices, to plasma display screens, to LCD screens, to projectors with a single or with three micro-imagers, of the type using liquid crystals or micromirrors. The invention is especially applicable to high-dynamic-range devices that comprise a dual modulation stage, at least for the luminance, such as for example LCD screens backlit by a modulatable LED matrix.
The invention may also be applied to:
Number | Date | Country | Kind |
---|---|---|---|
06 53883 | Sep 2006 | FR | national |
Number | Name | Date | Kind |
---|---|---|---|
5060060 | Udagawa et al. | Oct 1991 | A |
5280344 | Witlin et al. | Jan 1994 | A |
5614925 | Braudaway et al. | Mar 1997 | A |
5991511 | Granger | Nov 1999 | A |
6335800 | Balasubramanian | Jan 2002 | B1 |
6847376 | Engeldrum et al. | Jan 2005 | B2 |
20030053682 | Haikin et al. | Mar 2003 | A1 |
20070081720 | Ok et al. | Apr 2007 | A1 |
Number | Date | Country |
---|---|---|
0 700 198 | Mar 1996 | EP |
0 778 546 | Jun 1997 | EP |
1 011 263 | Jun 2000 | EP |
Number | Date | Country | |
---|---|---|---|
20080074717 A1 | Mar 2008 | US |