1. Field of the Invention
The present invention relates to a technique of applying color conversion by a linear matrix transformation to an RGB signal.
2. Description of the Related Art
In image display devices such as TV devices, display devices, etc., chromaticity points of primary colors (RGB) that are actually displayed are usually different to the chromaticity points specified by standards such as the NTSC system. A linear matrix transformation is used as a simple method for correcting this.
Now, suppose that there are a first device and a second device in which the CIE-XYZ chromaticities of respective RGB primary colors are as follows.
For the first device, R: (Xr, Yr, Zr), G: (Xg, Yg, Zg), and B: (Xb, Yb, Zb).
For the second device, R: (Xr′, Yr′, Zr′), G: (Xg′, Yg′, Zg′), B: (Xb′, Yb′, Zb′).
The chromaticity (X, Y, Z) of luminance signal values (R, G, B) according to the first device can be represented by the following equation 1, and the chromaticity (X′, Y′, Z′) of luminance signal values (R′, G′, B′) according to the second device can be represented by the following equation 2.
Here, in order to make the chromaticity (X′, Y′, Z′) of the second device equal to the chromaticity (X, Y, Z) of the first device, the luminance signal values R′, G′, B′, which have been subjected to a 3×3 linear matrix transformation by the following equation 3, need only be supplied to the second device.
In Japanese patent application laid-open No. H05-068167, there is proposed a method of carrying out, in addition to equalization of color reproduction, image quality adjustment by means of this linear matrix transformation. This method controls color reproduction by calculating matrix coefficients of the linear matrix transformation (hereinafter simply referred to as “linear matrix coefficients”) by the use of individual controlled variables for the color level, contrast, brightness, and hue.
Such a linear matrix transformation is based on the premise that the chromaticity of each primary color is constant, without depending on the brightness thereof. In cases where this premise is not satisfied, in other words, when the chromaticity of a primary color changes, there occurs a case where the accuracy of color conversion may be decreased by a combination of the values of RGB.
As a technique to suppress the chromaticity change of each primary color, there has been known a method that is described in Japanese patent application laid-open No. 2005-354728. Specifically, in the Japanese patent application laid-open No. 2005-354728, there is disclosed processing of adding an offset value calculated from the value of R of an input signal and an offset value calculated from the value of G thereof to the value of B thereof, in order to suppress the chromaticity changes of R and G.
In addition, in Japanese patent application laid-open No. H04-021191, there is proposed a method of performing color signal correction by the use of 3D-LUTs. This method is to achieve color conversion with high accuracy by using a three-dimensional color data conversion table corresponding to a combination of the values of RGB.
As can be seen from
However, because the monochromatic chromaticity, in particular the chromaticity of B (blue), changes to a large extent, even if applying a simple linear matrix transformation as mentioned above, the accuracy of the color correction can not be expected. Nevertheless, if the method disclosed in the Japanese patent application laid-open No. 2005-354728 is applied so as to suppress the chromaticity change of B, the chromaticity of B will be adjusted to a chromaticity point of the lowest stimulus purity, and hence there is an adverse effect that a color reproduction range becomes narrow, thus making it impossible to reproduce the sRGB standard color gamut.
For this reason, in order to perform color correction of the display device having such a characteristic with high accuracy, in the past, 3D-LUTs as described in the Japanese patent application laid-open No. H04-021191 have to be used. But, such a scheme requires a huge amount of memory for storing tables, thus giving rise to a problem of high costs.
The present invention has been made in view of the aforementioned problems, and has for its object to provide a technique for performing color conversion with high accuracy while making use of the color reproduction range of a display device as much as possible.
The present invention in its first aspect provides a color signal processing apparatus which performs a linear matrix transformation, including: an approximate coefficient storage unit that stores approximate coefficients of approximate expressions, which approximate values of the matrix coefficients, respectively, and in which a value of a first color among three primary colors of RGB is made a variable, a matrix coefficient calculation unit that calculates 3×3 matrix coefficients according to an input RGB signal by substituting a value of the first color in the input RGB signal for the approximate expressions given by the approximate coefficients read out from the approximate coefficient storage unit; and a conversion unit that performs color conversion by multiplying the input RGB signal by the matrix coefficients calculated by the matrix coefficient calculation unit, and outputs color-converted RGB signal.
The present invention in its second aspect provides a color signal processing method which performs a linear matrix transformation, including the steps of: reading out approximate coefficients of approximate expressions, which approximate values of the matrix coefficients, respectively, and in which a value of a first color among three primary colors of RGB is made a variable, from an approximate coefficient storage unit that stores the approximate coefficients; calculating 3×3 matrix coefficients according to an input RGB signal by substituting a value of the first color in the input RGB signal for the approximate expressions given by the approximate coefficients read out; and performing color conversion by multiplying the input RGB signal by the calculated matrix coefficients, and to output color-converted RGB signal.
The present invention in its third aspect provides a non-transitory computer readable medium which stores a program for making a computer execute each step of the above-described color signal processing method.
According to the present invention, it is possible to carry out a highly accurate color conversion with the use of a small amount of memory while making use of the color reproduction range of a display device as much as possible.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
As a method for solving the above-mentioned problems, the present inventor has devised a method of applying a linear matrix transformation to a display device having a characteristic in which the chromaticities of primary colors change in accordance with the color signal values.
Now, reference will be made to a color signal processing method of the present invention by taking, as an example, a display device having a characteristic shown in
The present inventor calculated linear matrix coefficients (matrix coefficients) for each color signal value, with respect to the B primary color which is large in its chromaticity change, by the use of the chromaticity coordinates of each color signal value. At this time, the chromaticity coordinates of a maximum color signal value were used with respect to an R primary color and a G primary color which are small in their chromaticity change. Then, as a result of using a plurality of linear matrix coefficients obtained in this manner, selecting linear matrix coefficients according to the value of B in an input RGB signal, and performing color signal processing, a color difference with respect to an ideal value was improved to a large extent, as compared with a conventional method using a single linear matrix coefficient. From this result, it was found that a method of changing linear matrix coefficients adaptively according to the value of a primary color with a large chromaticity change was preferable.
However, in this method, it is necessary to create and store a plurality of linear matrix coefficients which are equal to the number of values which the B primary color can take. For example, in the case of an 8-bit color signal, 256 kinds of linear matrix coefficients are needed, and in the case of a 10-bit color signal, 1024 kinds of linear matrix coefficients are needed. Therefore, there remains the problem that a lot of time is required to create tables of coefficients, and at the same time the amount of memory for storing such tables becomes very large, thus resulting in difficulty in implementing such a method on products.
The present inventor has conducted further investigation so as to solve this problem.
Here, note that the polynomials as referred to above are only some examples of suitable approximate expressions for the display device which the present inventor investigated. The kind and order of the approximate expressions need only be selected in an appropriate manner according to the characteristic of the display device. At this time, it is preferable to use approximate expressions of smaller computational complexity (i.e., polynomials of lower orders in the case of polynomial approximations). In addition, in the above-mentioned example, the approximate expressions each having the signal value of B as a variable were used, but in cases where it is desired to take the chromaticity change of R into consideration, approximate expressions each having the signal value of R as a variable should be used. Also, in cases where it is desired to take the chromaticity change of G into consideration, approximate expressions each having the signal value of G as a variable should be used.
(Image Display Device)
The display panel 1701 is a flat display panel which has a plurality of display elements arranged in two dimensions. The display panel 1701 is provided with three kinds of display elements of red (R), green (G) and blue (B). Depending on a luminous body material (light emitting material) which is used for each color, etc., there appears the chromaticity change characteristic for each color, as shown in
The drive circuit 1702 has a signal processing circuit 1703, a modulation signal output circuit 1704, and a scanning signal output circuit 1705. The modulation signal output circuit 1704 supplies a modulation signal to the display panel 1701. The scanning signal output circuit 1705 supplies a scanning signal to the display panel 1701. The signal processing circuit 1703 performs necessary processing on a video signal inputted through an input line 1706, and supplies a luminance signal and a timing signal to the modulation signal output circuit 1704 and the scanning signal output circuit 1705. The signal processing circuit 1703 has a color signal processing apparatus 1707 which performs the above-mentioned linear matrix transformation.
Hereinafter, detailed reference will be made to preferred embodiments of the color signal processing apparatus 1707. In addition, in the following description, an RGB signal on which gamma correction adjusted according to the characteristic of a CRT has been carried out is called a “RGB color signal”, and an RGB signal, which is obtained by applying inverse gamma correction to such a color signal so as to provide a linear characteristic with respect to brightness, is called a “RGB luminance signal”.
In the approximate coefficient storage unit 105, there is beforehand stored approximate coefficients of approximate expressions, which approximate values of linear matrix coefficients, respectively, and in which the value of one specific color (hereinafter referred to as the “specific color” or the “first color”) of three primary colors of RGB is made a variable. In this embodiment, blue (B) is selected as a specific color, and a third-order polynomial is used as an approximate expression. For example, Rr among nine pieces of linear matrix coefficients shown in the equation 3 is defined as shown in the following equation by the use of the value v of the B signal.
Rr=Rr0+Rr1×v+Rr2×v2+Rr3×v3,
where four elements, Rr0, Rr1, Rr2 and Rr3, are approximate coefficients for a linear matrix coefficient Rr. The values of these four approximate coefficients are stored in the approximate coefficient storage unit 105. The same is true of other linear matrix coefficients Rg, Rb, Gr, Gg, Gb, Br, Bg, Bb.
An input RGB color signal 101 is inputted to the color signal processing apparatus. This signal is transmitted to the inverse gamma correction unit 102, where it is subjected to well-known inverse gamma correction and is converted into an RGB luminance signal. In addition, the value of the B signal in the input RGB color signal 101 is also transmitted to the linear matrix coefficient calculation unit 104.
The linear matrix coefficient calculation unit 104 calculates 3×3 pieces of linear matrix coefficients according to the input RGB color signal 101, by reading out approximate coefficients from the approximate coefficient storage unit 105, and substituting the value of the B signal (the value of the first color) for the approximate expressions given by the approximate coefficients. The linear matrix coefficients thus calculated are transmitted to the linear matrix operation unit 103.
The linear matrix operation unit 103 performs color conversion by multiplying the RGB luminance signal by the linear matrix coefficients (see the equation 3), and output a color-converted output RGB luminance signal 106.
According to the construction described above, even in cases where the chromaticity of the specific color changes according to the brightness thereof, accurate color conversion can be carried out. In addition, a chromaticity point at each given brightness of the specific color can be used substantially as it is, so it is possible to carry out color conversion while taking the best advantage of the color reproduction range of the display device. Moreover, the amount of memory required for storing the coefficients is also very small. For example, even if one approximate coefficient is held as data of 4 bytes, the amount of memory required is only 144 bytes.
In the first embodiment of
The color signal processing apparatus of this second embodiment is provided with, in addition to the construction of the first embodiment, a linear matrix selection unit 201, a constant unit 202, and a fixed linear matrix coefficient unit 203. The constant unit 202 is a memory that stores a constant which specifies a range in which a linear matrix coefficient calculated from an approximate expression is used. When using an approximate expression in cases where the value of a specific color is in the range of 0 through 102, as shown in
The value of the B signal in the input RGB color signal 101 is also transmitted to the linear matrix selection unit 201. The linear matrix selection unit 201 makes a comparison between the value of the B signal with the constant read out from the constant unit 202. When the value of the B signal is larger than this constant, the linear matrix selection unit 201 reads out the fixed linear matrix coefficient from the fixed linear matrix coefficient unit 203. On the other hand, in cases where the value of the B signal is equal to or less than this constant, the linear matrix selection unit 201 reads out the linear matrix coefficients calculated in the linear matrix coefficient calculation unit 104, as in the case of the first embodiment. The linear matrix operation unit 103 performs color conversion with the use of the linear matrix coefficients received from the linear matrix selection unit 201.
According to the construction of this second embodiment, each linear matrix coefficient can be defined by a second-order polynomial, so it is possible to reduce the circuit scales of the linear matrix coefficient calculation unit 104 and the approximate coefficient storage unit 105, as compared with the first embodiment.
As can be understood from
However, the above-mentioned effect is obtained most notably in the case where the one, among the three primary colors of RGB, of which a monochromatic chromaticity change due to a change of the signal value is most perceived by an observer is selected as a “specific color”. Accordingly, in a third embodiment, by making a comparison among the individual chromaticity changes of RGB, the color of which the monochromatic chromaticity change is most perceived is selected as a specific color. The other construction is the same as that of the above-mentioned embodiments. Here, for the purpose of evaluation of the chromaticity change, there can also be used, for example, color differences based on the CIE 1976 UCS chromaticity diagram, or the CIE 2000 color difference formula, or the results of subjective evaluation experiments.
In the above-mentioned embodiments, the chromaticity changes of the primary colors other than the specific color are not corrected. However, the influence of the chromaticity change of a primary color other than the specific color on color conversion accuracy may not be able to be ignored. In such a case, in order to suppress the chromaticity change of a primary color (hereinafter referred to as a “second color”) other than the specific color (i.e., other than the first color), there can be made use of a construction for chromaticity stabilization as proposed in the above-mentioned Japanese patent application laid-open No. 2005-354728, which is incorporated herein by reference.
In
According to the construction of this fourth embodiment, the chromaticity of the second color can be apparently fixed, although the color gamut thereof becomes narrow. Accordingly, it is possible to achieve color conversion with higher precision while maintaining the advantage of being able to make use of the largest color gamut for the specific color.
In the above-mentioned fourth embodiment, the chromaticity of at least one primary color other than the specific color is corrected. However, the changes of the chromaticities of primary colors other than the specific color can be practically ignored in many cases. In such cases, the first through third embodiments can be applied in a preferable manner.
In the constructions of the above-mentioned first through third embodiments, approximate coefficients need only be created, while regarding the chromaticities of primary colors other than the specific color as fixed values. At this time, it is appropriate to select, as the chromaticity of each primary color other than the specific color, the chromaticity value of the primary color at the time when the brightness thereof becomes the highest. This is because human color discrimination ability is higher in a bright place than in a dark place. Thus, by setting the chromaticities of primary colors other than the specific color in this manner, there is also provided an effect that the scale or size of circuitry can be made small.
<Other Modifications>
The present invention is not limited to the constructions of the above-mentioned embodiments, but can be changed or modified in a variety of ways as appropriate within the scope of its technical concept. For example, the same modification as that of the first embodiment can be made to the second through fifth embodiments.
The present invention can be applied to a system which is composed of a plurality of equipment (for example, a computer main body and a display device, a broadcast receiver and a display device, etc.), or can also be applied to a device consisting of a single equipment (for example, a display device, a TV device, etc.).
In addition, the object of the present invention is also achieved by supplying to the system a storage medium which has recorded thereon the code of a computer program to implement the functions stated above, so that the code of the computer program is read out and executed by means of the system. In this case, the code of the computer program read out of the storage medium itself achieves the functions of the above-mentioned embodiments, and the storage medium with the code of the computer program stored thereon constitutes the present invention. Moreover, the present invention also includes a case in which an operating system (OS), etc., which works on a computer, carries out part or all of actual processing based on instructions of the program cord, so that the above-mentioned functions are achieved by that processing.
Further, the present invention may be achieved by the following form. That is, the code of a computer program read out of a storage medium is written into a memory provided in a function expansion card which has been inserted into a computer, or a memory provided in a function expansion unit which has been connected to a computer. Then, a CPU, etc., which is provided in the function expansion card or the function expansion unit, carries out part or all of actual processing based on instructions of the code of the computer program, thereby achieving the above-mentioned functions. Such a case is also included in the present invention.
In cases where the present invention is applied to the above-mentioned storage medium, the code of the computer program previously explained is stored in the storage medium.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2010-92540, filed on Apr. 13, 2010, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2010-092540 | Apr 2010 | JP | national |