1. Field of the Invention
The invention relates to an apparatus and the method thereof applied in a display system for adjusting the brightness of an inputted video sequence, and more particularly the apparatus of the invention is suitable for all kinds of color spaces.
2. Description of the Prior Art
Flat panel display will be the most popular display in the future, and more particularly people pay much more attention on liquid crystal display (LCD) due to the advantages including thinner thickness, lighter weight, lower radiation, higher resolution, higher brightness, and so on. Furthermore, LCD can be applied to various applications, e.g. personal computer (PC), commercial billboard, home theater, and so on.
The brightness of a conventional LCD is generated via a back light module, and the permeability of the back light module can be changed by the liquid crystal, so as to decide the brightness (luminance or gray scale level) of an image. When an 8 bit LCD is used to display images, an image has the highest brightness as the gray scale level of the image is 255, and another image has the lowest brightness as the gray scale level of the image is 0. Currently, the brightness of an LCD TV ranges between 400 cd/m2 and 600 cd/m2 as the gray scale level is 255 and between 0.7 cd/m2 and 1.4 cd/m2 as the gray scale level is 0. A pupil of the eye will automatically enlarge and shrink with the environmental brightness to control the amount of light getting into the eye. When a big area of an image is displayed with high gray levels (e.g. snow scene), the pupil will automatically shrink to reduce the amount of light getting into the eye. When a big area of an image is displayed with low gray levels (e.g. night scene), the pupil will automatically enlarge to increase the amount of light getting into the eye. In practical application, a TV program is always displayed with bright and dark image alternately, so the pupil will also enlarge and shrink at every moment when the displayed image is changed. Thus, when a user watches programs for a long time, he/she will feel tired easily due to the characteristic of high brightness of the LCD.
Referring to
Moreover, when a user uses the LCD TV to watch programs for a long time, it not only causes the eye of the user heavy load but also easily causes the image bad contrast. The reason is that the pupil needs a span of time to enlarge and shrink. When the amount of light getting into the eye cannot be controlled effectively, the contrast of the image will be worse.
Therefore, the objective of the invention is to provide an apparatus and the method thereof for adjusting the brightness of an inputted video sequence, so as to solve the above-mentioned problems.
An objective of the invention is to provide an apparatus and the method thereof or automatically controlling the lumen of a display system with the changed image, so as to reduce the load for the eye when a user watches programs for a long time and to improve the contrast of the image.
According to a preferred embodiment of the invention, a video sequence is inputted into a display system. The inputted video sequence includes N image frames to be displayed. Each of the N image frames consists of T pixels, and each pixel of each image frame includes M color components and M gray scale levels. Each of the M gray scale levels corresponds to one of the M color components, and N, T, and M are respectively a natural number. In this embodiment, the M color components are respectively R, G, and B (Red, Green, and Blue) color components conforming to RGB color space. In RGB color space, the brightness and the color are mixed and cannot be separated from the R, G, and B color components. Accordingly, the apparatus of the invention is used for adjusting the gray scale levels of each pixel of the image frame in the video sequence, so as to adjust the brightness of the image frame.
The apparatus of the invention functions adjusting the M gray scale levels of the M color components of the ith image frame in the video sequence, and i is an integer index ranging from 1 to N. The gray scale levels of the image frames previous to the ith image frame have been adjusted, and each of the image frames previous to the ith image frame has a respective brightness ratio. Each brightness ratio is determined based on the gray scale levels of the corresponding image frame and is within an allowable range. A plurality of gains is previously provided. Each of the gains corresponds to one of the brightness ratios and varies within the allowable range.
According to the invention, the apparatus for adjusting the gray scale levels includes a first calculating module, a second calculating module, a judging module, a determining module, and an adjusting module. The first calculating module is used for retrieving all of the gray scale levels of all pixels of the ith image frame, and calculating, according to all of the gray scale levels of all pixels of the ith image frame, a current brightness ratio. The second calculating module is used for calculating, according to all of the brightness ratios of the image frames previous to the ith image frame and the current brightness ratio, an averaged brightness ratio. The judging module is used for receiving the current brightness ratio and the averaged brightness ratio, and outputting one selected from the current brightness ratio or the averaged brightness ratio as an outputted brightness ratio, wherein the outputted brightness ratio is also within the allowable range. The determining module is used for storing the brightness ratios varying within the allowable range and the corresponding gains. The determining module has an input coupled to receive the outputted brightness ratio and determines the gain corresponding to the outputted brightness ratio. The adjusting module is used for receiving the gain corresponding to the outputted brightness ratio and for multiplying the gray scale level of each color component of the ith image frame by the gain corresponding to the outputted brightness ratio, respectively.
Therefore, when the display system displays a program, the apparatus of the invention can prevent the image brightness from changing violently, so as to reduce the load for the eye when a user watches the program for a long time and to improve the contrast of the image.
The advantage and spirit of the invention may be understood by the following recitations together with the appended drawings.
The invention discloses an apparatus and the method thereof for adjusting the brightness of an inputted video sequence in a display system. No matter the inputted video sequence conforms to which color space, the apparatus and the method of the invention are always suitable. For example, when an image frame conforms to RGB color space, the invention is to adjust the gray scale levels of the R, G, and B color components because the brightness and the color are mixed and cannot be separated from the R, G, and B color components, so as to control the brightness of the image frame. When an image frame conforms to L*a*b* color space, the invention is to adjust the luminance of the luminance component L* because each pixel of the image frame is converted to include two color components a* and b* and a luminance component L*, so as to control the brightness of the image frame.
According to a first preferred embodiment of the invention, a video sequence is inputted into a display system. The inputted video sequence includes N image frames to be displayed. Each of the N image frames consists of T pixels, and each pixel of each image frame includes M color components and M gray scale levels. Each of the M gray scale levels corresponds to one of the M color components, and N, T, and M are respectively a natural number. In this embodiment, the M color components are respectively R, G, and B (Red, Green, and Blue) color components conforming to RGB color space. The M gray scale levels respectively represent the gray scale levels of R, G, and B color components. In RGB color space, the brightness and the color are mixed and cannot be separated from the R, G, and B color components. Accordingly, the apparatus of the invention is used for adjusting the gray scale levels of each pixel of each image frame in the video sequence, so as to adjust the brightness of the image frame.
In some display systems, the M color components and the M gray scale levels are converted by Gamma adjust transformation, so there is a respective linear correlation between the M gray scale levels and the brightness of the M color components.
In some display systems, besides aforementioned Gamma adjust transformation, the inputted might be amplified to provide more details in gray scale levels. For instance, an image with 8-bits may be amplified into 12-bits during Gamma adjust transformation.
In the first embodiment, the apparatus of the invention functions adjusting the M gray scale levels of the M color components of the ith image frame in the video sequence, and i is an integer index ranging from 1 to N. The gray scale levels of the image frames previous to the ith image frame have been adjusted, and each of the image frames previous to the ith image frame has a respective brightness ratio. Each brightness ratio is determined based on the gray scale levels of the corresponding image frame and is within an allowable range. A plurality of gains is previously provided. Each of the gains corresponds to one of the brightness ratios and varies within the allowable range.
Referring to
wherein Yi represents the sum of all of the gray scale levels of all pixels of the ith image frame, and Ytotal represents a pre-defined sum of all of the gray scale levels of all pixels of each image frame. For example, if an 8 bit image has T pixels, Ytotal is equal to 255*T. Yi is calculated via the following equation 2:
wherein GRj represents the gray scale level of the R color component of the jth pixel of the ith image frame, GGj represents the gray scale level of the G color component of the jth pixel of the ith image frame, and GBj represents the gray scale level of the B color component of the jth pixel of the ith image frame, and j is an integer index ranging from 1 to T. The equation 2 conforms to Consultative Committee for International Radio (CCIR) 601 standard.
The second calculating module 14 is used for calculating, according to all of the brightness ratios of the image frames previous to the ith image frame and the current brightness ratio, an averaged brightness ratio BRavg. The averaged brightness ratio BRavg is calculated via the following equation 3:
The judging module 16 is used for receiving the current brightness ratio BRi and the averaged brightness ratio BRavg. The judging module 16 further stores a threshold. When the difference between the current brightness ratio BRi and the averaged brightness ratio BRavg is larger than the threshold, i.e. | BRi-BRavg|>Threshold, the judging module 16 outputs the current brightness ratio BRi as the outputted brightness ratio and replaces all of the brightness ratios of the image frames previous to the ith image frame by the current brightness ratio BRi of the ith image frame. When the difference between the current brightness ratio BRi and the averaged brightness ratio BRavg is smaller than the threshold, i.e. | BRi-BRavg|<Threshold, the judging module 16 outputs the averaged brightness ratio BRavg as the outputted brightness ratio. The outputted brightness ratio is also within the allowable range.
The determining module 18 is used for storing the brightness ratios varying within the allowable range and the corresponding gains. The determining module 18 has an input coupled to receive the outputted brightness ratio and determines the gain corresponding to the outputted brightness ratio. The adjusting module 20 is used for receiving the gain corresponding to the outputted brightness ratio and for multiplying the gray scale level of each color component of the ith image frame by the gain corresponding to the outputted brightness ratio, respectively. Accordingly, the brightness of the ith image frame in the inputted video sequence can be controlled, so as to prevent the image brightness from changing violently.
In some display systems, if the inputted video sequence had been amplified, after the brightness of the video sequence is adjusted by the apparatus of the invention, the adjusted video sequence has to be processed via an error diffusion calculation.
In some display systems, if the inputted video sequence had been converted by a first Gamma adjust transformation, after the brightness of the video sequence is adjusted by the apparatus of the invention, the adjusted video sequence has to be converted by a second Gamma adjust transformation, so as to maintain the product of the first Gamma adjust transformation and the second Gamma adjust transformation as 1.0.
Referring to
Referring to
According to a second preferred embodiment of the invention, a video sequence is inputted into a display system. The inputted video sequence includes N image frames to be displayed. Each of the N image frames consists of T pixels, and each pixel of each image frame is converted to include M color components and a luminance component, and N, T, and M are respectively a natural number. In this embodiment, the inputted video sequence is converted from RGB color space to L*a*b* color space. The M color components are respectively a* and b*, and the luminance component is L*. L*a*b* color space is a standard set by Commission International d'Eclairage (CIE). In L*a*b* color space, the luminance (L*) is independent to the color (a*, b*). Accordingly, the apparatus of the invention is used for adjusting the luminance of each pixel of each image frame in the video sequence, so as to adjust the luminance of the image frame.
In some display systems, the inputted video sequence had been converted by Gamma adjust transformation to obtain the correct image brightness information.
In some display systems, besides aforementioned Gamma adjust transformation, the inputted might be amplified to provide more details in gray scale levels. For instance, an image with 8-bits may be amplified into 12-bits during Gamma adjust transformation.
In the second embodiment, the apparatus of the invention functions adjusting the luminance of the luminance components L* of the ith image frame in the video sequence, and i is an integer index ranging from 1 to N. The luminance of the image frames previous to the ith image frame has been adjusted, and each of the image frames previous to the ith image frame has a respective luminance ratio. Each luminance ratio is determined based on the luminance of the corresponding image frame and is within an allowable range. A plurality of gains is previously provided. Each of the gains corresponds to one of the luminance ratios and varies within the allowable range.
Referring to
wherein Li represents the sum of all of the luminance of all pixels of the ith image frame, and Ltotal represents a pre-defined sum of all of the luminance of all pixels of each image frame. For example, if an 8 bit image has T pixels, Ltotal is equal to 255*T.
The second calculating module 34 is used for calculating, according to all of the luminance ratios of the image frames previous to the ith image frame and the current luminance ratio, an averaged luminance ratio LRavg. The averaged luminance ratio LRavg is calculated via the following equation 5:
The judging module 36 is used for receiving the current luminance ratio LRi and the averaged luminance ratio LRavg. The judging module 36 further stores a threshold. When the difference between the current luminance ratio LRi and the averaged luminance ratio LRavg is larger than the threshold, i.e. | LRi-LRavg|>Threshold, the judging module 36 outputs the current luminance ratio LRi as the outputted luminance ratio and replaces all of the luminance ratios of the image frames previous to the ith image frame by the current luminance ratio LRi of the ith image frame. When the difference between the current luminance ratio LRi and the averaged luminance ratio LRavg is smaller than the threshold, i.e. |LRi-LRavg|<Threshold, the judging module 36 outputs the averaged luminance ratio LRavg as the outputted luminance ratio. The outputted luminance ratio is also within the allowable range.
The determining module 38 is used for storing the luminance ratios varying within the allowable range and the corresponding gains. The determining module 38 has an input coupled to receive the outputted luminance ratio and determines the gain corresponding to the outputted luminance ratio. The adjusting module 40 is used for receiving the gain corresponding to the outputted luminance ratio and for multiplying the luminance of each luminance component of the ith image frame by the gain corresponding to the outputted luminance ratio, respectively. Accordingly, the luminance of the ith image frame in the inputted video sequence can be controlled, so as to prevent the image luminance from changing violently.
In some display systems, if the inputted video sequence had been amplified, after the luminance of the video sequence is adjusted by the apparatus of the invention, the adjusted video sequence has to be processed via an error diffusion calculation.
In the second embodiment, because the current display system can only receive RGB signals, when the luminance of the video sequence has been adjusted, the adjusted video sequence has to be converted from L*a*b* color space to RGB color space.
In some display systems, if the inputted video sequence had been converted by a first Gamma adjust transformation, after the luminance of the video sequence is adjusted by the apparatus of the invention, the adjusted video sequence has to be converted by a second Gamma adjust transformation, so as to maintain the product of the first Gamma adjust transformation and the second Gamma adjust transformation as 1.0.
Referring to
Referring to
Referring to
Compared to the prior art, when the display system displays a program, the apparatus of the invention can prevent the image brightness from changing violently, so as to reduce the load for the eye when a user watches the program for a long time and to improve the contrast of the image. Moreover, the apparatus of the invention is suitable for all kinds of color spaces.
With the example and explanations above, the features and spirits of the invention will be hopefully well described. Those skilled in the art will readily observe that numerous modifications and alterations of the device may be made while retaining the teaching of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
94110129 A | Mar 2005 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
6778160 | Kubota et al. | Aug 2004 | B2 |
7170477 | Okamoto et al. | Jan 2007 | B2 |
20010024181 | Kubota et al. | Sep 2001 | A1 |
20010035850 | Okamoto et al. | Nov 2001 | A1 |
20040036703 | Aoki et al. | Feb 2004 | A1 |
20040155855 | Chang | Aug 2004 | A1 |
20050140631 | Oh et al. | Jun 2005 | A1 |
20050162343 | Kim | Jul 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20060221100 A1 | Oct 2006 | US |