1. Field of the Invention
The present invention relates to a color correction circuit for converting numerical values of R, G, and B with a matrix operation circuit in order to adjust a color tone of an image displayed on a device for performing color display based on a luminance of each colors R, G, and B.
2. Description of the Related Art
In recent years, there are increasing opportunities to display a picture image obtained by a camera on a monitor of a personal computer or to print the picture image by a printer. The sRGB color space format is generally used to reproduce the image with the same colors. Since an output image of the camera is adjusted to the sRGB format and the monitor output of the personal computer and the printer output are also adjusted to the sRGB format, the colors of output images are identical to each other. A color display device should be adjusted to display an input image data in the sRGB format with desired colors.
There is also a case where an output of the post-gamma circuit is directly connected to the LCD driving circuit without passing through the RAM. In this case, the post-gamma circuit is provided with an inverse gamma characteristic for LCD to perform data conversion (see JP 2002-232905 A).
In the calculation of the sRGB image data using the color correction circuit, there is a case where the 2.2th power conversion of the pre-gamma circuit, the precision of the matrix operation, the 0.45th power conversion of the post-gamma circuit, or the like leads to a shortage in resolution, causing unevenness in gradation or color due to bit error. In particular, when the number of colors of the image data is small as in the case of, for example, 260k (i.e., 262144 colors) in which 6 bits for each of R, G, and B or 65k (i.e., 65536 colors) in which 5 bits for R, 6 bits for G and 5 bits for B, the influence of the bit error is large, resulting in the clear observation of the unevenness in gradation or color. In addition, there is a problem that tendency in color varies in each display device.
When the matrix operation is performed in a display device so as to obtain colors suitable for sRGB, there is a case where a result obtained by color correction narrows an original color representation range (color gamut; also referred to as an NTSC ratio) of the display device.
In this case, as shown in
In order to solve the above-mentioned problems, according to the present invention, the following means are employed.
(1) A color correction circuit for adjusting a color tone on a display device for performing color display based on a luminance of each colors R, G, and B, includes: a pre-gamma circuit for converting numerical values of the R, G, and B; a matrix operation circuit for performing an operation using numerical values from the pre-gamma circuit; and a post-gamma circuit for converting numerical values from the matrix operation circuit. The pre-gamma circuit converts the numerical values of the R, G, and B into linear data. The post-gamma circuit converts the numerical values from the matrix operation circuit into nonlinear data. The number of bits for the numerical values from the pre-gamma circuit is made larger than the number of bits for the numerical values of each of the R. G, and B input to the pre-gamma circuit to increase resolution.
(2) A color correction circuit for adjusting a color tone of a display device for performing color display based on a luminance of each colors R, G, and B. includes: a pre-gamma circuit for converting numerical values of the colors R, G, and B; a matrix operation circuit for performing an operation using numerical values from the pre-gamma circuit; and a post-gamma circuit for converting numerical values from the matrix operation circuit. The number of bits for the numerical values from the pre-gamma circuit is increased to a value larger than the number of bits of the numerical value of each of the colors R, G, and B input in a range of two bits to four bits to increase a resolution.
(3) A color correction circuit for adjusting a color tone of a display device for performing color display based on a luminance of each colors R, G, and B, includes: a pre-gamma circuit for converting numerical values of the A, G. and a colors; a matrix operation circuit for performing an operation using numerical values from the pre-gamma circuit; and a post-gamma circuit for converting numerical values from the matrix operation circuit. An average color correction coefficient for the display device and a fine adjustment coefficient for finely adjusting a color variation of each display device are separately set. A result obtained by adding the respective coefficients to each other is set as a calculation coefficient for the matrix operation circuit.
(4) A color correction circuit for adjusting a color tone of a display device for performing color display based on a luminance of each colors R, G, and B, includes; a pre-gamma circuit for converting numerical values of the colors R, G, and B; a matrix operation circuit for performing a calculation using numerical value from the pre-gamma circuit; and a post-gamma circuit for converting numerical values from the matrix operation circuit. Each color correction coefficient for the display device is stored in a PROM as a calculation coefficient for the matrix operation circuit.
(5) In the color correction circuit of the present invention, a color correction mode (hereinafter referred to as mode 1) for original sRGB color representation and a color correction mode (hereinafter referred to as mode 2) for adjusting only an achromatic color such as white to an sRGB color can be used as a mode for a matrix operator. The mode 1 and the mode 2 are switched therebetween by an operation of a user.
According to the present invention, when, for example, the 2.2th power of sRGB image data is to be obtained by the pre-gamma circuit to converted into linear data, the number of bits of the image data is increased to a value larger than each of input R, G, and B values in a range of two bits to four bits to increase the resolution. The matrix operation unit performed high-precision operation using the image data whose resolution is high. For example, the number of bits of the image data is converted into the number of bits larger than the number of bits required for the image RAM by the 0.45th power conversion of the post-gamma circuit. The image data obtained after color correction is written into the image RAM through the dither circuit.
Accordingly, even when the number of colors of the image data is small, no gradation unevenness or color unevenness is caused by a bit error in the color correction operation.
The fine adjustment coefficient for adjusting a color variation of each display device is stored in the PROM as an operation coefficient for the matrix operation unit (coefficient for color correction). Therefore, a display device having no color variation can be realized.
The faithful sRGB color representation and the representation of color to some extent closer to the sRGB color in a state in which a color area of the display device is maintained can be selected by switching between the mode 1 and the mode 2. The mode 1 and the mode 2 are instantaneously switched therebetween by circuits, so the mode 1 and the mode 2 can be easily selected according to user preferences.
In the accompanying drawings:
Hereinafter, the present invention will be described by way of embodiments.
A matrix operator 110 performs a 3×3 matrix product and sum operation based on Expression 1 using the 2.2th power of a value of each of R, G, and B color correction coefficients 120 (a, b, c, d, e, f, g, h, i).
[R]=aR+bG+cB
[G]=dR+eG+fB
[B]=gR+hG+iB (Expression 1)
For example, it is assumed that the value of each of R, G, and B received by the matrix operator is eight bits and each of the color correction coefficients is eight bits, a result obtained by the operation becomes 16 bits. The result obtained by the matrix operation is converted into data corresponding to the 0.45th power thereof by a post-gamma circuit 430 and the data is stored in an image RAM as original sRGB color space format data. However, the scale of the post-gamma circuit becomes excessively large if the input data to the post-gamma circuit has 16 or more bits corresponding to the matrix operation without any change. It is therefore desirable to reduce the number of bits to the minimum with which image quality is not deteriorated.
Experimental results show that in the case where the number of bits for each of R, G, and B of the image data is 6, the number of bits for each of R, G, and B of the input date to the post-gamma circuit should be in the range of eight to ten to obtain necessary gradation level.
The post-gamma circuit 430 calculates the 0.45th power of the result obtained by the matrix operation, makes the number of bits equal to that of the original image data, and stores the calculated result into the image RAM.
In the case of 260k colors, the post-gamma circuit receives a result obtained by operation in a range of eight bits to ten bits in each of R, G, and B from the matrix operation circuit, and converts the received result into data of six bits of each of R, G, and B and stores the data into the image RAM. When the number of colors of the original image data is as small as 260k, the 2.2th power data conversion in the pre-gamma circuit or the 0.45th power data conversion in the post-gamma circuit may lead to a partial reduction in resolution, or a rounding error of the matrix operation causes slight in gradation or color on an image obtained after color correction conversion.
In order to prevent the abovementioned unevenness, a dither circuit 440 is provided between the post-gamma circuit and the image RAM.
As shown in the upper portion of
Since addition of offset values of 0, +0.25, +0.5, and +0.75 to the pixels labeled A, B, C, and D, respectively, increases an average intensity of the image by 0.5×LSB, as shown in a lower portion of
There is an alternative method of transferring the color correction coefficients as the matrix coefficient to the operator. As shown in
In the above-mentioned example, a semiconductor memory such as a PROM, an EPROM, or an EEPROM, an FeRAM made from a ferroelectric material or an MRAM from a magnetic material, or the like can be used as the nonvolatile memory for storing each fine adjustment coefficient 720 for the display device and each color correction coefficient 730 for the display device.
As shown in
Applicability of the color correction circuit according to the present invention to the mode 2 permits selection of the representation of colors close to sRGB colors while maintaining the gamut of the display device at the maximum if desired by a user. In the actual setting of the mode 2, correction coefficients for color variation to each display device, which is stored in the nonvolatile memory, is read and added to the average color correction coefficients for the display device to obtain the nine color correction coefficients (a, b, c, d, e, f, g, h, i). The diagonal coefficients (a+b+c, d+e+f, g+h+i) are then obtained and set as shown in
When the above-mentioned setting is performed by a user, the mode 2 can be selected. However, reading out from the nonvolatile memory or adding coefficient for resetting is a relatively complicated operation. Therefore, in order to solve this, a circuit shown in
The color correction coefficient obtained by adding the color variation correction coefficient for each display device and the average color correction coefficient for the display device which are stored in the nonvolatile memory is prepared in advance so as to be transferred as the matrix coefficient to the operator. As shown in
Alternatively, as shown in
The operation for operating the adders for the color correction coefficients as shown in
Number | Date | Country | Kind |
---|---|---|---|
2006-183427 | Jul 2006 | JP | national |
2007-021317 | Jan 2007 | JP | national |