Abstract:
The present invention provides an image processing method for a display device. The method includes: calculating an average brightness of an image; adjusting the average brightness to generate an adjusted average brightness; utilizing Brightness Preserving Bi-Histogram Equalization (BBHE) and the adjusted average brightness to process the image; and displaying the image.

Description:
BACKGROUND OF THE INVENTION 
       [0001]    1. Field of the Invention 
         [0002]    The present invention relates to an image processing and display method, and more particularly, to a method utilizing Brightness Preserving Bi-Histogram Equalization (BBHE) to process images for improvement of image quality under various conditions of the ambient light. 
         [0003]    2. Description of the Prior Art 
         [0004]    Flat panel display devices have recently increased in popularity, among which include plasma display panel (PDP) devices and liquid crystal displays (LCD). For portable devices, a small-scale or middle-scale flat display device is usually applied. The display device must be able to adjust the brightness of the backlight in order to display a discernable image under various conditions of the ambient light in the environment. This is because a portable device will encounter various ambient light conditions depending on the current operating environment. However, the adjustment of brightness for the backlight may result in a decreased overall image quality for the display device. The related prior art provides a method for improving poor image quality by displaying more bits in the display device while decreasing the brightness of the backlight. For example, the number of bits is increased from eight bits to ten bits to compensate for problems caused by dimness of the backlight, such as a low contrast, low chromatism, or low saturation etc., to improve the image quality and resolution. However, displaying an image with increased bits also increases cost. 
         [0005]    Additionally, in U.S. Pat. No. 6,762,567, a driving device for a plasma display panel is disclosed. When the average brightness of the image is decreased by adjusting the backlight, the driving device changes the voltage level, width, and frequency of the voltage driving pulse signal to improve the degraded image quality caused by the adjustment to the average brightness. However, increasing the width and frequency of the pulse not only results in more power consumption, but also degrades overall uniformity of the panel. 
       SUMMARY OF THE INVENTION 
       [0006]    Therefore one of the objectives of the present invention is to provide an image processing method to improve image quality in a display device. 
         [0007]    According to an embodiment of the claimed invention, an image processing method for a display device is disclosed. The method comprises: calculating an average brightness of an image; adjusting the average brightness to generate an adjusted average brightness; and utilizing Brightness Preserving Bi-Histogram Equalization (BBHE) and the adjusted average brightness to process the image. 
         [0008]    These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0009]      FIG. 1  is a table illustrating the relationship between gamma values and brightness adjustment parameters for an image under various ambient light and backlight conditions. 
           [0010]      FIG. 2  is a table showing setting values corresponding to different conditions of ambient light and backlight settings. 
           [0011]      FIG. 3  is a flowchart illustrating the image processing method in a display device according to an embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0012]    According to an embodiment of the present invention, Brightness Preserving Bi-Histogram Equalization (BBHE) is utilized in a display device to compensate for decreased image quality upon the occurrence of a backlight adjustment when changed in response to ambient light. BBHE was first proposed in 1997 by Yeong-Taeg Kim proposed to improve original histogram equalization. Further details regarding BBHE can be found from the publication “Contrast Enhancement Using Brightness Preserving Bi-Histogram Equalization” by Y. T. Kim, IEEE Transactions on Consumer Electronics, vol. 43, No. 1, February 1997. While the original histogram equalization is used, the average brightness of the output image is independent of the average brightness of the unprocessed image. The average brightness of the output image can be represented through the following: 
         [0000]    
       
         
           
             
               
                 
                   
                     E 
                      
                     
                       ( 
                       Y 
                       ) 
                     
                   
                   = 
                   
                     
                       
                         X 
                         0 
                       
                       + 
                       
                         X 
                         
                           L 
                           - 
                           1 
                         
                       
                     
                     2 
                   
                 
               
               
                 
                   Equation 
                    
                   
                       
                   
                    
                   
                     ( 
                     1 
                     ) 
                   
                 
               
             
           
         
       
     
         [0000]    where E(Y) is the average brightness level, X 0  is the minimum gray-level of the unprocessed image, and X L−1  is the maximum gray-level of the unprocessed image. 
         [0013]    However in BBHE, the average brightness of the output image includes information of the average brightness of the unprocessed image. The average brightness is shown below as: 
         [0000]    
       
         
           
             
               
                 
                   
                     E 
                      
                     
                       ( 
                       Y 
                       ) 
                     
                   
                   = 
                   
                     
                       1 
                       2 
                     
                      
                     
                       ( 
                       
                         
                           X 
                           m 
                         
                         + 
                         
                           
                             
                               X 
                               0 
                             
                             + 
                             
                               X 
                               
                                 L 
                                 - 
                                 1 
                               
                             
                           
                           2 
                         
                       
                       ) 
                     
                   
                 
               
               
                 
                   Equation 
                    
                   
                       
                   
                    
                   
                     ( 
                     2 
                     ) 
                   
                 
               
             
           
         
       
     
         [0000]    where X m  represents the average brightness of the unprocessed image. 
         [0014]    Therefore, while the display device executes firmware supporting the above-mentioned BBHE, the average brightness of the unprocessed image, i.e. X m , is multiplied by a brightness adjustment parameter B to change the average brightness of the final output image and improve image quality. The new mapped image (Y′) is represented in the following: 
         [0000]    
       
         
           
             
               Y 
               ′ 
             
             = 
             
               { 
               
                 
                   
                     
                         
                        
                       
                         
                           
                             X 
                             0 
                           
                           + 
                           
                             
                               ( 
                               
                                 
                                   X 
                                   m 
                                   ′ 
                                 
                                 - 
                                 
                                   X 
                                   0 
                                 
                               
                               ) 
                             
                              
                             
                               
                                 c 
                                 L 
                                 ′ 
                               
                                
                               
                                 ( 
                                 x 
                                 ) 
                               
                             
                           
                         
                         ; 
                       
                     
                   
                   
                     
                         
                        
                       
                         
                           for 
                            
                           
                               
                           
                            
                           x 
                         
                         ≤ 
                         
                           X 
                           m 
                           ′ 
                         
                       
                     
                   
                 
                 
                   
                     
                         
                        
                       
                         
                           
                             X 
                             
                               m 
                               + 
                               1 
                             
                             ′ 
                           
                           + 
                           
                             
                               ( 
                               
                                 
                                   X 
                                   
                                     L 
                                     - 
                                     1 
                                   
                                 
                                 - 
                                 
                                   X 
                                   
                                     m 
                                     + 
                                     1 
                                   
                                   ′ 
                                 
                               
                               ) 
                             
                              
                             
                               
                                 c 
                                 u 
                                 ′ 
                               
                                
                               
                                 ( 
                                 x 
                                 ) 
                               
                             
                           
                         
                         ; 
                       
                     
                   
                   
                     
                         
                        
                       others 
                     
                   
                 
               
             
           
         
       
     
         [0000]    where X m ′=B×X m , X m+1 =B×X m+1 , and C L  and C U  are cumulative density functions. As a result, the mapped image can be changed by controlling the brightness adjustment parameter B. 
         [0015]    Aside from utilizing BBHE to improve image quality, the image can be further improved by simultaneously adjusting a gamma value corresponding to the image. Adjustment of the gamma value is well known to those skilled in the art, and is therefore not discussed here in further detail. 
         [0016]    Under different conditions of ambient light and backlight settings, multiple sets of gamma values (G) and brightness adjustment parameters can be deduced for adjustment of the image. Please refer to  FIG. 1 .  FIG. 1  is a table illustrating the relationship between gamma values (G) and brightness adjustment parameters (B) of an image under a certain condition of the ambient light and backlight (for example, the ambient light and backlight being darker). In this example, the gamma values are set at 0.6, 0.8, 1.0, and 1.2, and the brightness adjustment parameters are set at 0.8, 1.0, and 1.2. The combination of each gamma value and brightness adjustment parameter described above corresponds to images P_ 1 ˜P_ 12  respectively. The images with better quality are selected, with the gamma value and brightness adjustment parameter corresponding to the better images being recorded. More gamma values and brightness adjustment parameters corresponding to better images can be found and recorded under different conditions of ambient light and backlight according to the above-described method. 
         [0017]    Please refer to  FIG. 2 .  FIG. 2  is a table illustrating setting values corresponding to different conditions of ambient light (AL) and backlight (BL) settings. As shown in  FIG. 2 , each combination of ambient light and backlight (i.e. bright, middle, and dark) corresponds to each respective setting value (i.e. V 1 , V 2 , and V 3 ). Each setting value comprises a gamma setting value and a brightness adjustment parameter. In this embodiment, the conditions for ambient light and backlight (i.e. bright, middle, and dark) are only supplied for illustrative purposes. Additional setting values can be utilized to accurately describe the various conditions of the ambient light and backlight which may occur in practice. Therefore, additional setting values can be referenced to adjust the image for improvement of image quality. 
         [0018]    Please refer to  FIG. 3 .  FIG. 3  is a flowchart illustrating the image processing method for a display device according to the embodiment of the present invention. As shown in  FIG. 3 , the brightness of the backlight in the display device is adjusted according to the brightness level of ambient light (step S 310 ). The setting values which correspond to different conditions of ambient light and backlight, are first selected. The gamma values of the image are then set according to the gamma setting values of the setting values (step S 320 ). Finally, the brightness adjustment parameter in the setting values is substituted into BBHE to improve the brightness of the image (step S 330 ). 
         [0019]    In summary, the embodiment of the present invention improves image brightness through a brightness adjustment parameter so that a degraded image quality caused by a change in backlight and/or ambient light conditions can be compensated for. Moreover, the quality of the image can be further improved according to the adjustments of gamma values. Using the method provided in the embodiment of the present invention, an improve image quality will result regardless of adjustments to backlight display brightness and various ambient light conditions. 
         [0020]    Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.