The present invention relates to a method of using matrix to hue and color saturation, and particularly to a method of using matrix to adjust hue and color saturation, which can simplify the complexity of chip design and reduce chip size to cut the cost of producing chip.
The format of the video signal of LCD TV is YUV, but that of the video signal for the display in a thin-film transistor (TFT) liquid crystal panel is RGB. Consequently, there is a built-in circuit in the video signal decoder to transform the video signal format from YUV to RGB.
To overcome the shortcoming of the aforementioned conventional circuit for adjusting hue and color saturation, it is necessary to have a method of using matrix to adjust hue and color saturation, which can simplify the complexity of chip design and reduce chip size to cut the cost of producing chip.
It is an object of the present invention to provide a method of using matrix to adjust hue and color saturation, which uses matrix to adjust hue and color saturation. The method can simplify the complexity of chip design and reduce chip size to cut the cost of producing chip.
It is an object of the present invention to provide a method of using matrix to adjust hue and color saturation, including the following steps: transform a YUV format signal into a RGB format signal with a first matrix; the RGB format signal is multiplied by a second matrix to obtain a RGB format signal whose hue and/or color saturation can be adjusted.
The present invention can be more fully understood by reference to the following description and accompanying drawings, in which:
In the step 1, the equations for the first matrix which transforms a YUV format signal into a RGB format signal are:
R=Y+1.140V (equation 1)
G=Y−0.395U−0.581V (equation 2)
B=Y+2.032U (equation 3)
Rearrange equations 1 to 3 can lead to the first matrix, whose coefficients are:
Consequently, the matrix expression for using the first transformation matrix (a 3×3 matrix) described above to transform a YUV format signal to a RGB format signal can be written as:
In the step 2, the RGB format signal is multiplied by a second matrix to obtain a RGB format signal whose hue and/or color saturation can be adjusted. The second transformation matrix is a 3×3 matrix, whose coefficients are:
Consequently, the matrix expression for using the second transformation matrix (a 3×3 matrix) described above to adjust the hue and color saturation of a RGB format can be written as:
where the parameter Sat represents color saturation, whose range is 0˜1.992. Consequently, after the matrix operation of the equation 5 described above, a YUV format signal can be transformed into a RGB format signal and its hue and/or color saturation can be adjusted by the second transformation matrix. The aforementioned matrix multiplication can be achieved by executing a software program, which can be, for example, but not limited to C or C++. Chip designers need only to modify the parameters of hue and color saturation by a program language to adjust hue and color saturation. Consequently, the method of using matrix to adjust hue and color saturation according to the present invention can eliminate the need for a sinusoidal circuit, a cosine circuit, an adder, and a multiplier. Therefore, the method of using matrix to adjust hue and color saturation according to the present invention can simplify the complexity of chip design and reduce chip size to cut the cost of producing chip.
A learning method of using matrix to adjust hue and color saturation according to the present invention is described above. The method can simplify the complexity of chip design and reduce chip size to cut the cost of producing chip. These advantages are not possible to achieve with the prior art. Consequently, it can indeed improve the shortcoming of using circuit to adjust hue and color saturation.
While the invention has been described with reference to the a preferred embodiment thereof, it is to be understood that modifications or variations may be easily made without departing from the spirit of this invention, which is defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
094138919 | Nov 2005 | TW | national |