This application claims the benefit of Taiwan Patent Application No. 099103794, filed on Feb. 8, 2010, which is hereby incorporated by reference for all purposes as if fully set forth herein.
1. Field of Invention
The present invention relates to a method for adjusting images, and more particularly to a method for adjusting the color of images.
2. Related Art
Color displays are widely used in the modern society, and recently, the color displays have various types, including not only large size displays such as television sets, computer monitors, and projectors, but also small size displays such as display screens of cell phones, personal digital assistants (PDAs), digital cameras, digital camcorders, handheld game consoles, or other portable electronic equipments. Recently, the color displays can not only display color images, but also adjust the color images according to preference of users.
The present invention is directed to a method for adjusting the color of images, and the method is capable of adjusting color images displayed by a color display.
The present invention provided a method for adjusting the color of images. The method applies to a color display having a color gamut. In the method, firstly, an original hue-saturation-value (HSV) color coordinate is obtained from an original image signal. Next, the original HSV color coordinate is converted into an adjusted HSV color coordinate according to color adjusting data. Afterwards, the adjusted HSV color coordinate is converted into a corrected HSV color coordinate. Then, an output image signal is generated according to the corrected HSV color coordinate.
Accordingly, the present invention may adjust color images displayed by a color display, so that the color display shows the color images favored by users.
In order to make the aforementioned features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The present invention will become more fully understood from the detailed description given herein below for illustration only, and thus are not limitative of the present invention, and wherein:
In the embodiment as shown in
The original HSV color coordinate is a coordinate in a hue-saturation-value color space (hereinafter referred to as HSV color space), such that the original HSV color coordinate includes a plurality of coordinate values. That is, the original HSV color coordinate includes an original hue value, an original saturation value, and an original brightness value.
The original image signal received by the color display 100 includes an original red-green-blue (RGB) color model value, in which the original RGB color model value is a group of parameter values in a red-green-blue color model (also called a three-primary-color mode, and hereinafter referred to as RGB color model), and a format of the original RGB color model value may be RGB signals in a 24-bit format, a 48-bit format, or any other formats.
Particularly, by taking the original RGB color model value in the 24-bit format as an example, the original RGB color model value is (r, g, b), in which r, g, and b are respectively parameter values of red, green, and blue. The minimum value of r, g, and b is zero, and the maximum value thereof is 255, that is, 0≦r, g, b≦255.
The greater the parameter value of r, g, or b is, the nearer to red, green, or blue the color represented by the original RGB color model value is. For example, when (r, g, b) is (255, 0, 0), it indicates that the color represented by the original RGB color model value is red. Similarly, when (r, g, b) is (0, 0, 255), it indicates that the color represented by the original RGB color model value is blue.
The step of obtaining the original HSV color coordinate includes converting the original RGB color model value. That is, the original RGB color model value is converted into the original HSV color coordinate. The conversion belongs to a space conversion between the RGB color model and the HSV color space, and the space conversion method is disclosed in common textbooks on chromatics. Therefore, the method for converting the original RGB color model value into the original HSV color coordinate belongs to the conventional art known by those of ordinary skill in the art of the present invention, so the descriptions thereof may not be given herein again.
Referring to
The monochrome parameter group signifies parameter values of a single color. For example, the parameter values are parameter values of red, green, blue, magenta, yellow, or cyan, and the monochrome parameter group includes a monochrome hue value, a monochrome saturation value, and a monochrome brightness value. For example, when the monochrome parameter group includes red parameter values, the red parameter values include a red hue value, a red saturation value, and a red brightness value. Similarly, when the monochrome parameter group includes yellow parameter values, the yellow parameter values include a yellow hue value, a yellow saturation value, and a yellow brightness value.
However, the color adjusting data may also be generated by adjusting a plurality of monochrome parameter groups. For example, the method for generating the color adjusting data includes adjusting a red parameter group, a green parameter group, and a blue parameter group, that is, adjusting the red hue value, the red saturation value, and the red brightness value; adjusting a green hue value, a green saturation value, and a green brightness value; and adjusting a blue hue value, a blue saturation value, and a blue brightness value.
Definitely, the method for generating the color adjusting data may also include adjusting a magenta parameter group, a yellow parameter group, and a cyan parameter group, that is, adjusting a magenta hue value, a magenta saturation value, and a magenta brightness value; adjusting the yellow hue value, the yellow saturation value, and the yellow brightness value; and adjusting a cyan hue value, a cyan saturation value, and a cyan brightness value.
In addition, the color adjusting data may be generated by adjusting six monochrome parameter groups, namely, the red parameter group, the green parameter group, the blue parameter group, the magenta parameter group, the yellow parameter group, and the cyan parameter group. In other words, the method for generating the color adjusting data includes adjusting the monochrome hue values, the monochrome saturation values, and the monochrome brightness values of the red parameter group, the green parameter group, the blue parameter group, the magenta parameter group, the yellow parameter group, and the cyan parameter group.
Referring to
The adjusted HSV color coordinate and the original HSV color coordinate are both the coordinates in the HSV color space, such that the adjusted HSV color coordinate includes a plurality of coordinate values. Particularly, the adjusted HSV color coordinate includes an adjusted hue value, an adjusted saturation value, and an adjusted brightness value. The color adjusting data, the original HSV color coordinate, and the adjusted HSV color coordinate satisfy equations (1), (2), and (3) as follows:
H′=H+Wh (1)
S′=S×Ws (2)
V′=V×Wv (3)
H is the original hue value, S is the original saturation value, and V is the original brightness value. H′ is the adjusted hue value, S′ is the adjusted saturation value, and V′ is the adjusted brightness value. Wh is the hue weight value, Ws is the saturation weight value, and Wv is the brightness weight value. A value of the hue weight value Wh is between −30 degrees and 30 degrees, and both values of the saturation weight value Ws and the brightness weight value Wv are between 0 and 1.
It may be known from the above equations (1), (2), and (3) that the adjusted hue value H′ is equal to the sum of the original hue value H and the hue weight value Wh, the adjusted saturation value S′ is equal to the product of the original saturation value S and the saturation weight value Ws, and the adjusted brightness value V′ is equal to the product of the original brightness value V and the brightness weight value Wv.
Referring to
In this embodiment, the corrected HSV color coordinate is converted from the adjusted HSV color coordinate according to the original saturation value. In detail, the adjusted HSV color coordinate and the corrected HSV color coordinate satisfy equations (4), (5), and (6) as follows:
H″=(1−Sm)×H+Sm×H′ (4)
S″=(1−Sm)×S+Sm×S′ (5)
V″=(1−Sm)×V+Sm×V′ (6)
H″ is the corrected hue value, S″ is the corrected saturation value, and V″ is the corrected brightness value. Definitions of H, S, V, H′, S′, and V′ in the equations (4), (5), and (6) are the same as the definitions in the equations (1), (2), and (3), so the descriptions thereof may not be given herein again. Sm is a saturation parameter, and the saturation parameter Sm is changed with the variation of the original saturation value S.
For example, in this embodiment, the second boundary value BM may be 0.7, and the first boundary value Bm may be 0.3. However, in other not shown embodiments, the first boundary value Bm and the second boundary value BM may be values except for 0.3 and 0.7. Hence, it is emphasized that the first boundary value Bm is not limited to 0.3, and the second boundary value BM is not limited to 0.7 in the present invention.
It may be known from the curve diagram as shown in
Sm×Bm=S, when 0≦S≦Bm (7)
Sm=1, when Bm≦S≦BM (8)
Sm×(BM−1)=S−1, when BM<S≦1 (9)
According to the above equations (4) to (9), when the original saturation value S of the original HSV color coordinate is a maximum value, that is, the original saturation value S is equal to 1, the saturation parameter Sm is equal to zero, so that the corrected hue value H″, the corrected saturation value S″, and the corrected brightness value V″ are respectively equal to the original hue value H, the original saturation value S, and the original brightness value V.
Similarly, when the original saturation value S is a minimum value, that is, the original saturation value S is equal to 0, the saturation parameter Sm is also equal to zero, so that the corrected hue value H″, the corrected saturation value S″, and the corrected brightness value V″ are respectively equal to the original hue value H, the original saturation value S, and the original brightness value V.
It is known from the above equations (4) to (9) that, when the original saturation value S of the original HSV color coordinate is the maximum value (that is, S=1) or the minimum value (that is, S=0), the original HSV color coordinate is the same as the corrected HSV color coordinate. In other words, during Step S106 that the adjusted HSV color coordinate is converted into the corrected HSV color coordinate, the original HSV color coordinate having the maximum saturation value or the minimum saturation value remains unchanged, such that a range of the color gamut D1 (as shown in
In addition, it is known from
In addition to the corresponding relation between the original saturation value S and the saturation parameter Sm as shown in
Sm×BN=S, when 0≦S≦BN (10)
Sm×(BN−1)=S−1, when BN<S≦1 (11)
According to the equations (4), (5), (6), (10), and (11), when the original saturation value S of the original HSV color coordinate is a maximum value or a minimum value, the original HSV color coordinate is also the same as the corrected HSV color coordinate. Therefore, when Step S106 is performed, the saturation parameter Sm as shown in
Referring to
The output image signal includes an output RGB color model value, and the method for generating the output image signal includes converting the corrected HSV color coordinate into the output RGB color model value, in which the output RGB color model value is one group of parameter values in the RGB color model, and the format of the output RGB color model value is the same as the format of the original RGB color model value, such that the format of the output RGB color model value may be RGB signals in a 24-bit format, a 48-bit format, or any other formats.
In addition, the conversion between the corrected HSV color coordinate and the output RGB color model value also belongs to the space conversion between the RGB color model and the HSV color space, such that the method for converting the corrected HSV color coordinate into the output RGB color model value belongs to the conventional art known by those of ordinary skill in the art of the present invention, so the descriptions thereof may not be given herein again.
It should be noted that no matter in the embodiment as shown in
To sum up, the method for adjusting the color of images according to the present invention may adjust the color images displayed by the color display, so that the user may adjust the color images according to preference or built-in set values of the color display, and the color display shows the color images favored by the user.
Next, in the present invention, when the image color is adjusted, the range in the color gamut of the color display may not be changed, and the three primary colors (that is, red, green, and blue) of the color images displayed by the color display are not distorted, so as to ensure the color quality of the color display.
Further, in the process of adjusting the image color, the present invention can make the color images show the color gradient effect in vision, so as to prevent the contour phenomenon resulting from inappropriate adjustment of the color, thereby improving the frame quality of the color images.
Though the present invention has been disclosed above by the embodiments, they are not intended to limit the present invention. Anybody skilled in the art can make some modifications and variations without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention falls in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
99103794 A | Feb 2010 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5222206 | Liao | Jun 1993 | A |
7733353 | Edge | Jun 2010 | B2 |
7949183 | Levy et al. | May 2011 | B2 |
8059913 | Kwon et al. | Nov 2011 | B2 |
20070121180 | Ogawa | May 2007 | A1 |
20090290068 | Abe et al. | Nov 2009 | A1 |
Number | Date | Country |
---|---|---|
2003250058 | Sep 2003 | JP |
Entry |
---|
Pei-Lin Hsieh, Yu-Hung Li, Shih-Chieh Lin, Hsiang-Tan Lin, Multi-Axis-Adjusted System for Color Reproduction, IMID 2009 Digest, Oct. 12-16, 2009, pp. 1554-1555, KINTEX, Seoul, Korea. |
Number | Date | Country | |
---|---|---|---|
20110193877 A1 | Aug 2011 | US |