1. Field of the Invention
The invention relates in general to a color correction method and an apparatus of an RGB signal, and more particularly to a color correction method and an apparatus of an RGB signal capable of adjusting the hue (H), saturation (S) and value (V) of the RGB signal respectively, independently and continuously.
2. Description of the Related Art
Color correction such as adjustment of the hue (H), saturation (S) and value (V) of an RGB signal is performed in a liquid crystal display for high quality image. However, the adjustment is often operated in an HSV domain. Consequently, it is required to execute RGB/HSV and HSV/RGB conversions in the process of the adjustment of the hue, saturation and value of the RGB signal. One embodiment of the known RGB/HSV conversions is exemplified below.
fmax=max(max(R,G),B); 10
fmin=min(min(R,G),B); 20
delta=max−fmin; 30
RR=(G−B)/delta; 40
GG=2+(B−R)/delta; 50
BB=4+(R−G)/delta; 60
Value=fmax; 70
Saturation=(delta/fmax); 80
Hue=(fmax==R)×RR+((fmax˜=R)&(fmax==G))×GG+((fmax˜=R)×(fmax˜=G)&(fmax==B))×BB; 90
Hue=(H<0)×(H+6×r)+(H>=0)×(H); 100
However, in the process of the RGB/HSV conversion and its inverse conversion, it will result in the problem of discontinuity in the process of color correction of the RGB signal because of the conditional formulae. Hence, the image frame corresponding to the RGB signal is not smooth.
The invention is directed to a color correction method and an apparatus of an RGB signal, using a simple color correction method such that the hue (H), saturation (S) and value (V) of the RGB signal may be separately adjusted independently and continuously without having to execute RGB/HSV and HSV/RGB conversions.
According to a first aspect of the present invention, a color correction method of an RGB signal is provided. First, an original RGB-coordinate point in an RGB color space is defined according to the RGB signal, and a reference plane is obtained according to the original RGB-coordinate point. The original RGB-coordinate point locates on the reference plane, all points on the reference plane have the same value with the original RGB-coordinate point, and the reference lane is orthogonal to a value axis. Next, an intersection point of the value axis and the reference plane is defined as an origin of the reference plane. Afterwards, the hue (H), saturation (S) and value (V) of the RGB signal are independently and continuously adjusted respectively by rotating the original RGB-coordinate point around the value axis, moving the original RGB-coordinate point towards to or away from the origin and shifting the original RGB-coordinate point along the value axis to obtain a new RGB-coordinate point, which corresponds to a new RGB signal.
According to a second aspect of the present invention, a color correction method of an RGB signal is provided. First, an original RGB-coordinate point corresponding to the RGB signal in an RGB color space is transformed to a two-dimension original polar-coordinate point on a reference plane. All points on the reference have the same value with the RGB signal, the reference plane is orthogonal to a value axis, and the reference plane has an origin. Next, at least one of the following steps is executed: adjusting the radian of the two-dimension original polar-coordinate point; adjusting the radius of the two-dimension original polar-coordinate point; and shifting the reference plane, on which the two-dimension original polar-coordinate point locates, along the value axis. The adjusted two-dimension original polar-coordinate point and the adjusted reference plane correspond to a new RGB signal.
According to a third aspect of the present invention, a color correction method of an RGB signal is provided. First, an original RGB-coordinate point corresponding to the RGB signal in an RGB color space is transformed to a two-dimension original coordinate point on a reference plane. All points on the reference have the same value with the RGB signal, the reference plane is orthogonal to a value axis, the reference plane has an origin, and the three coordinate axes of the RGB color space correspond to a two-dimension R-vector, a two-dimension G-vector and a two-dimension B-vector on the reference plane. Next, at least one of the following steps is executed: adjusting the radian of the vector, formed by the two-dimension original coordinate point and the origin, corresponding to one of the two-dimension R-vector, the two-dimension G-vector and the two-dimension B-vector; adjusting the distance between the two-dimension original coordinate point and the origin; and shifting the reference plane along the value axis. Afterwards, the adjusted two-dimension original coordinate point is transformed to a new RGB-coordinate point in the RGB color space, the new RGB-coordinate point corresponding to a new RGB signal.
According to a third aspect of the present invention, a color correction apparatus of an RGB signal is provided. The color correction apparatus of an RGB signal includes a reference plane generating unit and an adjusting unit. The reference plane generating unit defines an original RGB-coordinate point in an RGB color space according to the RGB signal, and obtains a reference plane according to the original RGB-coordinate point. The original RGB-coordinate point locates on the reference plane, all points on the reference plane have the same value with the original RGB-coordinate point, the reference lane is orthogonal to a value axis, and an intersection point of the value axis and the reference plane is an origin of the reference plane. The adjusting unit independently and continuously adjusts the hue (H), saturation (S) and value (V) of the RGB signal respectively by rotating the original RGB-coordinate point around the value axis, moving the original RGB-coordinate point towards to or away from the origin and shifting the original RGB-coordinate point along the value axis to obtain a new RGB-coordinate point, which corresponds to a new RGB signal.
Other objects, features, and advantages of the invention will become apparent from the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
The invention provides a color correction method and an apparatus of an RGB signal, capable of separately adjusting the hue (H), saturation (S) and value (V) of the RGB signal independently and continuously without having to execute RGB/HSV and HSV/RGB conversions.
Referring to
In addition, the reference lane is orthogonal to a value axis, and an intersection point of the value axis and the reference plane is an origin of the reference plane. The adjusting unit 120 independently and continuously adjusts the hue, saturation and value of the RGB signal respectively by rotating the original RGB-coordinate point around the value axis, moving the original RGB-coordinate point towards to or away from the origin and shifting the original RGB-coordinate point along the value axis to obtain a new RGB-coordinate point, which corresponds to a new RGB signal CS′.
Referring to
Next, in the step 220, an intersection point of a value axis and the reference plane is defined as an origin of the reference plane. The reference plane is substantially orthogonal to the value axis, which is a class of all points, of which the R coordinate, G coordinate and B coordinate of each one are equal to each other, in the RGB color space. Referring to FIG. 3A, a perspective of an RGB color space according to a preferred embodiment of the invention is shown. The RGB signal CS corresponds to the original RGB-coordinate point P(r, g, b) in the RGB color space. The reference plane V is located in the RGB color space and corresponds to a value v, which is the value of the RGB signal CS.
The original RGB-coordinate point P is on the reference plane V, and all points on the reference plane V have the same value v with the original RGB-coordinate P. The value v is an average of the coordinates of the original RGB-coordinate P (r,g,b), that is, the value v=(r+g+b)/3. In addition, the value axis va is orthogonal to the reference plane V, and the intersection point O(v, v, v) is defined as the origin of the reference plane V.
Then, the color correction method proceeds to step 230, the hue of the RGB signal CS is adjusted independently and continuously by rotating the original RGB-coordinate point P around the value axis va. Referring to
The hue of the RGB signal CS may be adjusted by adjusting an included angle between a vector Rad, formed by the original RGB-coordinate point P and the origin O, and one of the two-dimension R-vector Red, the two-dimension G-vector Green and the two-dimension B-vector Blue. For example, let the two-dimension R-vector Red be defined as 0 degree, the two-dimension G-vector Green be defined as 120 degrees, and the two-dimension B-vector Blue be defined as 240 degrees, then the radian θ between the vector Rad and the two-dimension R-vector Red is the hue of the RGB signal CS. Thus, the hue of the RGB signal CS may be adjusted by rotating the original RGB-coordinate point P around the value axis va.
In step 240, the saturation of the RGB signal CS is adjusted independently and continuously by moving the original RGB-coordinate point P towards to or away from the origin O of the reference plane V. That is, the saturation of the RGB signal CS may be adjusted by adjusting the distance between the original RGB-coordinate point P and the origin O. Besides, in the step 250, the value of the RGB signal CS is adjusted independently and continuously by shifting the original RGB-coordinate point P along the value axis va.
Afterwards, in the step 260, a new RGB-coordinate point P′ (not shown) is obtained, the new RGB-coordinate point P′ corresponding to the new RGB signal CS′. In the steps 230, 240 and 250 mentioned above, the hue, saturation and value of the RGB signal CS may be adjusted independently and continuously without having to execute RGB/HSV and HSV/RGB conversions, and then a new RGB signal CS′ is obtained.
Referring to
Next, the two-dimension original coordinate point (v, Xa, Ya) is transformed into a two-dimension polar-coordinate point (v, Hue, Rad) via a hue transformation. Compared with
The independent adjustment factors (dv, dh, ds) are substantially for adjusting the value, hue and saturation of the RGB signal CS. The relationship between the two-dimension new polar-coordinate point (v′, Hue′, Rad′) and the two-dimension original polar-coordinate point (v, Hue, Rad) is expressed as:
v′=v×dv;
Hue′=Hue+dh;
Rad′=Rad×ds;
After this step, the value, hue and saturation of the RGB signal CS has been substantially adjusted independently and continuously.
Then, the two-dimension new polar-coordinate point (v′, Hue′, Rad′) is transformed to a two-dimension new coordinate point (v′; Xa′, Ya′) via an inverse hue transformation, corresponding to the he transformation in the preceding step. After that, the two-dimension new coordinate point (v′, Xa′, Ya′) is transformed to a new RGB-coordinate point P′ (r′, g′, b′) in the RGB color space according to an inverse adjacent matrix. The new RGB-coordinate point P′ (r′, g′, b′) corresponds to the new RGB signal CS′. The inverse adjacent matrix is expressed as:
According to the color correction method and apparatus of an RGB signal disclosed in the above embodiment of the invention, the hue (H), saturation (S) and the value (V) of the RGB signal can be respectively and independently adjusted without executing RGB/HSV and HSV/RGB conversions. Besides, without the conditional formulae that are not proper for color correction of the RGB signal, the conventional problem of discontinuity is solved. Thus, the invention achieves continuity and independence in the adjustment of the hue, saturation and value of the RGB signal, such that the image frame corresponding to the RGB signal is smooth.
While the invention has been described by way of example and in terms of a preferred embodiment, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Name | Date | Kind |
---|---|---|---|
4159174 | Rising | Jun 1979 | A |
4929978 | Kanamori et al. | May 1990 | A |
4953008 | Kaye | Aug 1990 | A |
5130789 | Dobbs et al. | Jul 1992 | A |
5202935 | Kanamori et al. | Apr 1993 | A |
5289295 | Yumiba et al. | Feb 1994 | A |
5315694 | Kasano | May 1994 | A |
6462835 | Loushin et al. | Oct 2002 | B1 |
6845181 | Dupin et al. | Jan 2005 | B2 |
20060251323 | MacKinnon et al. | Nov 2006 | A1 |
Number | Date | Country |
---|---|---|
200718223 | May 2007 | TW |
Number | Date | Country | |
---|---|---|---|
20090103805 A1 | Apr 2009 | US |