Disclosure of Invention
The present invention is directed to overcome the drawbacks of the prior art and to provide a color Mura compensation method, which can improve the Mura phenomenon of a display panel and reduce the capacity of a storage medium on the display panel.
In order to achieve the purpose, the invention provides the following technical scheme: a color Mura compensation method comprises the following steps:
step S1, shooting the gray-scale image displayed by the display panel under each gray scale by using a camera shooting analysis device;
step S2, the camera shooting analysis device obtains the gray scale information of each red sub-pixel unit in each red gray scale image, the gray scale information of each green sub-pixel unit in each green gray scale image and the gray scale information of each blue sub-pixel unit in each blue gray scale image, and generates a red brightness compensation image, a green brightness compensation image and a blue brightness compensation image corresponding to each red gray scale image, each green gray scale image and each blue gray scale image;
step S3, respectively generating a red luminance compensation formula, a green luminance compensation formula, and a blue luminance compensation formula according to each red luminance compensation image, each green luminance compensation image, and each blue luminance compensation image, wherein:
the red luminance compensation formula is as follows:
..................
the green luminance compensation formula is as follows:
..........
the blue luminance compensation formula is as follows:
.........
wherein x represents the abscissa of the sub-pixel unit, y represents the ordinate of the sub-pixel unit, z represents the luminance compensation value, G, p, q are the gray scale numbers, R represents red, G represents green, B represents blue, m represents the number of pixels of the width of the display panel, n represents the number of pixels of the length of the display panel, m, n are integers greater than 1;
step S4, generating a target brightness compensation image according to the brightness compensation formula;
step S5, mixing the target brightness compensation image and the original image into a final image.
Preferably, in step S1, the gray scale range is selected from 0-2^8、0~2^10、0~2^12、 0~2^16One kind of (1).
Preferably, the camera shooting and resolving device comprises a camera and a computer, the camera captures the gray scale information of all sub-pixel units in each gray scale image, and the resolution of the camera is greater than or equal to that of the display panel;
the computer is used for analyzing the red gray scale information, the green gray scale information and the blue gray scale information, and respectively generating a red brightness compensation image, a green brightness compensation image, a blue brightness compensation image, a red brightness compensation formula, a green brightness compensation formula and a blue brightness compensation formula according to the red gray scale information, the green gray scale information and the blue gray scale information.
Preferably, the computer generates the red luminance compensation formula, the green luminance compensation formula, and the blue luminance compensation formula from the red luminance compensation image, the green luminance compensation image, and the blue luminance compensation image by fourier transform.
Preferably, the red luminance compensation formula, the green luminance compensation formula, and the blue luminance compensation formula are stored in a storage medium of a driving chip on the display panel.
Preferably, the generation of the red, green and blue luminance compensation images comprises the steps of:
step 201, according to the gray scale range and the resolution of the display panel, establishing M red brightness compensation value tables containing P rows and Q columns, M green brightness compensation value tables containing P rows and Q columns, and M blue brightness compensation value tables containing P rows and Q columns, wherein M represents the gray scale number, P represents the number of pixels of the length of the display panel, Q represents the number of pixels of the width of the display panel, and M, P, Q are integers greater than 1;
step 202, comparing the brightness value of each red sub-pixel unit in each red gray-scale image with the gray-scale value adopted for shooting the current red gray-scale image, obtaining the red brightness compensation value of each red sub-pixel unit in each red gray-scale image, and filling the red brightness compensation value into the corresponding table of the red brightness compensation table; comparing the brightness value of each green sub-pixel unit in each green gray scale image with the gray scale value adopted for shooting the current red gray scale image to obtain the green brightness compensation value of each green sub-pixel unit in each green gray scale image, and filling the green brightness compensation value into a green brightness compensation table; comparing the brightness value of each blue sub-pixel unit in each blue gray-scale image with the gray-scale value adopted for shooting the current blue gray-scale image to obtain the blue brightness compensation value of each blue sub-pixel unit in each blue gray-scale image, and filling the blue brightness compensation value into a blue brightness compensation table;
step 203, generating a red brightness compensation image according to the red brightness compensation value of each red sub-pixel unit in each red gray scale image; generating a green brightness compensation image according to the green brightness compensation value of each green sub-pixel unit in each green gray scale image; and generating a blue-red brightness compensation image according to the blue brightness compensation value of each blue sub-pixel unit in each blue gray scale image.
Preferably, step 201 further includes establishing a direct coordinate system in the brightness compensation value table, where each pixel unit in the brightness compensation image includes coordinate information and brightness compensation value information.
Preferably, in step S4, the generating of the target luminance compensation image includes:
step 401, obtaining gray scale information and coordinate information of each pixel unit in a target image;
step 402, generating a target brightness compensation value of each sub-pixel unit according to the gray scale information and the coordinate information;
and 403, generating a target brightness compensation image according to the target brightness compensation value.
Preferably, the generating of the target luminance compensation value for each sub-pixel unit includes: and substituting the coordinate information of each sub-pixel unit into a brightness compensation formula matched with the gray scale information to calculate a target brightness compensation value.
Preferably, in step S5, the target luminance compensation value of each sub-pixel unit in the target luminance compensation image is correspondingly added to the gray scale value of each sub-pixel unit in the original image, so as to obtain the actual gray scale value of each sub-pixel unit in the final image.
The invention has the beneficial effects that:
(1) the invention can immediately perform brightness compensation on each sub-pixel unit according to the original image information, thereby effectively improving the Mura phenomenon of the display panel;
(2) only the brightness compensation formula is accessed in the storage medium of the driving chip on the display panel, so that the capacity of the storage medium is reduced, and the production cost is reduced;
(3) by generating the brightness compensation formula under all gray scales, each pixel unit under each gray scale can be compensated, and the display accuracy of the display panel is improved.
Detailed Description
The technical solution of the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention.
The color Mura compensation method disclosed by the invention can be used for performing brightness compensation on the red, green and blue sub-pixel units in each pixel unit, so that the Mura phenomenon of the display panel is improved.
As shown in fig. 1, a method for color Mura compensation includes the following steps:
step S1, shooting a red gray scale image, a green gray scale image and a blue gray scale image displayed by the display panel under each gray scale by using a camera shooting analysis device;
in step S2, the camera shooting and analyzing device obtains gray scale information of each red sub-pixel unit in each red gray scale image, gray scale information of each green sub-pixel unit in each green gray scale image, and gray scale information of each blue sub-pixel unit in each blue gray scale image, and generates a red luminance compensation image, a green luminance compensation image, and a blue luminance compensation image corresponding to each red gray scale image, each green gray scale image, and each blue gray scale image.
Specifically, the display panel includes a plurality of pixel units, and each pixel unit includes at least one group of RGB sub-pixel units. Because the display panel has the Mura phenomenon, under the condition that the same gray scale and the same color are displayed, the color displayed by each sub-pixel unit is different. Therefore, it is necessary to perform brightness compensation on the red sub-pixel unit, the green sub-pixel unit and the blue sub-pixel unit in each pixel unit at each gray scale, so that the display panel can uniformly display red, green and blue colors at the same gray scale. In this embodiment, the gray scale range can be selected from 0-2^8、0~2^10、0~2^12、0~2^16One of them may be selected, or several discrete gray-scale values may be selected.
The camera shooting analysis device comprises a camera and a computer. Before shooting, the camera shooting analysis device sets the resolution of the camera to be larger than or equal to the same resolution of the display panel. The camera can acquire gray scale information of all pixel units on the display panel in the shooting process, wherein the gray scale information comprises red gray scale information, green gray scale information and blue gray scale information. The computer is used for analyzing the red gray scale information, the green gray scale information and the blue gray scale information, respectively generating a red brightness compensation image, a green brightness compensation image and a blue brightness compensation image according to the red gray scale information, the green gray scale information and the blue gray scale information, respectively generating a red brightness compensation formula, a green brightness compensation formula, a blue brightness compensation formula and the like, and writing the red brightness compensation formula, the green brightness compensation formula and the blue brightness compensation formula into a storage medium of a driving chip on the display panel. In this embodiment, the computer generates the red luminance compensation formula, the green luminance compensation formula, and the blue luminance compensation formula from the red luminance compensation image, the green luminance compensation image, and the blue luminance compensation image by fourier transform.
Furthermore, the display panel is enabled to display red, the display panel is sequentially lightened according to the set gray scale range, the camera can capture gray scale information of all red sub-pixel units in each red gray scale image and store the gray scale information into the computer, and the computer generates a red brightness compensation image according to the gray scale information of all red sub-pixel units in each red gray scale image. Similarly, the display panel is enabled to display green, and the display panel is sequentially lightened according to the set gray scale range, so that a green brightness compensation image can be finally obtained; and enabling the display panel to display blue, and sequentially lightening the display panel according to the set gray scale range to finally obtain a blue brightness compensation image.
As shown in fig. 2, the generation of the red, green and blue luminance compensation images includes the following steps:
step 201, establishing M red brightness compensation value tables containing P rows and Q columns, M green brightness compensation value tables containing P rows and Q columns, and M blue brightness compensation value tables containing P rows and Q columns according to the gray scale range and the resolution of the display panel;
step 202, comparing the brightness value of each red sub-pixel unit in each red gray-scale image with the gray-scale value adopted for shooting the current red gray-scale image, obtaining the red brightness compensation value of each red sub-pixel unit in each red gray-scale image, and filling the red brightness compensation value into the corresponding table of the red brightness compensation table; the green luminance compensation value and the blue luminance compensation value are obtained in the same manner and are filled in the green luminance compensation table and the blue luminance compensation table, respectively.
Step 203, generating a red brightness compensation image according to the red brightness compensation value of each red sub-pixel unit in each red gray scale image; generating a green brightness compensation image according to the green brightness compensation value of each green sub-pixel unit in each green gray scale image; and generating a blue-red brightness compensation image according to the blue brightness compensation value of each blue sub-pixel unit in each blue gray scale image.
Further, establishing a direct coordinate system in the brightness compensation value table of each color is further included in step 201, so that each sub-pixel unit in each finally generated brightness compensation image includes coordinate information and brightness compensation value information.
Specifically, a display panel with a resolution of 1920 × 1080 and a gray scale range of 0 to 255 is taken as an example for detailed description:
firstly, 256x3 brightness compensation value tables are established according to the gray scale range 0-255, each brightness compensation value table is divided into 1920 rows and 1080 columns of tables according to the resolution 1920x1080, and each table comprises a group of RGB sub-pixel units. A rectangular coordinate system is established in each brightness compensation value table, and each pixel unit has a coordinate (x, y), as shown in the red brightness compensation table, the coordinate of the sub-pixel unit a is (1, 1), and the coordinate of the sub-pixel unit B is (1920, 1080x 3).
Second, the luminance value to be compensated for each sub-pixel unit is calculated. As shown in fig. 3, a red gray-scale image captured at the gray-scale level 0 is taken as an example. And comparing the brightness value of each red sub-pixel unit with 0 at the gray scale of 0, and sequentially storing the brightness compensation values into a first brightness compensation value table, wherein if the brightness value captured by the camera of the sub-pixel unit A is 1, the brightness compensation value 1 is filled into the point A table in the first red brightness compensation value table. The same calculation is also adopted for other gray scales and colors. Finally, 256x3 brightness compensation value tables are formed.
Finally, 256 red luminance compensation images, 256 green luminance compensation images, and 256 blue luminance compensation images are generated based on the 256 red luminance compensation value tables, the 256 green luminance compensation value tables, and the 256 blue luminance compensation value tables.
Step S3, generating a red luminance compensation formula, a green luminance compensation formula, and a blue luminance compensation formula for each red luminance compensation image, each green luminance compensation image, and each blue luminance compensation image, respectively;
specifically, a variable z is introduced into each luminance compensation value table to represent a luminance compensation value, each of the generated red luminance compensation images contains coordinate information and luminance compensation information of each red sub-pixel unit, each of the generated green luminance compensation images contains coordinate information and luminance compensation information of each green sub-pixel unit, and each of the generated blue luminance compensation images contains coordinate information and luminance compensation information of each blue sub-pixel unit, and a red luminance compensation formula, a green luminance compensation formula, and a blue luminance compensation formula are respectively established for each of the red luminance compensation value table, each of the green luminance compensation value tables, and each of the blue luminance compensation images according to the coordinate information and the luminance compensation information.
The red luminance compensation formula is as follows:
........
the green luminance compensation formula is as follows:
......
the blue luminance compensation formula is as follows:
......
wherein x represents the abscissa of the pixel unit, y represents the ordinate of the pixel unit, z represents the luminance compensation value, G, p, q are the number of gray levels, R represents red, G represents green, B represents blue, m represents the number of pixels of the width of the display panel, n represents the number of pixels of the length of the display panel, and m, n are integers greater than or equal to 0.
Of course, the red luminance compensation formula, the green luminance compensation formula, and the blue luminance compensation formula can be expressed by using a function formula as follows:
wherein x represents the abscissa of the pixel unit, y represents the ordinate of the pixel unit, z represents the luminance compensation value, G, p, q are the number of gray levels, R represents red, G represents green, B represents blue, m represents the number of pixels of the width of the display panel, n represents the number of pixels of the length of the display panel, and m, n are integers greater than or equal to 0.
In each formula, the luminance compensation value of the sub-pixel unit can be obtained only by inputting the coordinate value. In the process of displaying an image, the luminance value of the same red sub-pixel unit or green sub-pixel unit or blue sub-pixel unit is different according to the display target image, for example, the red sub-pixel unit a needs a luminance value of 60 when displaying a first target image, and needs a luminance value of 40 when displaying a second target image. When the brightness value is 60, the brightness compensation value can be obtained only by substituting the coordinate of the point into the brightness compensation formula with the gray scale of 60 in the red brightness compensation formula; when the brightness is 40, the brightness compensation value can be obtained by substituting the coordinate of the point into the brightness compensation formula with the gray scale of 40 in the red brightness compensation formula.
Finally, the computer writes the red brightness compensation formula, the green brightness compensation formula and the blue brightness compensation formula into a storage medium of a driving chip on the display panel, and the storage formula in the storage medium of the driving chip can reduce the capacity of the storage medium relative to the storage of photos, thereby further reducing the production cost.
Step S4, generating a target luminance compensation image according to the red luminance compensation formula, the green luminance compensation formula, and the blue luminance compensation formula;
step S5, mixing the target brightness compensation image and the original image into a final image.
Specifically, the display panel includes a Micro Control Unit (MCU) and a driving chip, and the driving chip is provided with a storage medium for storing a brightness compensation formula. As shown in fig. 4, when the MCU receives an original image, the MCU analyzes the original image, obtains gray scale information and coordinate information of the red, green, and blue sub-pixel units in each pixel unit, calls the corresponding red, green, and blue luminance compensation formulas, substitutes the coordinate information into the corresponding luminance compensation formula to calculate a target luminance compensation value of each sub-pixel unit, and finally obtains luminance values to be compensated for in each pixel unit when displaying the original image, and generates a target luminance compensation image according to the luminance compensation values. And correspondingly adding the target brightness compensation value of each sub-pixel unit in the target brightness compensation image and the gray-scale value of each sub-pixel unit in the original image to obtain the actual gray-scale value of each sub-pixel unit in the final image. For example, when coordinates of a red sub-pixel unit, a green sub-pixel unit and a blue sub-pixel unit in a first pixel unit in an original image are (1, 1), (2, 1) and (3, 1), respectively, and a gray level value of the red sub-pixel unit is 20, a gray level value of the green sub-pixel unit is 10, and a gray level value of the blue sub-pixel unit is 50, the coordinates are respectively substituted into equations fR20(x, y, z), fG10(x, y, z) and fB50(x, y, z) to find luminance compensation values of +2, -1 and 0, respectively, that is, the red sub-pixel unit needs to increase two luminances, the green sub-pixel unit needs to decrease 1 luminance, and the blue sub-pixel unit does not change.
The display panel drives the corresponding sub-pixel unit to display the corresponding brightness by converting the brightness compensation value into the current.
And mixing the target brightness compensation image and the original image into a final image.
The invention can perform brightness compensation on the red sub-pixel unit, the green sub-pixel unit and the blue sub-pixel unit of each pixel unit in real time according to the target image information, effectively improves the Mura phenomenon of the display panel and does not generate the compensation leakage phenomenon.
Therefore, the scope of the present invention should not be limited to the disclosure of the embodiments, but includes various alternatives and modifications without departing from the scope of the present invention, which is defined by the claims of the present patent application.