This application claims priority to Taiwan Patent Application Serial Number 96139058, filed Oct. 18, 2007, which is herein incorporated by reference.
1. Field of Invention
The present invention relates to a method for processing images. More particularly, the present invention relates to a method for processing images in a liquid crystal display.
2. Description of Related Art
Regarding image contrast enhancement for a conventional liquid crystal display, an input image is mostly processed by being analyzed on a histogram to obtain characteristics of the input image and determine variation of the input image. After that, brightness of a backlight is adjusted, such that the difference of two adjacent gray levels is enlarged and the image contrast is thus enhanced.
Although the foregoing method can be used to achieve the image contrast enhancement, the input image has to be modified before the brightness of the backlight is adjusted. In other words, processing the input image is not related to the adjustment of the brightness of the backlight. As a result, the brightness of the backlight cannot be relatively adjusted according to the image modification, so some areas of one image frame may lack uniformity and appear to be particularly bright or dark when users watch the image frame.
In accordance with one embodiment of the present invention, a method for processing images in a liquid crystal display is provided. The method includes the steps of: acquiring a backlight index according to an image; adjusting a backlight according to the backlight index; acquiring a reference gray level according to the adjusted backlight, wherein the reference gray level lies in between a first gray level boundary and a second gray level boundary; transferring a gray level of the image into a corresponding output gray level according to the backlight index when the gray level of the image lying in between the reference gray level and the first gray level boundary; and transferring the gray level of the image into another corresponding output gray level according to a linear relationship when the gray level of the image lying in between the reference gray level and the second gray level boundary.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the invention as claimed.
The invention can be more fully understood by reading the following detailed description of the embodiments, with reference made to the accompanying drawings as follows:
In the following detailed description, the embodiments of the present invention have been shown and described. As will be realized, the invention is capable of modification in various obvious respects, all without departing from the invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not restrictive.
After obtaining the numbers of the gray levels occurring in the image, the backlight index can be determined by the following equation (1).
As shown in the equation (1), BI is the backlight index; BIB is a backlight index boundary corresponded by the highest gray level of sub-pixels of the input image; H is the number of the highest gray level of the sub-pixels from histogram of the input image; TP is the total numbers of all gray levels of the input image; M is the highest gray level of the sub-pixels of the input image; GLB is a gray level boundary corresponded by the highest gray level of the sub-pixels of the input image.
The area represented by the high gray level (or low gray level) may just appear in a very little part of one image, so the foregoing equation (1) includes the backlight index boundary BIB and the gray level boundary GLB to determine the backlight index BI more precisely to control the backlight brightness necessary for the high gray level (or low gray level), such that the output image can have better image contrast or relative brightness.
The table 1 represents the gray level range corresponding to the gray level boundary and the backlight index boundary. When the highest gray level of the sub-pixels of the input image, i.e. Max(R, G, B), lies in the range 0˜N/k, GLB 1 is set to be the gray level boundary of the input image; when Max(R, G, B) lies in the range N/k˜2*(N/k), GLB 2 is set to be the gray level boundary of the input image; and so on. On the other hand, when Max(R, G, B) lies in the range 0˜N/k, BIB 1 is set to be the backlight index boundary of the input image; when Max(R, G, B) lies in the range N/k˜2*(N/k), BIB 2 is set to be the backlight index boundary of the input image, and so on.
After the backlight index is acquired, a backlight is adjusted according to the backlight index, in which a corresponding PWM signal can be generated according to the backlight index at first (Step 202), and then the backlight can be adjusted by the PWM signal (Step 204). Furthermore, in order to accurately control the brightness of the backlight, the brightness of the backlight can be divided into N levels, which include from the dimmest level 0 to the brightest level (N−1), so as to obtain an N-level lookup table (LUT) with the backlight index corresponding to the brightness of the backlight. Then, the relationship between the backlight index and the brightness of the backlight is set based on the real condition and requirement, so as to control the brightness of the backlight.
Moreover, after the backlight is adjusted, a reference gray level is acquired according to the backlight index and the adjusted backlight brightness (Step 206), in which the reference gray level lies in between a first gray level boundary and a second gray level boundary.
As shown in the equation (2), BLMax is the backlight brightness when the backlight is completely turned on; BLDim is the backlight brightness corresponding to the backlight index; γ is a gamma value; N is the highest input gray level; and F is the ratio of the highest output gray level compared to the highest input gray level.
After the reference gray level is acquired, whether the input gray level GLIN is lower than the reference gray level X1 or not is determined (Step 208). When the input gray level GLIN is lower than the reference gray level X1; that is, when the input gray level GLIN lies in between 0 and the reference gray level X1, the input gray level GLIN is transferred into the corresponding output gray level GLOUT according to the backlight index (Step 210), in which the input gray level GLIN can be transferred into the corresponding output gray level GLOUT in accordance with the gamma value and the adjusted backlight brightness both corresponding to the backlight index. The output gray level GLOUT can be determined by the following equation (3).
On the other hand, when the input gray level GLIN is higher than the reference gray level X1; that is, when the input gray level GLIN lies in between N and the reference gray level X1, the input gray level GLIN is transferred into the corresponding output gray level GLOUT according to a linear relationship (Step 212). The output gray level GLOUT can be determined by the following equation (4).
As a result, the high gray level (or low gray level) image can have better image contrast after transformation, such that users are capable of distinguishing the color gradations clearly.
Furthermore, in another embodiment, the brightness of the backlight is adjusted to be declined according to the backlight index, and the first gray level boundary is higher than the second gray level boundary. Besides, the reference gray level lies in between the second gray level boundary and a middle gray level, which lies in between the first gray level boundary and the second gray level boundary; that is, the reference gray level is closer to the second gray level boundary. The first gray level boundary is the highest gray level of an image frame, and the second gray level boundary is the lowest gray level of the image frame. That is, X1 is the reference gray level, and 0 and N are the first gray level boundary and the second gray level boundary, respectively. For this embodiment, when the input gray level GLIN is lower than the reference gray level X1; that is, when the input gray level GLIN lies in between 0 and the reference gray level X1, the input gray level GLIN is transferred into the corresponding output gray level GLOUT according to a linear relationship. On the other hand, when the input gray level GLIN is higher than the reference gray level X1; that is, when the input gray level GLIN lies in between N and the reference gray level X1, the input gray level GLIN is transferred into the corresponding output gray level GLOUT according to the backlight index
For the foregoing embodiments of the present invention, the method for processing images in a liquid crystal display can be applied to enhance the image contrast and increase the color gradations, such that the image can be brighter and more colorful. Moreover, the brightness of the backlight can be relatively adjusted and moderately controlled along with the image variation, such that the backlight can be used more efficiently without unnecessary power loss, so as to reduce the power of the backlight accordingly.
As is understood by a person skilled in the art, the foregoing embodiments of the present invention are illustrative of the present invention rather than limiting of the present invention. It is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims, the scope of which should be accorded the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
96139058 A | Oct 2007 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5554912 | Thayer et al. | Sep 1996 | A |
5872896 | Li et al. | Feb 1999 | A |
7176878 | Lew et al. | Feb 2007 | B2 |
7609244 | Kim et al. | Oct 2009 | B2 |
7717601 | Tan et al. | May 2010 | B2 |
7768496 | Daly | Aug 2010 | B2 |
7786963 | Hong et al. | Aug 2010 | B2 |
7800577 | Kerofsky et al. | Sep 2010 | B2 |
7876340 | Russell et al. | Jan 2011 | B2 |
20060209005 | Pedram et al. | Sep 2006 | A1 |
20070001997 | Kim et al. | Jan 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20090102781 A1 | Apr 2009 | US |