Display calibration method, device, computer device and storage medium
By obtaining the linear brightness change amount and chromaticity correction parameters of the display device, the display brightness of the monochrome is corrected, and the jittering number is combined with the jitter frame number, the brightness unevenness problem in the low gray display of the LED display is solved, and the effect of high dynamic range imaging is achieved.
Patent Information
- Application Number
- CN202310217885.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2043-02-28
AI Technical Summary
The prior art is difficult to solve the nonlinear problem of LED displays when displaying low gray, resulting in uneven brightness and high brightness of low gray, which cannot meet the needs of high dynamic range imaging.
By obtaining the linear brightness change amount and chromaticity correction parameters of the display device, the display brightness of the monochrome is corrected, and the number of jitters is combined with the number of jitters to perform misalignment jitter processing, and the frame expansion display is used to display the color value to achieve uniform display.
The brightness uniformity and high dynamic range imaging requirements of LED displays in low gray displays are realized, and the display uniformity and brightness control accuracy of display devices are improved.
Smart Images

Figure CN116343656B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technologies, and particularly to a display correction method, device, computer device, storage medium, and computer program product. Background Art
[0002] In the display field, the problem of low gray non-linearity has always troubled industry peers. There are many limiting factors, ranging from large-scale processes to small-scale route layouts and line widths of wirings, etc. These factors affect each pixel display unit, especially having a greater impact on LEDs (Light-Emitting Diodes). Such self-luminous display units have high requirements for processes and require good consistency. Otherwise, phenomena such as "dots" and "dark streaks" will appear in the display.
[0003] Although current processes meet most of the market demands, there are still some that cannot be satisfied, such as HDR (High Dynamic Range imaging). For LED display screens, the excellent light-emitting ability of LED lamp beads almost meets the display brightness range of HDR. However, limited by the control accuracy problem of the driving IC, the linear control response for low gray display is lost, and at the same time, it also leads to a problem of a relatively high starting gray brightness (lower brightness limit).
[0004] In the field of display technologies, the technology of high-brightness uniform correction has been very mature. There is uniform correction that uniformly corrects the entire screen to the target brightness, and there is also uniform correction with visual averaging for smoothing processing, such as the adjustment method and the compensation method. The adjustment method and the compensation method are used to adjust the driving IC. If the driving IC does not support display processing, then this correction technology cannot be used. Therefore, it is difficult for the adjustment method and the compensation method to solve the low gray problem of display devices. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide a display correction method, device, computer device, computer-readable storage medium, and computer program product that can achieve uniform display of low gray levels.
[0006] In a first aspect, the present application provides a display correction method. The method includes:
[0007] Obtain the linear brightness change amount and chromaticity correction parameters of a display device; wherein, the linear brightness change amount and chromaticity correction parameters of the display device are obtained according to the luminance and chrominance data of multiple low gray-scale monochromatic images and multiple high gray-scale monochromatic images of the display device;
[0008] Correct the monochromatic display brightness according to the linear brightness change amount and chromaticity correction parameters of the display device to obtain the monochromatic corrected display brightness;
[0009] Obtain the number of jitter frames according to the maximum frame rate of the display device and the display frame rate of the display image;
[0010] Obtain the display adaptation color value according to the monochromatic correction display brightness and the number of jitter frames;
[0011] Control the display device to perform display according to the display adaptation color value.
[0012] In one embodiment, the obtaining the display adaptation color value according to the monochromatic correction display brightness and the number of jitter frames includes:
[0013] Obtain an initial adaptation value according to the monochromatic correction display brightness;
[0014] Obtain a jitter parameter according to the number of jitter frames;
[0015] Obtain the display adaptation color value according to the initial adaptation value and the jitter parameter.
[0016] In one embodiment, the obtaining the display adaptation color value according to the initial adaptation value and the jitter parameter includes:
[0017] Construct a jitter mapping table according to the number of jitter frames to perform misalignment jitter processing on the display image;
[0018] Obtain the jitter frame sequence number where the display image frame is located according to the number of jitter frames;
[0019] Establish a mapping relationship according to the pixel position of the display image, the jitter frame sequence number where the display image frame is located, and the jitter mapping table;
[0020] Obtain the display adaptation color value according to the mapping relationship, the initial adaptation value, and the jitter parameter.
[0021] In one embodiment, the establishing the mapping relationship according to the pixel position of the display image, the jitter frame sequence number where the display image frame is located, and the jitter mapping table includes:
[0022] Obtain the jitter period sequence number of the display image;
[0023] Establish a mapping relationship according to the jitter period sequence number, the pixel position of the display image, the jitter mapping table, and the jitter frame sequence number where the display image frame is located.
[0024] In one embodiment, the obtaining the linear brightness change amount and the chromaticity correction parameter of the display device includes:
[0025] Obtain the maximum gray scale number of multiple frames of high-gray-scale monochromatic images;
[0026] Obtain a linear brightness variation based on the brightness and chromaticity data of the multi-frame high-gray-scale monochromatic images and the maximum gray scale number of the multi-frame high-gray-scale monochromatic images;
[0027] Obtain the pixel color coordinate data of the multi-frame low-gray-scale monochromatic images, and obtain a chromaticity correction parameter based on the pixel color coordinate data and a preset target pixel color gamut matrix.
[0028] In one embodiment, the correcting the display brightness of a monochromatic color based on the linear brightness variation and the chromaticity correction parameter of the display device to obtain a corrected display brightness of the monochromatic color includes:
[0029] Obtain the brightness data of the multi-frame low-gray-scale monochromatic images;
[0030] Obtain a target brightness value based on the brightness data of the multi-frame low-gray-scale monochromatic images and the linear brightness variation;
[0031] Correct the display brightness of the monochromatic color based on the target brightness value and the chromaticity correction parameter to obtain a corrected display brightness.
[0032] In a second aspect, the present application further provides a display correction device. The device includes:
[0033] A data acquisition module, configured to acquire a linear brightness variation and a chromaticity correction parameter of a display device; wherein, the linear brightness variation and the chromaticity correction parameter of the display device are obtained based on the brightness and chromaticity data of the multi-frame low-gray-scale monochromatic images and the multi-frame high-gray-scale monochromatic images of the display device;
[0034] A correction module, configured to correct the display brightness of a monochromatic color based on the linear brightness variation and the chromaticity correction parameter of the display device to obtain a corrected display brightness of the monochromatic color;
[0035] A dither frame number acquisition module, configured to obtain a dither frame number based on the maximum frame rate of the display device and the display frame rate of the display image;
[0036] A display adaptation color value acquisition module, configured to obtain a display adaptation color value based on the corrected display brightness of the monochromatic color and the dither frame number;
[0037] A display module, configured to control the display device to perform a display according to the display adaptation color value.
[0038] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0039] Obtain the linear brightness variation and chromaticity correction parameters of the display device; wherein, the linear brightness variation and chromaticity correction parameters of the display device are obtained according to the luminance and chrominance data of multiple low-gray-scale monochromatic images and the luminance and chrominance data of multiple high-gray-scale monochromatic images of the display device;
[0040] Correct the monochromatic display brightness according to the linear brightness variation and chromaticity correction parameters of the display device to obtain the monochromatic corrected display brightness;
[0041] Obtain the number of dither frames according to the maximum frame rate of the display device and the display frame rate of the display image;
[0042] Obtain the display adaptation color value according to the monochromatic corrected display brightness and the number of dither frames;
[0043] Control the display device to perform display according to the display adaptation color value.
[0044] In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0045] Obtain the linear brightness variation and chromaticity correction parameters of the display device; wherein, the linear brightness variation and chromaticity correction parameters of the display device are obtained according to the luminance and chrominance data of multiple low-gray-scale monochromatic images and the luminance and chrominance data of multiple high-gray-scale monochromatic images of the display device;
[0046] Correct the monochromatic display brightness according to the linear brightness variation and chromaticity correction parameters of the display device to obtain the monochromatic corrected display brightness;
[0047] Obtain the number of dither frames according to the maximum frame rate of the display device and the display frame rate of the display image;
[0048] Obtain the display adaptation color value according to the monochromatic corrected display brightness and the number of dither frames;
[0049] Control the display device to perform display according to the display adaptation color value.
[0050] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0051] Obtain the linear brightness variation and chromaticity correction parameters of the display device; wherein, the linear brightness variation and chromaticity correction parameters of the display device are obtained according to the luminance and chrominance data of multiple low-gray-scale monochromatic images and the luminance and chrominance data of multiple high-gray-scale monochromatic images of the display device;
[0052] Correct the display brightness of a single color according to the linear brightness change amount and chromaticity correction parameters of the display device to obtain the corrected display brightness of a single color;
[0053] Obtain the number of jitter frames according to the maximum frame rate of the display device and the display frame rate of the display image;
[0054] Obtain the display adaptation color value according to the corrected display brightness of a single color and the number of jitter frames;
[0055] Control the display device to perform display according to the display adaptation color value.
[0056] The above display correction method, device, computer device, storage medium and computer program product obtain the linear brightness change amount and chromaticity correction parameters of the display device; correct the display brightness of a single color according to the linear brightness change amount and chromaticity correction parameters of the display device to obtain the corrected display brightness of a single color; obtain the number of jitter frames according to the maximum frame rate of the display device and the display frame rate of the display image; obtain the display adaptation color value according to the corrected display brightness of a single color and the number of jitter frames; control the display device to perform display according to the display adaptation color value. In this solution, according to the number of jitter frames, frame expansion is performed through staggered jitter processing to obtain the display adaptation color value, and the gray level value of each frame of the display device is displayed as the adaptation color value to change the problem of color coordinate offset and make the display device display evenly. Description of the Drawings
[0057] Figure 1 It is an application environment diagram of the display correction method in an embodiment;
[0058] Figure 2 It is a schematic flowchart of the display correction method in an embodiment;
[0059] Figure 3 It is a schematic flowchart of the display correction method in another embodiment;
[0060] Figure 4 It is a schematic block diagram of the modules of the display correction method;
[0061] Figure 5 It is a schematic diagram of low gray brightness;
[0062] Figure 6 It is a structural block diagram of the display correction device in an embodiment;
[0063] Figure 7 It is an internal structure diagram of a computer device in an embodiment. Detailed Description of the Invention
[0064] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] The display calibration method provided by the embodiment of the present application can be applied to an application environment as Figure 1 shown. Among them, the control system 106 obtains the input video source 107 and sends the video source 107 to the calibration module 105. The acquisition camera 104 acquires the brightness and chroma data of multiple frames of low gray-scale monochromatic images and the brightness and chroma data of multiple frames of high gray-scale monochromatic images through the video source 107 and sends them to the calibration module 105. The calibration module 105 obtains the linear brightness change amount and chromaticity correction parameters of the display device 101 according to the brightness and chroma data of multiple frames of low gray-scale monochromatic images and the brightness and chroma data of multiple frames of high gray-scale monochromatic images. According to the linear brightness change amount and chromaticity correction parameters of the display device 101, the monochromatic display brightness is calibrated to obtain the monochromatic calibrated display brightness. According to the maximum frame rate of the display device 101 and the display frame rate of the display image, the number of jitter frames is obtained. According to the monochromatic calibrated display brightness and the number of jitter frames, the display adaptation color value is obtained, and the display device 101 is controlled to display according to the display adaptation color value. Among them, the display device 101 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers, etc.
[0066] In one embodiment, as Figure 2 shown, a display calibration method is provided. Taking the display device 101 in Figure 1 as an example, the method includes the following steps:
[0067] S100, obtain the linear brightness change amount and chromaticity correction parameters of the display device.
[0068] Among them, the chromaticity correction parameter is the monochromatic image display brightness correction parameter, and further refers to the chromaticity correction matrix; the linear brightness change amount is the brightness change amount after the RGB of the image pixels is converted into a color space such as HSL (HSV), the L (V) part is increased or decreased, and then converted back to the RGB color space.
[0069] Specifically, during display, it does not rely on the control system and display panel driver and can independently perform calibration processing by collecting brightness feature information. First, collect the luminance and chrominance data of multiple frames of low-gray-scale monochromatic images and multiple frames of high-gray-scale monochromatic images of the display device. Low gray refers to the gray-scale value at which unevenness appears when the specified gray scale is displayed full screen. This value is not a fixed value and varies with the specific display device. The maximum value of this gray-scale value is the maximum gray scale that the display device can display. Then, based on the luminance and chrominance data of multiple frames of low-gray-scale monochromatic images and multiple frames of high-gray-scale monochromatic images, obtain the linear brightness change amount and chromaticity calibration parameters. Monochromatic images refer to pure-color images of red, green, and blue. The purpose of collecting the luminance and chrominance data of low-gray-scale monochromatic images is to collect the brightness feature data of uneven display, and the purpose of collecting the luminance and chrominance data of multiple frames of high-gray-scale monochromatic images is to obtain the gamut information of the display to correct the color coordinates of the low-gray-scale grayscale image. For luminance and chrominance data collection, use the control software to control the display screen to display a monochromatic specified gray scale full screen, and collect it with an industrial camera or other cameras that can capture the entire screen pixels. When the display screen is too large, the entire screen can be first cut into blocks and partitioned for collection.
[0070] S200. According to the linear brightness change amount and chromaticity calibration parameters of the display device, correct the monochromatic display brightness to obtain the monochromatic calibrated display brightness.
[0071] Among them, the monochromatic calibrated display brightness is the display brightness after the low-gray-scale monochromatic image is calibrated.
[0072] Specifically, first, the host computer obtains the luminance and chrominance data of the high-gray-scale monochromatic image read from the camera or external memory by the high-gray-scale acquisition data module and sends it to the underlying low-gray-scale acquisition data storage module. The luminance and chrominance data include the average luminance values of R, G, and B and the color coordinate data of all pixels. Transmit the RGB luminance data and the maximum high-gray-scale number CGrayMax collected to the calculation target linear change amount module for calculation. According to the RGB average luminance values MaxYr, MaxYg, and MaxYb and the maximum high-gray-scale value CgrayMax collected, calculate the linear brightness change amounts DYr, DYg, and DYb corresponding to RGB respectively according to the linear change principle. The calculation method is as follows:
[0073] DYr = MaxYr / CGrayMax
[0074] DYg = MaxYg / CGrayMax
[0075] DYb = MaxYb / CGrayMax
[0076] In addition, the host computer obtains the low gray-scale acquisition data, and the uniformity calculation module reads all the low gray-scale correction data from the camera or the external memory and writes it into the underlying low gray-scale acquisition data storage module; the input R, G, and B are processed by the chromaticity correction module, and the monochromatic display brightness is corrected and calculated to obtain the monochromatic corrected display brightness.
[0077] S300. Obtain the number of jitter frames based on the maximum frame rate of the display device and the display frame rate of the displayed image.
[0078] Wherein, the number of jitter frames is the total number of frames that the display device needs to display within the time interval between two consecutive frames of the displayed image.
[0079] Specifically, the extended jitter processing module calculates the maximum frame rate MaxFR of each driver IC according to the maximum refresh rate supported by different IC driver chips of the display device, and calculates the number of jitter frames DF through the display frame rate FR parameter of the displayed image and the IC maximum frame rate MaxFR parameter:
[0080] DF = INT(MaxFR / FR)
[0081] In the above formula, INT(*) represents rounding down.
[0082] S400. Obtain the display adaptation color value based on the monochromatic corrected display brightness and the number of jitter frames.
[0083] Wherein, the display adaptation color value is the gray-scale value required for displaying the low gray-scale non-uniform image.
[0084] Specifically, the display adaptation color value consists of an integer part and a decimal part. According to the monochromatic corrected display brightness, the decimal part of the adaptation color value is calculated; according to the number of jitter frames, the integer part of the adaptation color value is calculated.
[0085] S500. Control the display device to display according to the display adaptation color value.
[0086] Specifically, control the display device to display the gray-scale value of the displayed image as the adaptation color value.
[0087] In the above display correction method, by obtaining the linear brightness change amount and chromaticity correction parameters of the display device; according to the linear brightness change amount and chromaticity correction parameters of the display device, the monochromatic display brightness is corrected to obtain the monochromatic corrected display brightness; according to the maximum frame rate of the display device and the display frame rate of the displayed image, the number of jitter frames is obtained; according to the monochromatic corrected display brightness and the number of jitter frames, the display adaptation color value is obtained; control the display device to display according to the display adaptation color value, the gray-scale value of each frame of the display device can be displayed as the adaptation color value, so that the display device displays uniformly.
[0088] In one embodiment, as Figure 3As shown, obtaining the display adaptation color value based on the monochromatic correction display brightness and the number of dithering frames includes:
[0089] S420. Obtain the initial adaptation value according to the monochromatic correction display brightness.
[0090] Specifically, find the display adaptation color values (OR, OG, OB) corresponding to the three RGB channels respectively through the adaptation brightness module. In the R channel, set the parameter KR. First, let KR = 1, and look up the brightness data KYr from the low-gray brightness acquisition table IYr(n1, m1, KR). If KR ≤ CGrayMax and KYr ≥ TYr, then the value of KR is the initial adaptation value of the R channel; otherwise, increment KR by 1 and continue to look up the corresponding brightness data according to the low-gray brightness acquisition table until a KR value that meets the conditions is found. Similarly, let KG = 1 and KB = 1, and look up the brightness data from the low-gray brightness acquisition tables IYg(n1, m1, KG) and IYb(n1, m1, KB) and compare them with the monochromatic correction display brightness TYg and TYb of the corresponding G and B channels to find the initial adaptation values KG and KB of the G and B channels. The display adaptation color values OR, OG, OB are composed of an integer part and a fractional part. The calculation methods of the fractional parts FOR, FOG, FOB are as follows:
[0091] When KR > CGrayMax, FOR = 1; otherwise:
[0092] FOR = (TYr - IYr(n1, m1, KR - 1)) / (IYr(n1, m1, KR) - IYr(n1, m1, KR - 1))
[0093] When KG > CGrayMax, FOG = 1; otherwise:
[0094] FOG = (TYg - IYg(n1, m1, KG - 1)) / (IYg(n1, m1, KG) - IYg(n1, m1, KG - 1)); when KB > CGrayMax, FOB = 1; otherwise:
[0095] FOB = (TYb - IYb(n1, m1, KB - 1)) / (IYb(n1, m1, KB) - IYb(n1, m1, KB - 1))
[0096] S440. Obtain the dithering parameter according to the number of dithering frames.
[0097] Among them, the dithering parameter is the number of highlighted frames in the dithering frames of the display device. For example, if the display device is required to display 7.75 nits, but the display device has insufficient precision and can only display 7 nits or 8 nits, and the dithering frame number DF is set to 4, the display device will display 3 frames of 8 nits and 1 frame of 7 nits. The visual average is (8 + 8 + 8 + 7) / 4 = 7.75. Among them, the number of highlighted 8-nit frames is 3, and the number of low-light 7-nit frames is 1, so the dithering parameter is equal to the highlighted frame number 3.
[0098] Specifically, the dithering parameters IFOR, IFOG, and IFOB for the RGB three channels are calculated by adapting the fractional parts FOR, FOG, and FOB of the color values for the RGB three channels respectively:
[0099] IFOR = ROUND(FOR × DF)
[0100] IFOG = ROUND(FOG × DF)
[0101] IFOB = ROUND(FOB × DF)
[0102] Among them, ROUND(*) represents rounding to the nearest integer. If any of FOR, FOG, and FOB is equal to 1, it means that no dithering processing is required for that channel. At the same time, the output display frame rate OFR = FR × DF is set.
[0103] S460. Obtain the display adaptation color value according to the initial adaptation value and the dithering parameter.
[0104] Specifically, perform misaligned dithering processing on the display image, construct a dithering mapping table according to the dithering frame number, compare the value of each unit of the dithering mapping table with the dithering parameter to obtain the integer part of the display adaptation color value, and obtain the gray scale value of the display image of the display device according to the integer part and the fractional part of the display adaptation color value. The purpose of misaligned dithering processing is to avoid the problems of flickering and block images when displaying a solid color image.
[0105] In this embodiment, by obtaining the initial adaptation value according to the single-color corrected display brightness, obtaining the dithering parameter according to the dithering frame number, and obtaining the display adaptation color value according to the initial adaptation value and the dithering parameter, misaligned dithering processing can be performed on the display image of the display device, and the gray scale value of the display image can be displayed as the display adaptation color value.
[0106] In one embodiment, obtaining the display adaptation color value according to the initial adaptation value and the dithering parameter includes:
[0107] Construct a dither mapping table according to the number of dither frames to perform offset dithering on the display image; obtain the dither frame sequence number where the display image frame is located according to the number of dither frames; establish a mapping relationship according to the pixel position of the display image, the dither frame sequence number where the display image frame is located, and the dither mapping table; obtain the display adaptation color value according to the mapping relationship, the initial adaptation value, and the dither parameter.
[0108] Among them, the dither frame sequence number is generated during the offset dithering process for frame expansion. For example, when the number of dither frames DF is 4, that is, when playing 1 frame of image, the display device needs to display 4 frames. The dither frame sequence number k of the first dithered frame among these 4 frames is 0, the second frame is k = 1, the third frame is k = 2, and the fourth frame is k = 3.
[0109] Specifically, in the R channel, construct a dither mapping table Tab according to the number of dither frames DF. The size of this mapping table is DF units, and the value of each unit is [0, DF - 1], and the values of each unit are not repeated. The data in the table units are not arranged in order, and the arrangement order should be in a scrambled state, and the scrambling rule is not limited; generate a dither mapping table index idx according to the pixel position (x, y) of the display image and the dither frame sequence number where the display image frame is located, that is, establish a mapping relationship IDX(x, y, k) between the pixel position (x, y) of the display image, the dither frame sequence number k where the display image frame is located, and the dither mapping table index; obtain the value Tab[idx] of the dither mapping table unit according to the index idx generated by the pixel position of the display image and the dither frame sequence number, and compare the value Tab[idx] of the dither mapping table unit with the dither parameter IFOR. If IFOR > Tab[idx], the gray level value of the expanded frame is KR, otherwise it is KR - 1, that is, there are IFOR frames with the gray level value of KR displayed, and the remaining DF - IFOR frames have the gray level value of KR - 1. Similarly, in the G and B channels respectively, construct a dither mapping table according to the number of dither frames DF, insert the dither frame sequence number, establish a mapping relationship, compare the dither parameters IFOG and IFOB with the values of the dither mapping table units, and obtain the gray level value of the expanded frame.
[0110] In this embodiment, by constructing a dither mapping table according to the number of dither frames to perform offset dithering on the display image; obtaining the dither frame sequence number where the display image frame is located according to the number of dither frames; establishing a mapping relationship according to the pixel position of the display image, the dither frame sequence number where the display image frame is located, and the dither mapping table; obtaining the display adaptation color value according to the mapping relationship, the initial adaptation value, and the dither parameter, it is possible to expand the display image frame, obtain the gray level value of the expanded frame, and make the display image display as the display adaptation color value.
[0111] In one embodiment, establishing a mapping relationship according to the pixel position of the display image, the dither frame sequence number where the display image frame is located, and the dither mapping table includes:
[0112] Obtain the dithering period sequence number of the display image; establish a mapping relationship according to the dithering period sequence number, the pixel position of the display image, the dithering mapping table, and the dithering frame sequence number where the display image frame is located.
[0113] Among them, the dithering period sequence number is the frame number of the display image frame within the dithering period.
[0114] Specifically, when establishing the mapping relationship, it will be the same for each dithering period. If the dithering period is short, the accuracy of the dithering algorithm will decrease. If DF = 1, the correction is invalid. To solve this problem, a dithering period sequence number fk is introduced. According to the pixel position (x, y) of the display image, the dithering frame sequence number k where the display image frame is located, the dithering mapping table index, and the dithering period sequence number, the mapping relationship is improved, and the mapping relationship is changed to IDX(x, y, k, fk). For example, IDX(x, y, k, fk) = FUNC(x + 8×y + k + x, DF), and FUNC(u, i) represents the remainder of u divided by i.
[0115] In this embodiment, by obtaining the dithering period sequence number of the display image and establishing a mapping relationship according to the dithering period sequence number, the pixel position of the display image, the dithering mapping table, and the dithering frame sequence number where the display image frame is located, different dithering periods can be distinguished according to the improved mapping relationship, and the accuracy of the dithering algorithm can be improved.
[0116] In one embodiment, obtaining the linear brightness change amount and chromaticity correction parameters of the display device includes:
[0117] Obtain the maximum gray level of multiple frames of high-gray-level monochromatic images; obtain the linear brightness change amount according to the brightness and chromaticity data of multiple frames of high-gray-level monochromatic images and the maximum gray level of multiple frames of high-gray-level monochromatic images; obtain the pixel color coordinate data of multiple frames of low-gray-level monochromatic images, and obtain the chromaticity correction parameters according to the pixel color coordinate data and the preset target pixel color gamut matrix.
[0118] Specifically, the steps for collecting the maximum gray level of multiple frames of low-gray-level monochromatic images are as follows:
[0119] (1) The host computer display control module sets the collection parameters on the interface, such as the collection gray level value, image type, collection status, and IC refresh parameters; set the image type to 1 (1 is the R image, 2 is the G image, 3 is the B image), the initial value of the collection gray level value CGray is 1, the collection status is 1 (1 indicates the on state, 0 indicates the off state), and the refresh parameter is 288fps; send the auxiliary collection control signal to the underlying collection mode control module.
[0120] (2) The acquisition mode control module transfers the acquired monochromatic type and the acquired gray level value CGray to the acquired image data generation module to generate the acquired image and transfer it to the display selection output module. For example, if the acquired red gray level value is 1, the RGB color values displayed by all pixels are (1, 0, 0); or if the acquired green gray level value is 2, the RGB color values displayed by all pixels on the full screen are (0, 2, 0).
[0121] (3) The acquisition mode control module transfers the acquisition status to the display selection output module to control the display screen to display the acquired image generated in step (2).
[0122] (4) The host computer or manual control acquisition module sends an acquisition control signal to the acquisition camera module. The acquisition camera module starts to acquire data. After the acquisition is completed, the data is saved in the camera. If the host computer cannot interact with the camera, the data is simultaneously exported to an external memory. The file name for saving or exporting should be associated with the acquired data. For example, the file name for saving the acquired data of red gray level 1 is R_1_Raw.
[0123] (5) The host computer obtains the low gray acquisition data and the uniformity calculation module judges the uniformity of the current image. If the image is uniform, the low gray data acquisition of the current monochromatic type is completed. Otherwise, the acquired gray level value CGray is incremented by 1, and steps (2), (3), (4), and (5) are continued until the low gray data acquisition of the current monochromatic type is completed.
[0124] (6) The acquisition of monochromatic types is carried out in the order of RGB. If the acquisition of the brightness data of the previous monochromatic type image is completed, the monochromatic type is set to the next monochromatic type, the acquired gray level value CGray is reset to 1, and then steps (2), (3), (4), (5), and (6) are continued until the low gray data acquisition of the RGB monochromatic images is completed.
[0125] (7) The gray level value CGrayMax with the largest acquired gray level among the RGB three channels is used to supplement the acquisition of the low gray data of the other two channels. If the acquired gray levels of RGB are all the same as CGrayMax, all the low gray data acquisition is completed. Otherwise, let CGray be the maximum acquired gray level of the unacquired channel plus 1, and then repeat steps (2), (3), (4), and (7).
[0126] Optionally, the methods for "judging the uniformity of the current image" in step (5) above include the human eye observation method, the single threshold method, the double threshold method, the variance method, etc.
[0127] The method for collecting the maximum gray level of multiple high-gray-level monochromatic images is similar to the method for collecting the maximum gray level of multiple low-gray-level monochromatic images above, but only collects the data with the gray level value of CGrayMax, and collects one frame for each of RGB; that is, set CGray = CGrayMax and the monochromatic type is 1, then execute the above steps (2)(3)(4), keep CGray unchanged and the monochromatic type is 2, then execute the above steps (2)(3)(4), keep CGray unchanged and the monochromatic type is 3, then execute the above steps (2)(3)(4).
[0128] According to the average brightness value of multiple high-gray-level monochromatic images and the maximum gray level of multiple high-gray-level monochromatic images, calculate the linear brightness change amount; transfer the linear brightness change amounts DYr, DYg, DYb and the color coordinate data (rx, ry, rz), (gx, gy, gz), (bx, by, bz) of all pixels of the low-gray-level image to the chromaticity correction module, and the chromaticity correction module processes according to the input R, G, B values, then the linear brightness values corresponding to R, G, B are calculated as follows:
[0129] Yr(R) = R × DYr
[0130] Yg(G) = G × DYg
[0131] Yb(B) = B × DYb
[0132] If chromaticity correction is not required according to the application situation, directly skip this module, or multiply by the identity matrix, and the identity matrix UT is as follows:
[0133]
[0134] If chromaticity correction is required, obtain the 3×3 gamut matrix RT of the gamut according to the collected gamut data of the low-gray-level monochromatic image, and calculate it with the gamut matrix DT of the target gamut. DT is the target gamut matrix of all pixels, and obtain the conversion matrix OT for chromaticity correction. OT is calculated as follows:
[0135] OT = DT × RT -1
[0136] The expression of OT is as follows:
[0137]
[0138] Among them, the target gamut matrix DT is usually some standard gamuts such as BT2020, BT709, DCI-P3, common gamut, etc.; the collected gamut matrix RT is obtained by collecting the color coordinates of a single input source. For example, the above color coordinate data (rx, ry, rz), (gx, gy, gz), (bx, by, bz) are the collected low-gray-level color coordinate data, then RT is specifically:
[0139]
[0140] In this embodiment, by obtaining the maximum gray level of multiple high-gray-level monochromatic images, according to the luminance and chrominance data of the multiple high-gray-level monochromatic images and the maximum gray level of the multiple high-gray-level monochromatic images, a linear brightness change amount is obtained. The pixel color coordinate data of multiple low-gray-level monochromatic images is obtained, and according to the pixel color coordinate data and a preset target pixel color gamut matrix, a chromaticity correction parameter is obtained, and the low-gray display can be corrected by the chromaticity correction parameter.
[0141] In one embodiment, according to the linear brightness change amount and the chromaticity correction parameter of the display device, the display brightness of the monochromatic color is corrected, and obtaining the corrected display brightness of the monochromatic color includes:
[0142] Obtaining the brightness data of multiple low-gray-level monochromatic images; according to the brightness data of the multiple low-gray-level monochromatic images and the linear brightness change amount, obtaining a target brightness value; according to the target brightness value and the chromaticity correction parameter, correcting the display brightness of the monochromatic color to obtain the corrected display brightness.
[0143] Specifically, the chromaticity correction module obtains a target brightness linear change amount according to the brightness data of the low-gray-level monochromatic image and the linear brightness change amount, and obtains a target brightness value (YR, YG, YB) from the display image color values (IR, IG, IB). When IR, IG, and IB are all less than or equal to the high gray level CGrayMax, the chromaticity correction module performs correction processing according to the chromaticity correction matrix OT to obtain the corrected display brightness (TYr, TYg, TYb):
[0144]
[0145] When IR, IG, and IB do not all satisfy being less than or equal to the high gray level CGrayMax
[0146] TYr = YR
[0147] TYg = YG
[0148] TYb = YB
[0149] In this embodiment, by obtaining the brightness data of multiple low-gray-level monochromatic images, according to the obtained brightness data of the multiple low-gray-level monochromatic images and the linear brightness change amount, a target brightness value is obtained, and according to the target brightness value and the chromaticity correction parameter, the display brightness of the monochromatic color is corrected to obtain the corrected display brightness, and the display brightness value of the low gray level can be corrected by the corrected display brightness.
[0150] To describe in detail the technical solution and its effect of the display correction method of the present application, specific application examples will be used to describe below. In actual applications, Figure 4It is a module block diagram of a display correction method. The implementation of the display correction method is completed by each module in Figure 4 . The main function of the external memory module is to store the data collected by the acquisition camera, avoiding the situation that the upper computer cannot interact with the camera and cannot read the collected data because the camera in actual engineering applications is borrowed or there is no SDK. The main function of the acquisition camera module is to collect the brightness and chromaticity data of the display device, usually an industrial camera. The upper computer or manual control acquisition module is to control the camera to collect data. The function of the upper computer to obtain high gray-scale acquisition data module is to read the collected data from the external storage device or the acquisition camera. The function of the upper computer to obtain low gray-scale acquisition data to calculate the uniformity module is to read the collected data from the external storage device or the acquisition camera. The function of the upper computer display control module is to send a control signal to the bottom layer to control the acquisition of the display image and send down the IC refresh parameter information. The high gray-scale acquisition data storage module is a storage device at the bottom layer for storing high gray-scale acquisition data. The low gray-scale acquisition data storage module is a storage device at the bottom layer for storing low gray-scale acquisition data. The function of the acquisition mode control module is to control the display output module to select the acquisition image for output and transmit a control signal to the acquisition image data generation module to generate the corresponding acquisition image data. The function of the acquisition image data generation module is to generate acquisition image data according to the control signal and output it to the display output module for display. The function of the display selection output module is to control the output of the acquisition image or the input image according to the control signal of the acquisition mode control module. The function of the chromaticity correction module is to correct the low gray. The function of the adaptive brightness module is to find the gray-scale value corresponding to the actual brightness according to the corrected brightness, including the decimal part. The frame expansion and jitter processing module increases the frame rate according to the frame rate and the maximum frame rate of the IC drive and performs jitter processing according to the input adaptive brightness. The whole display correction method includes the following steps:
[0151] 1. Collect the brightness and chromaticity data of multiple frames of low gray-scale monochromatic images and the brightness and chromaticity data of multiple frames of high gray-scale monochromatic images.
[0152] First, collect the brightness and chromaticity data of multiple frames of low gray-scale monochromatic images. The monochromatic image refers to pure color images of red, green, and blue. The low gray refers to the gray-scale value at which unevenness appears when the specified gray-scale is displayed full screen. This value is not a fixed value and varies with the specific display device. The maximum value of this gray-scale value is the maximum gray-scale value that the display device can display. The purpose of collecting low gray brightness data is to collect the performance characteristic data of display unevenness. The collection method is to use control software to control the display screen to display the monochromatic specified gray-scale full screen, and use an industrial camera or other cameras that can collect the entire screen pixels for collection. When the display screen is too large, the entire screen can be cut into blocks and partitioned for collection first. The specific steps are as follows:
[0153] (1) The host computer display control module sets the acquisition parameters on the interface, such as the acquisition gray scale value, image type, acquisition status, and IC refresh parameters; sets the image type to 1 (1 is the R image, 2 is the G image, 3 is the B image), the initial value of the acquisition gray scale value CGray is 1, the acquisition status is 1 (1 indicates the on state, 0 indicates the off state), and the refresh parameter is 288fps; sends the auxiliary acquisition control signal to the underlying acquisition mode control module.
[0154] (2) The acquisition mode control module passes the acquisition monochromatic type and the acquisition gray scale value CGray to the acquisition image data generation module to generate the acquisition image and passes it to the display selection output module. For example, if the acquired red gray scale value is 1, the RGB color values displayed by all pixels are (1, 0, 0), or if the acquired green gray scale value is 2, the RGB color values displayed by all pixels on the full screen are (0, 2, 0).
[0155] (3) The acquisition mode control module passes the acquisition status to the display selection output module to control the display screen to display the acquisition image generated in step (2).
[0156] (4) The host computer or manual control acquisition module sends an acquisition control signal to the acquisition camera module. The acquisition camera module starts to acquire data. After the acquisition is completed, the data is saved in the camera. If the host computer cannot interact with the camera, the data is simultaneously exported to an external memory. The file name for saving or exporting should be associated with the acquisition data. For example, the file name for saving the acquisition data of red gray scale 1 is R_1_Raw;
[0157] (5) The host computer obtains the low-gray acquisition data calculation uniformity module to judge the uniformity of the current image. If the image is uniform, the low-gray data acquisition of the current monochromatic type is completed. Otherwise, the acquisition gray scale value CGray is incremented by 1, and steps (2), (3), (4), and (5) are continued until the low-gray data acquisition of the current monochromatic type is completed.
[0158] (6) The acquisition monochromatic type is acquired in the order of RGB. If the brightness data acquisition of the previous monochromatic type image is completed, the monochromatic type is set to the next monochromatic type, the acquisition gray scale value CGray is reset to 1, and then steps (2), (3), (4), (5), and (6) are continued until the low-gray data acquisition of the RGB monochromatic images is completed.
[0159] (7) Take the maximum gray scale value CGrayMax of the acquired gray scales in the three RGB channels to supplement the low-gray data acquisition of the other two channels. If the number of acquired gray scales in RGB is the same as CGrayMax, all low-gray data acquisitions are completed. Otherwise, let CGray be the maximum gray scale value of the unacquired channel plus 1, and then repeat steps (2), (3), (4), and (7).
[0160] The method of "judging the uniformity of the current image" in the above step (5) is not limited and can be replaced with different judgment methods according to specific application scenarios. Common examples are as follows:
[0161] 1) The human eye observation method, directly observing whether there are "dots", "dark lines", etc. on the display screen to judge whether it is uniform;
[0162] 2) The single-threshold method. Set the threshold TH, calculate the average brightness Ymid of all the pixels on the screen, and then count the number of pixels that do not exceed the average brightness threshold range (Ymid - TH ≤ Y(x, y) ≤ Ymid + TH). The ratio of the number of pixels not exceeding the threshold to all the pixels represents the uniformity;
[0163] 3) The double-threshold method. Set the thresholds TH1 and TH2, calculate the average brightness Ymid of all the pixels, and then count the number of pixels that do not exceed the upper and lower average brightness threshold ranges (Ymid - THL ≤ Y(x, y) ≤ Ymid + THH). The ratio of the number of pixels not exceeding the threshold to all the pixels represents the uniformity;
[0164] 4) The variance method. Calculate the average brightness Ymid of all the pixels, calculate the difference square D 2 (x, y) = (Y(x, y) - Ymid) 2 , calculate the variance S according to each pixel difference square 2 = ∑(D 2 (x, y)), and finally use (Ymid - S) / Ymid to represent the uniformity.
[0165] Meanwhile, collect the luminance and chrominance data of multiple frames of high-gray-scale monochromatic images. The purpose of collecting this data is to obtain the color gamut information of the display to correct the color deviation problem of the low-gray-scale grayscale image. The so-called color deviation refers to the chromaticity coordinate deviation of the gray scale (equal RGB values); the collection method is similar to the previous collection of low-gray part data, but only collect the data with the gray scale value of CGrayMax, and collect one frame for each of RGB; that is, let CGray = CGrayMax and the monochromatic type be 1, then execute the above steps (2)(3)(4), keep CGray unchanged and the monochromatic type be 2, then execute the above steps (2)(3)(4), keep CGray unchanged and the monochromatic type be 3, then execute the above steps (2)(3)(4).
[0166] 2. Obtain the linear brightness change amount and chromaticity correction parameters of the display device. This method includes the following steps:
[0167] (1) Obtain the linear brightness change amount according to the luminance and chrominance data of multiple frames of high-gray-scale monochromatic images and the maximum gray scale number of multiple frames of high-gray-scale monochromatic images.
[0168] The correction data is calculated based on the luminance and chrominance data of the collected low-gray-scale monochromatic image and the luminance and chrominance data of the low-gray-scale monochromatic image; First, the host computer obtains the luminance and chrominance data of the high-gray-scale monochromatic image read from the camera or external memory by the high-gray-scale acquisition data module and sends it to the underlying low-gray-scale acquisition data storage module. The luminance and chrominance data includes the average luminance values of R, G, and B and the color coordinate data of all pixels. The RGB luminance data and the maximum gray scale number CGrayMax of the collected high-gray scale are passed to the calculation target linear change amount module for calculation. According to the RGB average luminance values MaxYr, MaxYg, MaxYb and the maximum gray scale value CgrayMax of the collected high-gray scale, the linear luminance change amounts DYr, DYg, and DYb corresponding to RGB are calculated respectively according to the principle of linear change. The calculation method is as follows:
[0169] DYr = MaxYr / CGrayMax
[0170] DYg = MaxYg / CGrayMax
[0171] DYb = MaxYb / CGrayMax
[0172] The host computer obtains all the low-gray-scale correction data read from the camera or external memory by the low-gray-scale acquisition data and calculation uniformity module and writes it into the underlying low-gray acquisition data storage module. The three groups of data of the low-gray acquisition RGB monochromatic image are respectively denoted as IYr(n,m,R), IYg(n,m,G), IYb(n,m,B), where n and m represent the horizontal and vertical coordinates of the display device, and R, G, B represent the gray scale values of the collected monochromatic image.
[0173] (2) Obtain the pixel color coordinate data of multiple frames of low-gray-scale monochromatic images, and obtain the chromaticity correction parameters according to the pixel color coordinate data and the preset target pixel color gamut matrix.
[0174] Specifically, the linear luminance change amounts DYr, DYg, DYb and the color coordinate data (rx,ry,rz), (gx,gy,gz), (bx,by,bz) of all pixels are passed to the chromaticity correction module. The chromaticity correction module processes according to the input R, G, B values. Then the linear luminance values corresponding to the gray scales R, G, B are calculated as follows:
[0175] After determining the RGB linear luminance change amount, the subsequent correction module can calculate the linear luminance of the RGB gray scale values from 1 to the gray scale value CGrayMax respectively according to this change amount, and this luminance is set as the linear luminance for uniform correction of each RGB gray scale.
[0176] Transfer the linear brightness changes DYr, DYg, DYb and the color coordinate data (rx, ry, rz), (gx, gy, gz), (bx, by, bz) of all pixels in the low gray-scale image to the chromaticity correction module. The chromaticity correction module processes based on the input R, G, B values. Then, the linear brightness values corresponding to R, G, B are calculated as follows:
[0177] Yr(R) = R × DYr
[0178] Yg(G) = G × DYg
[0179] Yb(B) = B × DYb
[0180] Let the values of R, G, B range from 1 to CGrayMax and substitute them into the above formula to calculate 3 groups of RGB linear brightness data.
[0181] Perform chromaticity correction according to the application situation. If chromaticity correction is not required, directly skip this module, or multiply by the unit matrix. The unit matrix UT is as follows:
[0182]
[0183] If chromaticity correction is needed, obtain the 3×3 gamut matrix RT of the gamut based on the gamut data of the collected low gray-scale monochromatic image, and calculate it with the gamut matrix DT of the target gamut. DT is the target gamut matrix of all pixels, and the conversion matrix OT for chromaticity correction is obtained. OT is calculated as follows:
[0184] OT = DT × RT -1
[0185] The expression of OT is as follows:
[0186]
[0187] Among them, the target gamut matrix DT is usually some standard gamuts such as BT2020, BT709, DCI-P3, common gamut, etc. The common gamut is usually used for the common part of the gamuts of all pixel points collected during chromaticity correction and is obtained by collection and calculation. The collected gamut matrix RT is obtained by collecting the color coordinates of a single input source. For example, the above color coordinate data (rx, ry, rz), (gx, gy, gz), (bx, by, bz) are the collected low gray-scale color coordinate data, then RT is specifically:
[0188]
[0189] DT is the target gamut matrix of all pixels, while RT is different for each pixel's own gamut, so the conversion matrix OT is also different for each.
[0190] 3. Correct the monochromatic display brightness according to the linear brightness change amount and chromaticity correction parameters of the display device to obtain the monochromatic corrected display brightness.
[0191] Perform frame expansion processing according to the display frame rate and correction data; the correction data includes the linear brightness change amounts DYr, DYg, DYb, the brightness data IYr(n,m,R), IYg(n,m,G), IYb(n,m,B) of the collected monochromatic images, and the chromaticity correction matrix OT (or UT). The correction is performed on all low-gray pixels. Taking a specific pixel point P1 as an example, assuming the display coordinates of P1 are (n1,m1), and the input RGB values are (IR,IG,IB), the correction steps are as follows:
[0192] The chromaticity correction module obtains the target brightness values (YR,YG,YB) according to the target brightness linear change amount and the input color values (IR,IG,IB):
[0193] YR = IR × DYr
[0194] YG = IG × DYg
[0195] YB = IB × DYb
[0196] If IR, IG, and IB are all less than or equal to CGrayMax, the chromaticity correction module performs correction processing according to the chromaticity correction matrix OT to obtain the corrected display brightness (TYr,TYg,TYb):
[0197]
[0198] If IR, IG, and IB do not all satisfy being less than or equal to CGrayMax
[0199] TYr = YR
[0200] TYg = YG
[0201] TYb = YB
[0202] 4. Obtain the jitter frames according to the maximum frame rate of the display device and the display frame rate of the display image.
[0203] The extended jitter processing module calculates the maximum frame rate of each driver IC according to the maximum refresh rate supported by different IC driver chips, and calculates the jitter frames DF through the display frame rate FR parameter and the IC maximum frame rate MaxFR parameter:
[0204] DF = INT(MaxFR / FR)
[0205] In the above formula, INT(*) represents rounding down.
[0206] 5. Obtain the display adaptation color value based on the monochromatic correction display brightness and the number of dithering frames.
[0207] (1) Obtain the initial adaptation value based on the monochromatic correction display brightness.
[0208] Use the adaptation brightness module to find the display adaptation color values (OR, OG, OB) corresponding to the three RGB channels respectively. First, set KR = 1, look up the brightness data KYr in the low-gray brightness acquisition table IYr(n1, m1, KR), if KR ≤ CGrayMax and KYr ≥ TYr, then the value of KR is the initial adaptation value of the R channel, otherwise KR is incremented by 1, and continue to look up the corresponding brightness data according to the low-gray brightness acquisition table until a KR value that meets the conditions is found; similarly, set KG = 1, KB = 1, look up the brightness data in the low-gray brightness acquisition tables IYg(n1, m1, KG) and IYb(n1, m1, KB) and compare with the monochromatic correction display brightness TYg and TYb of the corresponding G and B channels to judge, and find the initial adaptation values KG and KB of the G and B channels; the adaptation color values OR, OG, OB are composed of an integer part and a fractional part, and the calculation methods of the fractional parts FOR, FOG, FOB are as follows:
[0209] When KR > CGrayMax, FOR = 1, otherwise:
[0210] FOR = (TYr - IYr(n1, m1, KR - 1)) / (IYr(n1, m1, KR) - IYr(n1, m1, KR - 1))
[0211] When KG > CGrayMax, FOG = 1, otherwise:
[0212] FOG = (TYg - IYg(n1, m1, KG - 1)) / (IYg(n1, m1, KG) - IYg(n1, m1, KG - 1)) When KB > CGrayMax, FOB = 1, otherwise:
[0213] FOB = (TYb - IYb(n1, m1, KB - 1)) / (IYb(n1, m1, KB) - IYb(n1, m1, KB - 1))
[0214] The adaptation color values OR, OG, OB can be expressed as:
[0215] OR = KR - 1 + FOR
[0216] OG = KG - 1 + FOG
[0217] OB = KB - 1 + FOB
[0218] (2) Obtain the dithering parameter according to the number of dithering frames.
[0219] The fractional part of the adapted color value is shaped to obtain the dithering parameters as follows:
[0220] IFOR = ROUND(FOR × DF)
[0221] IFOG = ROUND(FOG × DF)
[0222] IFOB = ROUND(FOB × DF)
[0223] Where ROUND(*) represents rounding to the nearest integer. If any of FOR, FOG, and FOB is equal to 1, it means that dithering processing is not required for that channel. At the same time, the output display frame rate OFR = FR × DF is set;
[0224] (3) Obtain the display-adapted color value according to the initial adaptation value and the dithering parameters.
[0225] The frame rate is increased to OFR, and all display frames after frame rate expansion are displayed through improved offset dithering processing with the dithering parameters IFOR, IFOG, and IFOB. The improved offset dithering processing adds frame offset processing for the display frame number on the basis of the existing offset dithering processing. The existing offset dithering processing method is divided into 3 steps:
[0226] 1) Construct a dithering mapping table Tab according to the dithering frame number DF. The size of this mapping table is DF units, and the value of each unit is [0, DF - 1], and the values of each unit are not repeated. The data in the table units are not arranged in order, and the arrangement order should be in a scrambled state, and the scrambling rule is not restricted.
[0227] 2) Generate a dithering mapping table index idx according to the pixel position (x, y) of the display image and the dithering frame number where the display image frame is located, that is, establish a mapping relationship IDX(x, y, k) between the pixel position (x, y) of the display image, the dithering frame number k where the display image frame is located, and the dithering mapping table index. The mapping method is not restricted. The purpose is to prevent synchronous dithering between pixels due to misalignment in spatial position and dithering period.
[0228] 3) Obtain the value Tab[idx] of the dithering mapping table unit according to the index idx generated by the pixel position and dithering frame number of the display image, and compare this value with the dithering parameter IFOR. If IFOR > Tab[idx], then display KR, otherwise display KR - 1.
[0229] The above method still has defects in this solution. Step 2) will result in the same dithering period for each cycle. If the dithering period is short, the accuracy of the dithering algorithm will decrease. For example, if DF = 1, the correction will be ineffective. To solve this problem, by improving the mapping relationship in step 2), a dithering period serial number (the frame number of the displayed image frame) fk should be introduced to distinguish different dithering periods, and the mapping relationship is changed to IDX(x, y, k, fk). For example, IDX(x, y, k, fk) = FUNC(x + 8×y + k + x, DF), where FUNC(u, i) represents the remainder of u divided by i. DF = 1 indicates that the frame rate of the displayed image is very high. In most cases, the content of multiple frames is similar. The dithering process in this solution approximately treats the displayed frames as the dithering frames within the dithering period, which can also improve the uniformity visually.
[0230] Explanation of achieving uniform correction with low - gray dithering: The low - gray brightness distribution of the R channel is as Figure 5 shown. The six - gray - level brightness distribution diagrams of two pixels P1 and P2 are given. Above six gray levels (including six gray levels), it is uniform. The slanted dashed line represents the linear change of the average brightness LY6 when the full screen displays six gray levels. The linear brightness of P1 and P2 corresponding to the six gray - level values are all LY1, LY2, LY3, LY4, LY5, LY6. The actually collected brightness of the six gray - level values corresponding to P1 are P1Y1, P1Y2, P1Y3, P1Y4, P1Y5, LY6; the actually collected brightness of the six gray - level values corresponding to P2 are P2Y1, P2Y2, P2Y3, P2Y4, P2Y5, LY6. From the above description, it can be known that CGrayMax = 6, that is, when the gray level 6 is collected, the full - screen display is uniform. LY6 is the average brightness when the full screen displays six gray levels. Among them, LY1, LY2, LY3, LY4, LY5 are obtained by linearly processing LY6. These brightness values are the target brightness of all pixels at the corresponding gray levels. For example, the target brightness of pixel P1 at gray level 2 is LY2, and the gray - level value for P1 to display the brightness LY2 can only take the actually measured values P1Y1 and P1Y2 for dithering display, that is:
[0231] R(LY2) = R(P1Y1)+(R(P1Y2) - R(P1Y1))×(LY2 - P1Y1) / (P1Y2 - P1Y1)
[0232] By combining like terms in the above formula and converting it to:
[0233] R(LY2) = R(P1Y1)×(P1Y2 - LY2)+R(P1Y2)×(LY2 - P1Y1)
[0234] Where R(*) represents the grayscale value corresponding to the brightness of the R channel. For example, R(P1Y1) = 1 and R(P1Y2) = 2. Equation 1 has the same meaning as the OR = KR - 1 + FOR described above. For example, if KR = 2, then R(P1Y2) = KR, R(P1Y1) = KR - 1, and R(LY2) can be expressed as:
[0235] R(LY2) = KR - 1 + (KR - (KR - 1)) × (LY2 - P1Y1) / (P1Y2 - P1Y1)
[0236] After simplification, we get:
[0237] R(LY2) = KR - 1 + (LY2 - P1Y1) / (P1Y2 - P1Y1)
[0238] Where LY2 = TYr, P1Y1 = IYr(n1, m1, KR - 1), and P1Y2 = IYr(n1, m1, KR). The above equation can be expressed as:
[0239] R(LY2) = KR - 1 + (TYr - IYr(n1, m1, KR - 1)) / (IYr(n1, m1, KR) - IYr(n1, m1, KR - 1))
[0240] The above equation is equal to the OR = KR - 1 + FOR expression.
[0241] The dither parameter IFOR (≤ DF) is calculated through FOR. The principle of dithering is to expand from the original 1 frame to DF frames. Among them, there are IFOR frames with a grayscale value of KR displayed, and the remaining DF - IFOR frames have a grayscale value of KR - 1 displayed.
[0242] It should be understood that although the steps in the flowcharts involved in the above - described embodiments are sequentially shown according to the arrows, these steps do not necessarily execute in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above - described embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily execute at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0243] Based on the same inventive concept, an embodiment of the present application further provides a display correction device for implementing the display correction method involved above. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the display correction device provided below can refer to the limitations on the display correction method in the above text, and will not be elaborated here.
[0244] In one embodiment, as Figure 6 shown, a display correction device is provided, including: a data acquisition module 100, a correction module 200, a dither frame number acquisition module 300, a display adaptation color value acquisition module 400, and a display module, where:
[0245] The data acquisition module 100 is configured to acquire the linear brightness variation amount and chromaticity correction parameters of the display device; wherein, the linear brightness variation amount and chromaticity correction parameters of the display device are obtained according to the brightness and chromaticity data of multiple frames of low gray-scale monochromatic images and the brightness and chromaticity data of multiple frames of high gray-scale monochromatic images of the display device;
[0246] The correction module 200 is configured to correct the monochromatic display brightness according to the linear brightness variation amount and chromaticity correction parameters of the display device to obtain the monochromatic corrected display brightness;
[0247] The dither frame number acquisition module 300 is configured to obtain the dither frame number according to the maximum frame rate of the display device and the display frame rate of the display image;
[0248] The display adaptation color value acquisition module 400 is configured to obtain the display adaptation color value according to the monochromatic corrected display brightness and the dither frame number;
[0249] The display module 500 is configured to control the display device to perform display according to the display adaptation color value.
[0250] The display adaptation color value acquisition module 400 is further configured to obtain an initial adaptation value according to the monochromatic corrected display brightness; obtain a dither parameter according to the dither frame number; and obtain the display adaptation color value according to the initial adaptation value and the dither parameter.
[0251] The display adaptation color value acquisition module 400 is further configured to perform offset dithering processing on the display image by constructing a dither mapping table according to the dither frame number; obtain the dither frame sequence number where the display image frame is located according to the dither frame number; establish a mapping relationship according to the pixel position of the display image, the dither frame sequence number of the display image frame, and the dither mapping table; and obtain the display adaptation color value according to the mapping relationship, the initial adaptation value, and the dither parameter.
[0252] The display adaptation color value acquisition module 400 is further configured to acquire the dithering period serial number of the displayed image; establish a mapping relationship according to the dithering period serial number, the pixel position of the displayed image, the dithering mapping table, and the dithering frame serial number where the displayed image frame is located.
[0253] The data acquisition module 100 is further configured to acquire the maximum gray level number of multiple frames of high-gray-level monochromatic images; obtain the linear brightness variation according to the brightness and chroma data of the multiple frames of high-gray-level monochromatic images and the maximum gray level number of the multiple frames of high-gray-level monochromatic images; acquire the pixel color coordinate data of multiple frames of low-gray-level monochromatic images, and obtain the chromaticity correction parameters according to the pixel color coordinate data and a preset target pixel color gamut matrix.
[0254] The correction module 200 is further configured to acquire the brightness data of multiple frames of low-gray-level monochromatic images; obtain the target brightness value according to the acquired brightness data of the multiple frames of low-gray-level monochromatic images and the linear brightness variation; correct the monochromatic display brightness according to the target brightness value and the chromaticity correction parameters to obtain the corrected display brightness.
[0255] Each module in the above display correction device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above each module.
[0256] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 7 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store correction data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a display correction method is implemented.
[0257] Those skilled in the art can understand that Figure 7 the structure shown in
[0258] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:
[0259] Obtain the linear brightness change amount and chromaticity correction parameters of the display device; wherein, the linear brightness change amount and chromaticity correction parameters of the display device are obtained according to the luminance and chrominance data of multiple frames of low-gray-scale monochromatic images and the luminance and chrominance data of multiple frames of high-gray-scale monochromatic images of the display device; correct the monochromatic display brightness according to the linear brightness change amount and chromaticity correction parameters of the display device to obtain the monochromatic corrected display brightness; obtain the number of dither frames according to the maximum frame rate of the display device and the display frame rate of the display image; obtain the display adaptation color value according to the monochromatic corrected display brightness and the number of dither frames; control the display device to perform display according to the display adaptation color value.
[0260] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0261] Obtain the initial adaptation value according to the monochromatic corrected display brightness; obtain the dither parameter according to the number of dither frames; obtain the display adaptation color value according to the initial adaptation value and the dither parameter.
[0262] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0263] Perform offset dithering processing on the display image by constructing a dither mapping table according to the number of dither frames; obtain the dither frame number where the display image frame is located according to the number of dither frames; establish a mapping relationship according to the pixel position of the display image, the dither frame number where the display image frame is located, and the dither mapping table; obtain the display adaptation color value according to the mapping relationship, the initial adaptation value, and the dither parameter.
[0264] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0265] Obtain the dither period number of the display image; establish a mapping relationship according to the dither period number, the pixel position of the display image, the dither mapping table, and the dither frame number where the display image frame is located.
[0266] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0267] Obtain the maximum gray level number of multiple frames of high-gray-scale monochromatic images; obtain the linear brightness change amount according to the luminance and chrominance data of multiple frames of high-gray-scale monochromatic images and the maximum gray level number of multiple frames of high-gray-scale monochromatic images; obtain the pixel color coordinate data of the low-gray-scale monochromatic image, and obtain the chromaticity correction parameter according to the pixel color coordinate data and the preset target pixel color gamut matrix.
[0268] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0269] Obtain the luminance data of multiple frames of low gray-scale monochromatic images; obtain the target luminance value according to the luminance data of the multiple frames of low gray-scale monochromatic images and the linear luminance change amount; correct the display luminance of the monochromatic color according to the target luminance value and the chromaticity correction parameter to obtain the corrected display luminance.
[0270] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0271] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0272] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0273] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0274] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0275] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A display correction method, characterized in that, The method includes: Obtaining the linear brightness variation and chromaticity correction parameters of a display device; wherein, the linear brightness variation and chromaticity correction parameters of the display device are obtained based on the brightness and chromaticity data of multiple frames of low-gray-scale monochromatic images and multiple frames of high-gray-scale monochromatic images of the display device; Correcting the monochromatic display brightness according to the linear brightness variation and chromaticity correction parameters of the display device to obtain a monochromatic corrected display brightness; Obtaining the number of dither frames according to the maximum frame rate of the display device and the display frame rate of the display image; Obtaining an initial adaptation value according to the monochromatic corrected display brightness; Obtaining dither parameters according to the number of dither frames; Performing offset dithering processing on the display image by constructing a dither mapping table according to the number of dither frames; obtaining the dither frame sequence number where the display image frame is located according to the number of dither frames; Establishing a mapping relationship according to the pixel position of the display image, the dither frame sequence number where the display image frame is located, and the dither mapping table; Obtaining a display adaptation color value according to the mapping relationship, the initial adaptation value, and the dither parameters; Controlling the display device to perform display according to the display adaptation color value.
2. The method according to claim 1, wherein The establishing a mapping relationship according to the pixel position of the display image, the dither frame sequence number where the display image frame is located, and the dither mapping table includes: Obtaining the dither period sequence number of the display image; Establishing a mapping relationship according to the dither period sequence number, the pixel position of the display image, the dither mapping table, and the dither frame sequence number where the display image frame is located.
3. The method according to claim 1, characterized in that, The obtaining the linear brightness variation and chromaticity correction parameters of the display device includes: Obtaining the maximum gray scale number of multiple frames of high-gray-scale monochromatic images; Obtaining the linear brightness variation according to the brightness and chromaticity data of the multiple frames of high-gray-scale monochromatic images and the maximum gray scale number of the multiple frames of high-gray-scale monochromatic images; Obtaining the pixel color coordinate data of multiple frames of low-gray-scale monochromatic images, and obtaining the chromaticity correction parameters according to the pixel color coordinate data and a preset target pixel color gamut matrix.
4. The method according to claim 1, wherein The correcting the monochromatic display brightness according to the linear brightness variation and chromaticity correction parameters of the display device to obtain a monochromatic corrected display brightness includes: Obtaining the brightness data of multiple frames of low-gray-scale monochromatic images; Obtaining a target brightness value according to the brightness data of the multiple frames of low-gray-scale monochromatic images and the linear brightness variation; Correcting the monochromatic display brightness according to the target brightness value and the chromaticity correction parameters to obtain a corrected display brightness.
5. A display correction device, characterized in that, The device includes: A data acquisition module, configured to obtain the linear brightness variation and chromaticity correction parameters of a display device; wherein, the linear brightness variation and chromaticity correction parameters of the display device are obtained based on the brightness and chromaticity data of multiple frames of low-gray-scale monochromatic images and multiple frames of high-gray-scale monochromatic images of the display device; A correction module, configured to correct the monochromatic display brightness according to the linear brightness variation and chromaticity correction parameters of the display device to obtain a monochromatic corrected display brightness; A dither frame number acquisition module, configured to obtain the number of dither frames according to the maximum frame rate of the display device and the display frame rate of the display image; A display adaptation color value acquisition module, configured to obtain an initial adaptation value according to the monochromatic correction display brightness; obtain a dithering parameter according to the number of dithering frames; perform offset dithering processing on the display image by constructing a dithering mapping table according to the number of dithering frames; obtain the dithering frame sequence number where the display image frame is located according to the number of dithering frames; establish a mapping relationship according to the pixel position of the display image, the dithering frame sequence number where the display image frame is located, and the dithering mapping table; and obtain a display adaptation color value according to the mapping relationship, the initial adaptation value, and the dithering parameter. A display module, configured to control the display device to perform display according to the display adaptation color value.
6. The device according to claim 5, characterized in that The display adaptation color value acquisition module is further configured to: obtain the dithering period sequence number of the display image; and establish a mapping relationship according to the dithering period sequence number, the pixel position of the display image, the dithering mapping table, and the dithering frame sequence number where the display image frame is located.
7. The device according to claim 5, characterized in that, The data acquisition module is further configured to: obtain the maximum gray level number of multiple frames of high-gray-level monochromatic images; and obtain a linear brightness change amount according to the luminance and chrominance data of the multiple frames of high-gray-level monochromatic images and the maximum gray level number of the multiple frames of high-gray-level monochromatic images. Obtain the pixel color coordinate data of multiple frames of low-gray-level monochromatic images, and obtain a chromaticity correction parameter according to the pixel color coordinate data and a preset target pixel color gamut matrix.
8. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Display compensation information obtaining method and device and display compensation method and device
CN111968570A
Gray scale adaptive extension method, FPGA system, equipment and medium
CN113590853A