Disclosure of Invention
The invention provides a brightness adjusting method and a display, wherein the display and the brightness adjusting method thereof can judge whether the pixel value of each target pixel in a picture needs to be adjusted by calculating the number of a plurality of target pixels in the picture corresponding to a plurality of gray scale values respectively.
The brightness adjusting method is suitable for the display, and a display panel of the display comprises a plurality of pixels. The brightness adjusting method comprises the following steps: judging the maximum pixel value of each of the plurality of pixels in the picture; counting the number of a plurality of gray values respectively corresponding to the maximum pixel values of the plurality of pixels to establish a gray value histogram; judging whether an index value is generated according to the gray value histogram; obtaining a pixel gain value corresponding to the index value according to a lookup table; and adjusting each pixel in the picture according to the pixel gain value, wherein the time schedule controller operates the analysis module to sequentially accumulate the corresponding number of different gray values from the maximum gray value to the minimum gray value of the gray value histogram until the accumulated number value is greater than or equal to the critical number value, and determines the last accumulated gray value as the index value.
In an embodiment of the present invention, each of the plurality of pixels includes a red sub-pixel, a green sub-pixel, and a blue sub-pixel, and the step of determining the maximum pixel value of each of the plurality of pixels in a frame includes: comparing the red sub-pixel, the green sub-pixel, and the blue sub-pixel of each of the plurality of pixels to determine the maximum pixel value for each of the plurality of pixels.
In an embodiment of the invention, the display panel is an RGBW display panel.
In an embodiment of the invention, the step of determining whether to generate the index value according to the histogram of gray-level values includes: sequentially accumulating the corresponding number of different gray values from the maximum gray value to the minimum gray value of the gray value histogram until the accumulation number value is greater than or equal to the critical number value, and determining the last accumulated gray value as the index value.
In an embodiment of the invention, the step of obtaining the pixel gain value corresponding to the index value according to the lookup table includes: and obtaining a corresponding gain value according to the index value, and dividing the gain value by a preset coefficient to obtain the pixel gain value.
In an embodiment of the present invention, the step of adjusting the plurality of pixels in the frame according to the pixel gain values includes: adjusting the plurality of pixels by multiplying pixel values of the red sub-pixel, the green sub-pixel, and the blue sub-pixel of each of the plurality of pixels by the pixel gain value, respectively.
In an embodiment of the present invention, the step of adjusting the plurality of pixels in the frame according to the pixel gain values includes: setting at least one of the red sub-pixel, the green sub-pixel, and the blue sub-pixel of the plurality of pixels to be the maximum pixel value if the adjusted pixel value of the at least one of the red sub-pixel, the green sub-pixel, and the blue sub-pixel of the plurality of pixels is greater than the maximum pixel value.
The display comprises a time schedule controller, a source electrode driver and a display panel. The source driver is coupled to the timing controller. The display panel comprises a plurality of pixels for displaying a picture. The timing controller is used for driving the display panel through the source driver. The time schedule controller comprises a judging module, a counting module, an analyzing module, a searching module and an adjusting module. The judging module is used for judging the maximum pixel value of each of the plurality of pixels in the picture. The analysis module is used for judging whether an index value is generated according to the gray value histogram. The lookup module is used for obtaining a pixel gain value corresponding to the index value according to a lookup table. The adjusting module is used for adjusting each pixel in the picture according to the pixel gain value, wherein the time schedule controller operates the analyzing module to sequentially accumulate the number corresponding to different gray values from the maximum gray value to the minimum gray value of the gray value histogram until the accumulated number value is greater than or equal to the critical number value, and then the accumulated number value is stopped, and the finally accumulated gray value is determined as the index value.
In an embodiment of the invention, each of the plurality of pixels includes a red sub-pixel, a green sub-pixel and a blue sub-pixel, the target pixel includes the first pixel, the second pixel and the third pixel, and the timing controller operates the determining module to compare the red sub-pixel, the green sub-pixel and the blue sub-pixel of each of the plurality of pixels to determine the maximum pixel value of each pixel.
In an embodiment of the invention, the display panel is an RGBW display panel.
In an embodiment of the invention, the timing controller operates the analysis module to sequentially accumulate the numbers corresponding to the different gray values from the maximum gray value to the minimum gray value of the gray value histogram until the accumulated number value is greater than or equal to the critical number value, and determines the last accumulated gray value as the index value.
In an embodiment of the invention, the timing controller operates the lookup module to obtain a corresponding gain value according to the index value, and divides the gain value by a preset coefficient to obtain the pixel gain value.
In an embodiment of the invention, the timing controller operates the adjusting module to adjust the plurality of pixels by multiplying pixel values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of each of the plurality of pixels by the pixel gain value respectively.
In an embodiment of the invention, if an adjusted pixel value of at least one of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the plurality of pixels is greater than a maximum pixel value, the timing controller operates the adjusting module to set at least one of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the plurality of pixels as the maximum pixel value.
Based on the above, the brightness adjustment method and the display of the invention can effectively determine the distribution of the maximum pixel value of each pixel in the display screen, and further correspondingly adjust the brightness of each red sub-pixel, each green sub-pixel and each blue sub-pixel in the display screen of the RGBW display panel.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Detailed Description
A number of embodiments are presented below to illustrate the invention, however the invention is not limited to the illustrated embodiments. Suitable combinations between the embodiments are also allowed.
Fig. 1 is a schematic diagram of a display according to an embodiment of the invention. Referring to fig. 1, the display 100 includes a Timing Controller (TCON) 110, a Source driver (Source driver) 120, and a display panel 130. The timing controller 110 may include a plurality of modules, wherein the modules may be used for image processing. In this embodiment, the modules may include a determining module 111, a counting module 112, an analyzing module 113, a searching module 114, and an adjusting module 115.
In the present embodiment, the Display 100 is a Liquid Crystal Display (LCD). The timing controller 110 is coupled to the source driver 120, and the source driver 120 is coupled to the display panel 130. The timing controller 110 drives the display panel 130 through the source driver 120. In this embodiment, the timing controller 110 may execute the determining module 111, the counting module 112, the analyzing module 113, the searching module 114, and the adjusting module 115, so as to implement the image analyzing and adjusting method and the like according to the embodiments of the present invention. In the embodiment, the determining module 111, the counting module 112, the analyzing module 113, the searching module 114, and the adjusting module 115 may be implemented in a circuit form of hardware, but the invention is not limited thereto. In an embodiment, the modules may also be stored in the storage device in a software form, so that the timing controller 110 can implement the image analysis and adjustment method according to the embodiments of the present invention by executing the modules.
In this embodiment, the display panel 130 may be an RGBW display panel (Red-Green-Blue-White). The display panel 130 may include a plurality of pixels, and each pixel includes four sub-pixels, namely, a red sub-pixel (R), a green sub-pixel (G), a blue sub-pixel (B), and a white sub-pixel (W). In contrast, the display panel 130 of the present embodiment determines whether to adjust the pixel values (luminance values) of the red sub-pixel, the green sub-pixel and the blue sub-pixel of each pixel according to the respective maximum pixel values of the pixels corresponding to the different gray scale values.
In the present embodiment, the timing controller 110 can execute these modules when the display panel 130 displays an image. In this embodiment, for a Frame (Frame) of an image, the determining module 111 is configured to determine a maximum pixel value of each of a plurality of pixels in the Frame. The determining module 111 compares the red sub-pixel, the green sub-pixel and the blue sub-pixel of the pixels to determine the maximum pixel value of each pixel. For example, if a pixel has a red sub-pixel value, a green sub-pixel value, and a blue sub-pixel value of 125, and 255, respectively, the determining module 111 determines that the maximum pixel value of the pixel is 255.
In this embodiment, the statistic module 112 may count the number of the plurality of gray-scale values corresponding to the maximum pixel values of the pixels, respectively, to create a histogram of the gray-scale values. Then, the analysis module 113 may sequentially accumulate the corresponding amounts of the different gray values from the maximum gray value (255) to the minimum gray value (0) of the gray value histogram until the accumulated amount is greater than or equal to the threshold amount, and determine the last accumulated gray value as the index value. The lookup module 114 may obtain a Pixel Gain value (Pixel Gain) corresponding to the index value according to a lookup Table (Look Up Table, LUT). Finally, the adjusting module 115 can adjust all pixels of the display panel 130 according to the pixel gain value, so that the brightness of the image displayed by the display panel 130 can be increased. Additionally, each of the modules may further continuously adjust a plurality of continuous frames in the image to perform a dynamic dimming (dimming) operation.
Fig. 2 is a histogram of gray values according to an embodiment of the invention. Referring to fig. 1 and 2, the statistical module 112 can classify the maximum pixel value of each pixel into the corresponding gray-scale value to create the gray-scale histogram shown in fig. 2. In the present embodiment, the horizontal axis of the gradation value histogram is gradation values of 0 to 255, and the vertical axis of the gradation value histogram is a number. Therefore, the gray value histogram can be used to represent the distribution of the maximum pixel value of each pixel in a frame. In addition, in the embodiment, the analysis module 113 may sequentially accumulate the numbers corresponding to the different gray values from the maximum gray value (255) to the minimum gray value (0) of the gray value histogram until the accumulated number value is greater than or equal to the threshold number value t, and determine the last accumulated gray value as the index value.
In the present embodiment, the display 100 of the present embodiment can set the magnitude of the threshold t according to the user requirement or the panel specification. In this embodiment, the timing controller 110 may obtain the Gain value (Gain) corresponding to the index value by executing the lookup table established by the lookup module 114. The look-up table may be, for example, as shown in table 1 below.
Index value (Index)
|
Gain value (Gain)
|
128
|
512
|
160
|
410
|
192
|
341
|
240
|
273
|
255
|
256 |
TABLE 1
For example, when the analysis module 113 determines that the last accumulated gray value is 240, the lookup module 114 obtains 273 the gain value corresponding to the index value 240 from the lookup table. Then, the lookup module 114 divides the Gain value by a predetermined coefficient to obtain the Pixel Gain value (Pixel Gain). In the embodiment, the predetermined coefficient may be 256, and the pixel gain value in this embodiment is 273/256, but the invention is not limited thereto. In one embodiment, the lookup table of table 1 can be determined according to user requirements or panel characteristics, and the relationship between the gain value and the pixel gain value can be determined according to the following formula (1).
PixelGain=Gain/256………………(1)
FIG. 3 is a diagram illustrating adjusting a gray-level value according to an embodiment of the invention. Referring to fig. 1 and fig. 3, a relationship between an input gray scale (input gray scale) for driving the display panel 130 and an output gray scale (output gray scale) displayed on the display panel 130 is shown by a line segment L1. According to the above illustration, when the lookup module 114 obtains 273 the gain value corresponding to the index value 240 from the lookup table of table 1, the timing controller 110 can obtain 273/256 the pixel gain value. Then, the timing controller 110 may execute the adjustment module 115 to multiply 273/256 the respective pixel value of each pixel. However, since the upper limit of the pixel value is 255, if the adjusted pixel value of at least one of the red sub-pixel, the green sub-pixel and the blue sub-pixel of a certain pixel is larger than the upper limit of the pixel value, the pixel value of at least one of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the pixel is directly set to 255. For another example, if the pixel value of the pixel is 240, the pixel gain value 273/256 is multiplied by the pixel value to be approximately equal to 255.9. In this regard, the adjusting module 115 directly sets the pixel value of the pixel to 255. Therefore, the relationship between the adjusted input gray-scale value and the output gray-scale value can be shown as the line segment L2, and the overall color brightness of the picture displayed by the adjusted display panel 130 will be lightened.
Fig. 4 is a flowchart of a brightness adjustment method according to an embodiment of the invention. Referring to fig. 1 and fig. 4, the brightness adjustment method of the present embodiment is at least suitable for the display 100 of fig. 1. In the present embodiment, the display panel 130 of the display 100 may include a plurality of pixels. The brightness adjusting method of the present embodiment may include the following steps. In step S410, the timing controller 110 may execute the determining module 111 and determine the maximum pixel value of each of the plurality of pixels in one screen. In step S420, the timing controller 110 may execute the statistics module 112 and count a number of gray-scale values corresponding to maximum pixel values of the pixels, respectively, to create a gray-scale value histogram. In step S430, the timing controller 110 may execute the analysis module 113 and determine whether to generate an index value according to the histogram of gray-level values. In step S440, the timing controller 110 may execute the lookup module 114 and obtain the pixel gain value corresponding to the index value according to the lookup table. In step S450, the timing controller 110 may execute the adjusting module 115 and adjust each of the pixels in the frame according to the pixel gain value. Accordingly, the brightness adjustment method of the present embodiment can effectively adjust the brightness of each red sub-pixel, each green sub-pixel and each blue sub-pixel in the display screen of the RGBW display panel.
In addition, the related device features, the image analysis method and the image adjustment method of the brightness adjustment method of the present embodiment can obtain sufficient teaching, suggestion and implementation descriptions from the above description of the embodiments of fig. 1 to 3, and therefore, are not repeated.
In summary, the brightness adjustment method and the display of the present invention can effectively determine the color brightness of each red sub-pixel, each green sub-pixel and each blue sub-pixel in the display panel, and accordingly adjust the overall color brightness of the display panel. In addition, the invention can also adjust a plurality of different continuous pictures in the image in sequence so as to dynamically adjust the color brightness of the display panel. Therefore, the brightness adjusting method and the display can provide good display effect.
Although the present invention has been described with reference to the above embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention.