1. Field of the Invention
The present invention relates to an apparatus and a method of adaptively converting an input image to be displayed on an image display system into an output image reflecting a user's preferred color temperature.
2. Description of the Related Art
In order to convert a color temperature into a user's preferred one, a TV or a monitor has commonly a control terminal capable of varying the quantity of hues, or red, green and blue (RGB) colors. By adjusting the control terminal for an arbitrary image or scene, a user could adjust a color temperature according to the user's preference. However, adjusting the control terminal by the user in moving pictures having a variety of scenes of digital contents when necessary causes much inconvenience.
Currently, a lot of research activities on software-based methods of estimating an illumination color or a color temperature of an image are being carried out. By using these methods of estimating a color temperature of an image, a color temperature conversion method of converting an input image into an image having a user's preferred color temperature can be considered. When a color temperature is converted, if an estimated color temperature of an input image is converted simply into a single color temperature preset by a user, the following problem can arise.
That is, by converting a color temperature into a preset single color temperature even when the color temperature of an input image is lower or higher than the user's preferred color temperature, characteristics of the input image can be lost. For example, input images having lower red-color-family color temperatures or higher blue-color-family color temperatures are mapped to an image having a single temperature such that the characteristics of the input images can be lost.
The present invention provides an apparatus for adaptively converting an input image to be displayed on an image display system into an output image reflecting a user's preferred color temperature in which image conversion is performed by adaptively adjusting the amount of color temperature conversion on the basis of a user's preferred color temperature, according to the difference of an estimated color temperature of the input image and a reference color temperature, and a method thereof.
According to an aspect of the present invention, there is provided an image conversion apparatus for adaptively converting an input image into an output image reflecting a user's preferred color comprising: a color temperature estimation unit estimating a color temperature of the input image; a target color temperature calculation unit receiving the estimated color temperature and the user's preferred color temperature, and obtaining a target color temperature adaptively varying on the basis of the user's preferred color temperature according to the difference of the estimated color temperature and a preset reference color temperature; and a color temperature conversion unit obtaining a color temperature conversion coefficient from the estimated color temperature and the target color temperature and converting the input image into the output image based on the color temperature conversion coefficient.
According to another aspect of the present invention, there is provided an image conversion method for adaptively converting an input image into an output image reflecting a user's preferred color comprising: estimating a color temperature of the input image; receiving the estimated color temperature and the user's preferred color temperature, and obtaining a target color temperature adaptively varying on the basis of the user's preferred color temperature according to the difference of the estimated color temperature and a preset reference color temperature; and obtaining a color temperature conversion coefficient from the estimated color temperature and the target color temperature and converting the input image into the output image based on the color temperature conversion coefficient.
According to still another aspect of the present invention, there is provided a computer-readable recording medium having recorded thereon computer-readable programs for performing the above method.
Additional and/or other aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
These and/or other aspects and advantages of the present invention will become apparent and more readily appreciated from the following detailed description, taken in conjunction with the accompanying drawings of which:
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.
Referring to
Generally, colors in an image are expressed by tristimulus values such as RGB or Commission internationale de I'Eclairage (CIE) XYZ. A color Xk is mathematically expressed as the sum of products of the spectral reflectance S(λ) of an object surface, the spectrum E(λ) of an illuminant lighting the object, and the wavelength of the spectral characteristic rk(λ) of a sensor such as a camera, as shown in Equation 1. The illumination element in Equation 1 is a major element affecting the entire color tone of an image regardless of the type of an object:
Xk=ΣE(λ)S(λ)rk(λ)Δλ,k=1˜3(X,Y,Z or R,G,B) (1)
The color temperature of an image means the spectrum of the illuminant, that is, the color of the illuminant. In an image display apparatus such as a TV and a monitor, a light emitting device, such as a cathode ray tube (CRT) and a liquid crystal display (LCD), is also a major element affecting the color temperature in addition to the color of the illuminant in the image.
Color expression in an image is defined differently in many international standards such as the National Television System Committee (NTSC) and HDTV. The reason is that a color expression medium such as a color filter or phosphor, in a CRT and LCD, cannot comply with the protocols described in the standards. In addition, since CIE 1931 or 1964 standard observer is different from the visual characteristics of actual human beings, each of individuals watching TVs or computer monitors requires a different preferred color feeling.
Up to now, a lot of research activities have been performed for estimation of an illumination color in an image. Among representative ones, there are U.S. Pat. No. 4,685,071, U.S. Pat. No. 5,495,428, International Journal on Computer Vision Vol. 4, No. 1, pp 7˜38, 1990, and Korean Patent Publication Nos. 2000-38213 and 2001-46716. These patents and documents disclose methods of extracting the illumination color of an image by using highlight or similar information in the image, and the illumination color or color temperature obtained as the results is expressed by CIE XYZ color spaces or spectral curves of illumination.
The color temperature estimation unit 100 estimates the color temperature of the input image by using an arbitrary one of well-known methods including the methods described above, and preferably, the method of estimating an illumination color disclosed in the Korean Patent Publication Nos. 2000-38213 and 2001-46716 is incorporated as a reference in the present invention.
Backing to
The color temperature conversion unit 120 receives the input image and parameters required for color temperature conversion from the target color temperature calculation unit 110. By using the parameters, the color temperature conversion unit 120 converts the input image into an output image reflecting the user's preferred color temperature and transmits the output image to the image display system (not shown) to be displayed. Hereinafter, a method of converting a color temperature will be explained in more detail.
In order to convert a color temperature, an RGB signal is expressed in an XYZ space that is a standard color space, and for this the following processes need to be performed.
1) By using 3 primary colors and a color temperature of an input image, the RGB signal (RGBi) of the input image is converted into that in a CIE XYZ space:
2) Set a target color temperature desired in an output image in the CIE XYZ space: Wd=(Xd,Yd,Zd)
3) Obtain a color temperature conversion coefficient: Wc=Wd/Ws=(Xd/Xs,Yd/Ys,Zd/Zs)
4) Convert the RGB signal (RGBi) of the input image into the RGB signal (RGBo) of the output image in the CIE XYZ space by using the target color temperature of the output image and the 3 primary color values.
The color temperature conversion process described above can be expressed as Equation 2:
Here, matrix b is a 3×3 RGB-to-XYZ transform matrix formed with the 3 primary colors and the color temperature of the input image in the process ‘1)’, the diagonal matrix at the center is the color temperature conversion coefficient of the process ‘3)’, and matrix c is a 3×3 XYZ-to-RGB matrix formed with the target color temperature and the 3 primary colors of the process ‘4)’.
Equation 2 can be expressed as Equation 3:
When there is a request of a user's preferred color temperature, a color temperature of an input image is estimated, and when an estimated color temperature is simply converted into the user's preferred color temperature, input images having a variety of color temperatures are expressed as images having one color temperature as shown in
To solve this problem, in the present invention, a color temperature, for example, 6500K, which is generally used in a TV or a monitor is set as a reference color temperature, and the reference color temperature is set such that when there is a request of a user's preferred color temperature, the reference color temperature is converted into the user's preferred color temperature. Based on a mapping relation of the reference color temperature to the user's preferred color temperature, a color temperature of an input image is converted in an effective color temperature range.
Referring to
When there is a request of a user's preferred color temperature, a buffer memory (not shown) stores an effective color temperature range, a reference color temperature, and the user's preferred color temperature. Referring to
Color temperatures of an input image and an output image are described as one point existing in an effective color temperature range (for example, 2000K˜14000K). If a reference color temperature (for example, 6500K) is set and a preferred color temperature (for example, 4500K) is determined by a user in an image display system, then, for each input image of the image display system, a target color temperature of an output image is determined according to the color temperature of the input image.
If there is an identical effective color temperature range for an input image and an output image, a calculation process for determining a target color temperature of the output image is as follows. Assuming that the minimum value of a color temperature of the input image is Tmin-i, the maximum value of the color temperature of the input image is Tmax-i, the reference color temperature is Tr, and the user's preferred color temperature is Tu, a target color temperature of the output image Tt in relation to an arbitrary color temperature Ti of the input image can be calculated by using Equation 4:
Equation 4 is a formula mapped to a linear conversion between the color temperature of the input image and the color temperature of the output image shown in
If the concentration degree of the target color temperature of the output image is desired to be raised based on the user's preferred color temperature, the input image and the output image have a separate effective color temperature range, respectively. Assuming that the minimum value of the color temperature of the input image is Tmin-i, the maximum value of the color temperature of the input image is Tmax-i, the reference color temperature is Tr, the user's preferred color temperature is Tu, the minimum value of the color temperature of the output image is Tmin-o, and the maximum value of the color temperature of the output image is Tmax-o, the target color temperature Tt of the output image in relation to an arbitrary color temperature Ti of the input image can be calculated by using Equation 5:
In Equation 5, by adjusting Tmax-o and Tmin-o that define the effective color temperature range of the output image, the target color temperature of the output image in relation to the estimated color temperature of the input image can be linearly adjusted to more closely approach the user's preferred color temperature. Referring to
Backing to
Next, by using the target color temperature and the estimated color temperature obtained in the operation 210, a color temperature conversion coefficient is obtained and the input image is converted on the basis of the color temperature conversion coefficient to be generated as an output image in operation 230. For this operation, Equation 3 described above is applied such that the color temperature conversion of all pixels in the input image is performed.
Meanwhile, after the target color temperature (Tt) is calculated in the operation 220 described above, a final target color temperature (Tt′) which is nonlinearly converted by additionally applying a nonlinear function can be calculated. The target color temperature calculated by using Equation 4 or 5 for performing linear conversion can have a wide color temperature range. In order to strengthen the characteristic converging to the user's preferred color temperature in relation to an arbitrary color temperature of the input image, nonlinear methods can be applied. For example, a quadratic function or a gamma function can be applied to the result of Equation 4 or 5 as Equation 6:
Tt=scale×Tnor-oP+offset (6)
Here, Tnor-o denotes the result of normalization of Tt, P denotes a multiplier, and scale and offset denote values for restoration to the original scale.
Referring to
The color temperature estimation unit 920 estimates the color temperature of an illuminant applied to the input image, and the estimated color temperature is provided to the color temperature mapping unit 930 and the color temperature conversion coefficient calculation unit 940.
The color temperature mapping unit 930 receives the estimated color temperature of the input image, and a user's preferred color temperature, and determines a target color temperature of an output image according to a preset color temperature mapping method. The determined target color temperature of the output image is provided to the color temperature conversion coefficient calculation unit 940.
The color temperature conversion coefficient calculation unit 940 calculates a color temperature conversion coefficient between the color temperature of the input image estimated in the color temperature estimation unit 920 and the target color temperature of the output image determined in the color temperature mapping unit 930, and the color temperature conversion coefficient is provided to the color temperature conversion unit 950.
The color temperature conversion unit 950 receives the input image 110 and the color temperature conversion coefficient, and performs color temperature conversion in relation to the input image to be provides as an output image.
Referring to
The mapping method applied to the present embodiment will now be explained in more detail with reference to
The first method is a mapping method providing a feeling of a predetermined color temperature.
The second method is a method of mapping to a bluer or redder temperature than the conventional color temperature.
The process of color temperature mapping shown in
1) An estimated color temperature Ti of an input image and a user's preferred color temperature Tu are received.
2) A reference color temperature Tr is preset.
The reference color temperature Tr is set to be the same as the user's preferred color temperature (Tr=Tu) in the mapping method providing a feeling of a predetermined color temperature. In the method of mapping to a bluer or redder temperature than the reference color temperature, the reference color temperature Tr is set to a predetermined value (for example, D65(=6500K)), or to be the same as an estimated color temperature of an input image displayed on an image display system when a user watching an image on the display system sets a reference color temperature.
3) A target color temperature Tt is obtained by mapping the reference color temperature Tr to the user's preferred color temperature Tu, and mapping the color temperature of the input image having values neighboring the reference color temperature according to the linear or nonlinear method.
When the color temperature of an input image, a user's preferred color temperature, and a reference color temperature are given, a process for determining a target color temperature of an output image can be expressed as follows. First, the linear mapping in a method of mapping to provide a feeling of a predetermined color temperature as in
Here, Ti denotes an estimated color temperature of an input image, Tu denotes a color temperature that is input as a user's preferred color temperature, Tr denotes a reference color temperature, and Tt denotes a target color temperature of an output image.
The concept of the idea according to Equation 7 is expressed in a graph of
Next, the linear mapping in a method of mapping to a bluer or redder temperature than the reference color temperature in
Here, Ti denotes an estimated color temperature of an input image, Tu denotes a color temperature that is input as a user's preferred color temperature, Tr denotes a reference color temperature, Tt denotes a target color temperature of an output image, Tnor-o denotes a normalized value of the target color temperature in relation to the color temperature range of the output image, Tmax-nor-i denotes a normalized value of the color temperature range of the input image when Ti>Tr, Tmax-nor-i=[0,1] denotes that the value of Tmax-nor-i is a rational number greater than or equal to 0 and less than or equal to 1, Tmin-nor-i denotes a normalized value of the color temperature range of the input image when Ti≦Tr, Tmin-nor-i=[0,1] denotes that the value of Tmin-nor-i is a rational number greater than or equal to 0 and less than or equal to 1, Tmax-i denotes the maximum value of the color temperature of the input image, Tmin-i denotes the minimum value of the color temperature of the input image, Tmax-o denotes the maximum value of the color temperature of the output image, and Tmin-o denotes the minimum value of the color temperature of the output image.
Next, mapping by a power function as shown in Equation 9 will now be explained as an example of the nonlinear mapping method as in
Here, Ti denotes an estimated color temperature of an input image, Tu denotes a color temperature that is input as a user's preferred color temperature, Tr denotes a reference color temperature, Tt denotes a target color temperature of an output image, Tnor-o denotes a normalized value of the target color temperature in relation to the color temperature range of the output image, Tmax-nor-i denotes a normalized value of the color temperature range of the input image when Ti>Tr, Tmax-nor-i=[0,1] denotes that the value of Tmax-nor-i is a rational number greater than or equal to 0 and less than or equal to 1, Tmin-nor-i denotes a normalized value of the color temperature range of the input image when Ti≦Tr, Tmin-nor-i=[0,1] denotes that the value of Tmin-nor-i is a rational number greater than or equal to 0 and less than or equal to 1, Tmax-i denotes the maximum value of the color temperature of the input image, Tmin-i denotes the minimum value of the color temperature of the input image, Tmax-o denotes the maximum value of the color temperature of the output image, Tmin-o denotes the minimum value of the color temperature of the output image, and alpha (α) denotes the coefficient of the power function.
In Equation 9, alpha (α)≧1. If alpha (α)=1, a result identical to that of the linear mapping method can be obtained, and if alpha (α)=2, mapping by a quadratic equation can be obtained. The bigger the value of alpha (α) is, the bigger curvature the shape has.
In Equation 9, it is possible to perform mapping providing a feeling of a predetermined color temperature, by setting Tr=Tu, and it is also possible to perform mapping to a bluer or redder color temperature than the reference color temperature, by setting Tr to an arbitrary value (for example, 6500K).
If the concentration degree is desired to be heightened centered at the user's preferred color temperature regardless of whether a color temperature mapping method is linear or nonlinear, a desired result can be obtained by adjusting the minimum value and maximum value of the color temperature of the output image. In relation to this,
In addition, there can be a method of converting a color temperature in which a color temperature range is divided into predetermined sections and the color temperature in each section is mapped differently as shown in
Meanwhile, for the color temperature used when color temperature mapping is performed, absolute temperature K or reciprocal megakelvin (MK−1=106K−1) using a reciprocal scale such as 106/T can be used.
Referring
That is, in the process for obtaining the transform matrix Mc for conversion between color temperatures, first, each chromaticity value of the estimated color temperature of the input image and the target color temperature of the output image is calculated, and secondly, the chromaticity values are converted into XYZ tristimulus values respectively. Thirdly, by using the tristimulus values, a cone response of illumination corresponding to each of the input image and the output image is obtained and by using the cone responses, the transform matrix Mc is obtained.
The tristimulus values of the input image and the output image can be obtained by using Equations 10 and 11:
X=(x/y)
Y=(y/y)
Z=(1−x−y)/y (11)
Here, T denotes the color temperature of an arbitrary image (input image or output image), and X, Y, and Z denote CIE XYZ tristimulus values of the chromaticity in an arbitrary image (input image or output image).
Assuming that the tristimulus values calculated in relation to the estimated color temperature Ti of the input image and the target color temperature Tt of the output image are (Xiw,Yiw,Ziw) and (Xtw,Ytw,Ztw), respectively, the conversion relation between the tristimulus values of the input image and the tristimulus values of the output image can be expressed as Equation 12:
Here, Xiw, Yiw, and Ziw denote the CIE XYZ tristimulus values calculated in relation to the estimated color temperature Ti of the input image and Xtw, Ytw, and Ztw denote the CIE XYZ tristimulus values calculated in relation to the target color temperature Tt of the output image. Also, Riw, Giw, and Biw denote the cone response of a corresponding illuminant in the input image, and Rtw, Gtw, and Btw denote the cone response of a corresponding illuminant in the output image. These cone responses can be obtained by Equation 13:
Here, Rw, Gw, and Bw denote the cone response of a corresponding illuminant in an arbitrary image, and Xw, Yw, and Zw denote CIE XYZ tristimulus values calculated in relation to the color temperature T of the arbitrary image.
Then, the transform matrix Mc for conversion between color temperatures can be obtained finally according to Equation 14:
[Mc]=[MBFD]−1[D][MBFD] (14)
After the color temperature conversion coefficient is calculated through the above process, the color temperature of the input image is converted by using the color temperature conversion coefficient in operation 1040, and the image is provided as an output image in operation 1050.
The above color temperature conversion operation 1040 is performed, by using Equations 15 through 20. First, the RGB signal of the input image is converted into the CIE XYZ color space values, and by applying in the XYZ color space the conversion coefficient between color temperatures, the image is converted into the target color temperature of the output image. Then, by converting the converted XYZ into RGB, the output image is obtained.
Assuming that the color values of each pixel of the input image are (Ri,Gi,Bi) and are in a linear conversion relation with CIE XYZ color space values, the color space values (Xi,Yi,Zi) in relation to the input image can be determined as Equation 15:
Also, assuming that the color values of each pixel of the output image are (Ro,Go,Bo) and are in a linear conversion relation with CIE XYZ color space values, the color value of each pixel in the output image can be determined from the color space values (Xo,Yo,Zo) in relation to the output image can be determined as Equation 16:
Conversion between color temperatures (Xi,Yi,Zi) and (Xo,Yo,Zo) is determined as Equation 17:
The color conversion process through the processes described above can be expressed in a single expression as Equation 18:
In Equation 18, Mc has a 3×3 structure, and the entire conversion process can be expressed by one 3×3 matrix A as Equation 19:
Accordingly, the color temperature conversion process of the image described above can be expressed as Equation 20:
Here, Ri, Gi, and Bi denote the color values of each pixel in the input image, Ro, Go, and Bo denote the color values of each pixel in the output image, Xi, Yi, and Zi denote the CIE XYZ color space values in relation to the input image, and Xo, Yo, Zo denote the CIE XYZ color space values in relation to the output image.
As described above, the color temperature conversion operation 1040 is a process converting the image so that the estimated color temperature of the input image can have the target color temperature of the output image. Though the color temperature conversion is performed after performing the processes expressed in Equations 15 through 20 in the present embodiment, the color temperature conversion operation 1040 can also be made to be performed such that the processes to the process for obtaining the matrix A are performed in the operation 1030 and only the process expressed by Equation 20 is performed in the present operation.
The above-described embodiments of the present invention can also be embodied as computer-readable codes stored on a computer-readable recording medium. The computer-readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer-readable recording medium include read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and carrier waves (such as data transmission through the Internet). The computer-readable recording medium can also be distributed over network of coupled computer systems so that the computer readable code is stored and executed in a decentralized fashion.
According to the present invention as described above, when there is a request of a user's or a viewer's preferred color temperature in an image display system, input images having different color temperatures are smoothly converted into output images reflecting the user's preferred color temperature while maintaining the color characteristics between images. For this, the present invention uses multiple color temperature mapping methods with respect to the color temperature of the input image such that the user's preferred color temperature can be satisfied and at the same time the characteristics between images having difference color temperatures can be maintained.
Also, in the present invention, for conversion into user's preferred color temperature, the color temperature of an input image is estimated, and the method of converting into a bluer or redder color temperature than a reference color temperature, or the method of converting the color temperature of the input image to provide a feeling of a predetermined color temperature is used. By doing so, when continuous images having different color temperatures are displayed on an image display system, the user does not need to set frequently the preferred color temperature, and the color of the illuminant applied to the image is automatically converted while the relative color temperature difference characteristics among images are maintained.
Although a few embodiments of the present invention have been shown and described, the present invention is not limited to the described embodiments. Instead, it would be appreciated by those skilled in the art that changes may be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.