Method and apparatus for improving image display uniformity, terminal device, and storage medium

By generating and adjusting the brightness matrix of the image, the problem of uneven brightness in the electronic paper module display is solved, and a more uniform and high-quality image display effect is achieved.

WO2025055445A1PCT designated stage expired Publication Date: 2025-03-20JIANGXI XINGTAI TECH INC
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/100299
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-11
Filing Date
2024-06-20
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

In the prior art, in the electronic paper module display, the image display brightness is uneven, resulting in poor display effect.

Method used

By acquiring the image to be processed and the target grayscale, a first brightness matrix and a grayscale uniform matrix are generated, and the brightness of the pixel points is adjusted to generate a uniform image.

Benefits of technology

Improves the uniformity of image display and improves the image effect of electronic paper display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024100299_20032025_PF_FP_ABST
    Figure CN2024100299_20032025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a method and apparatus for improving image display uniformity, a terminal device, and a storage medium. The method comprises: acquiring an image to be processed and a target grayscale of said image, and determining coordinates and brightness of all pixel points in said image; generating a first brightness matrix of said image on the basis of the coordinates and brightness of all the pixel points in said image; determining a grayscale uniform matrix of said image on the basis of said image and the target grayscale of said image; generating a second brightness matrix of said image on the basis of the first brightness matrix and the grayscale uniform matrix; and using the second brightness matrix to adjust the brightness of each pixel point in said image to generate a uniform image. By implementing the preset invention, image display uniformity can be improved, and the image display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, terminal equipment and storage medium for improving image display uniformity Technical Field

[0001] The present invention relates to the technical field of electronic paper module display technology, and in particular to a method, device, terminal equipment and storage medium for improving image display uniformity. Background Art

[0002] Grayscale represents the different levels of brightness from darkest to brightest. The more grayscale there are, the more delicate the picture effect can be.

[0003] In the field of electronic paper module displays, the number of grayscales available for display is limited, typically limited to a maximum of 16, and as few as 8 or 4. Prior art techniques typically use a dithering algorithm to process input images before displaying them on an electronic paper display. This processing method concentrates the energy of each point in the image on the right side, resulting in uneven energy on the left and right sides of the processed image when displayed. This leads to uneven brightness of the image displayed on the electronic paper display, resulting in a poor display quality.

[0004] Summary of the Invention

[0005] Embodiments of the present invention provide a method, an apparatus, a terminal device, and a storage medium for improving image display uniformity, which can improve image display uniformity and enhance the image display effect presented by electronic paper.

[0006] An embodiment of the present invention provides a method for improving image display uniformity, comprising:

[0007] Obtaining the image to be processed and the target grayscale of the image to be processed, and determining the coordinates and brightness of all pixels in the image to be processed;

[0008] Generate a first brightness matrix of the image to be processed according to the coordinates and brightness of all pixels in the image to be processed;

[0009] Determining a grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed;

[0010] generating a second brightness matrix of the image to be processed according to the first brightness matrix and the grayscale uniformity matrix;

[0011] The brightness of each pixel in the image to be processed is adjusted using the second brightness matrix to generate a uniform image.

[0012] Furthermore, determining the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes:

[0013] Determining an initial grayscale uniformity matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each of the matrix units corresponding to a pixel point in the image to be processed;

[0014] Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right;

[0015] Repeating the first matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​maximized, thereby generating a grayscale uniform matrix;

[0016] The first repositioning operation of the matrix unit includes:

[0017] Selecting two adjacent numbered matrix units one by one from the initial grayscale uniform matrix;

[0018] Selecting one matrix unit from two adjacent numbered matrix units as a fixed matrix unit and selecting the other matrix unit as a mobile matrix unit;

[0019] The mobile matrix unit is moved, and the position of the mobile matrix unit in the initial grayscale uniform matrix is ​​determined when the relative distance between the mobile matrix unit and the fixed matrix unit is the largest.

[0020] Furthermore, determining the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes:

[0021] Determining an initial grayscale uniformity matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each of the matrix units corresponding to a pixel point in the image to be processed;

[0022] Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right;

[0023] Repeating the second matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​maximized, thereby generating a grayscale uniform matrix;

[0024] The second repositioning operation of the matrix unit includes:

[0025] Selecting four consecutively numbered matrix units from the initial grayscale uniform matrix;

[0026] Four consecutively numbered matrix units are randomly positioned in the initial grayscale uniform matrix, and the relative distance between any one of the four consecutively numbered matrix units and each of the other matrix units is calculated. When the relative distance between any two matrix units is the largest, the positioning of the four consecutively numbered matrix units in the initial grayscale uniform matrix is ​​determined.

[0027] Furthermore, after obtaining the image to be processed and the target grayscale of the image to be processed, and determining the coordinates and brightness of all pixels in the image to be processed, the method further includes:

[0028] When a brightness change of any pixel in the image to be processed is detected, if the brightness of the pixel decreases, the brightness of the pixels around the pixel is increased;

[0029] If the brightness of the pixel point increases, the brightness of the pixels around the pixel point is reduced.

[0030] Based on the above method embodiment, the present invention provides a corresponding device embodiment;

[0031] An embodiment of the present invention provides a device for improving image display uniformity, comprising: a data acquisition module, a first brightness matrix generation module, a grayscale uniformity matrix generation module, a second brightness matrix generation module, and an image adjustment module;

[0032] The data acquisition module is used to acquire the image to be processed and the target grayscale of the image to be processed, and determine the coordinates and brightness of all pixels in the image to be processed;

[0033] The first brightness matrix generating module is used to generate a first brightness matrix of the image to be processed according to the coordinates and brightness of all pixels in the image to be processed;

[0034] The grayscale uniformity matrix generating module is used to determine the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed;

[0035] The second brightness matrix generating module is used to generate a second brightness matrix of the image to be processed according to the first brightness matrix and the grayscale uniformity matrix;

[0036] The image adjustment module is used to adjust the brightness of each pixel in the image to be processed using the second brightness matrix to generate a uniform image.

[0037] Furthermore, determining the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes:

[0038] Determining an initial grayscale uniformity matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each of the matrix units corresponding to a pixel point in the image to be processed;

[0039] Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right;

[0040] Repeating the first matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​maximized, thereby generating a grayscale uniform matrix;

[0041] The first repositioning operation of the matrix unit includes:

[0042] Selecting two adjacent numbered matrix units one by one from the initial grayscale uniform matrix;

[0043] Selecting one matrix unit from two adjacent numbered matrix units as a fixed matrix unit and selecting the other matrix unit as a mobile matrix unit;

[0044] The mobile matrix unit is moved, and the position of the mobile matrix unit in the initial grayscale uniform matrix is ​​determined when the relative distance between the mobile matrix unit and the fixed matrix unit is the largest.

[0045] Furthermore, determining the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes:

[0046] Determining an initial grayscale uniformity matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each of the matrix units corresponding to a pixel point in the image to be processed;

[0047] Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right;

[0048] Repeating the second matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​maximized, thereby generating a grayscale uniform matrix;

[0049] The second repositioning operation of the matrix unit includes:

[0050] Selecting four consecutively numbered matrix units from the initial grayscale uniform matrix;

[0051] Four consecutively numbered matrix units are randomly positioned in the initial grayscale uniform matrix, and the relative distance between any one of the four consecutively numbered matrix units and each of the other matrix units is calculated. When the relative distance between any two matrix units is the largest, the positioning of the four consecutively numbered matrix units in the initial grayscale uniform matrix is ​​determined.

[0052] Furthermore, it also includes: an energy distribution module;

[0053] The energy distribution module is used to detect a brightness change of any pixel point in the image to be processed. If the brightness of the pixel point decreases, the brightness of the pixels around the pixel point is increased; if the brightness of the pixel point increases, the brightness of the pixels around the pixel point is reduced.

[0054] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for improving image display uniformity as described in the above-mentioned embodiment of the invention is implemented.

[0055] Another embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the method for improving image display uniformity described in the above-mentioned embodiment of the invention.

[0056] The following beneficial effects are achieved by implementing the present invention:

[0057] The present invention provides a method, apparatus, terminal device and storage medium for improving image display uniformity. The method obtains an image to be processed and a target grayscale to be displayed by the image to be processed, determines a first brightness matrix of the current image to be processed by the coordinates and brightness of all pixels in the image to be processed; determines a grayscale uniformity matrix of the image to be processed by the target grayscale, adjusts the first brightness matrix in combination with the grayscale uniformity matrix to generate a second brightness matrix, and then adjusts the display brightness of each pixel in the image to be processed by the second brightness matrix, so that the brightness of each pixel in the generated image is not concentrated under the action of the grayscale uniformity matrix, and has a better and more uniform display effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] FIG1 is a flow chart of a method for improving image display uniformity provided by an embodiment of the present invention.

[0059] FIG2 is a schematic structural diagram of a device for improving image display uniformity provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0061] To better demonstrate the technical effects achieved by the present invention, before describing the embodiments of the present invention, it should be noted that in the existing electronic paper industry, the image processing algorithms used can cause energy accumulation on the right side of the display screen, resulting in the visually displayed image brightness being brighter on the right side, resulting in poor display quality. For example:

[0062] The following table shows an image with grayscale 100:

[0063] Since energy accumulates from left to right, when the accumulated energy exceeds 255, a white dot will appear at the third 100 in the above table. The resulting image after energy accumulation is shown in the following table:

[0064] At this time, when the image corresponding to the above table is displayed, a white line will be generated at the location of the third column, which is different from the first, second and fourth columns, making the image display here abrupt, with uneven brightness and poor display effect.

[0065] In order to solve the above-mentioned display problem, the present invention proposes a method for improving image display uniformity.

[0066] As shown in FIG1 , a method for improving image display uniformity provided by an embodiment of the present invention includes:

[0067] Step S1: obtaining an image to be processed and a target grayscale of the image to be processed, and determining the coordinates and brightness of all pixels in the image to be processed;

[0068] Step S2: generating a first brightness matrix of the image to be processed according to the coordinates and brightness of all pixels in the image to be processed;

[0069] Step S3: determining a grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed;

[0070] Step S4: generating a second brightness matrix of the image to be processed according to the first brightness matrix and the grayscale uniformity matrix;

[0071] Step S5: adjusting the brightness of each pixel in the image to be processed using the second brightness matrix to generate a uniform image.

[0072] In step S1, the image to be processed and the target grayscale to be displayed by the image to be processed are obtained, and the number of pixels contained in the image to be processed and the coordinates of each pixel in the image to be processed are determined according to the obtained image.

[0073] In a preferred embodiment, after obtaining the image to be processed and the target grayscale of the image to be processed, and determining the coordinates and brightness of all pixels in the image to be processed, it also includes: when a brightness change of any pixel in the image to be processed is detected, if the brightness of the pixel decreases, the brightness of the pixels around the pixel is increased; if the brightness of the pixel increases, the brightness of the pixels around the pixel is reduced.

[0074] Specifically, in the field of electronic paper displays, from the time an image is input to its display on an electronic paper screen, the energy of each pixel in the image changes during processing. The resulting image on the electronic paper screen consists only of black dots with a brightness of 0 and white dots with a brightness of 255. For example, if the brightness of a pixel is 120 and the threshold set during image processing is 128, pixels with a brightness of less than 128 will be set to black dots (i.e., a brightness of 0), while pixels with a brightness of more than 128 will be set to white dots (i.e., a brightness of 255). In the process of converting pixels to black or white based on the set threshold, energy is lost or gained. To ensure energy conservation, a preset energy radiation table is used to distribute the energy lost or gained by any pixel. This ensures that no energy is lost and allows the image's grayscale to be represented by black and white dots.

[0075] For example, there are 16 pixels on an image as shown in the following table:

[0076] Set a non-edge energy radiation table as shown below:

[0077] The energy radiation table with a left boundary is shown in the following table:

[0078] The energy radiation table with a right boundary is shown below:

[0079] The energy radiation table with the following boundaries is shown in the following table:

[0080] When the brightness value of a pixel on an image changes, the changed energy is distributed according to the above energy radiation table, so that the display effect is uniform and complies with the principle of energy conservation.

[0081] For example, when the brightness of the second pixel in the first row is changed from 120 to 0, the changed brightness is distributed to the surrounding points.

[0082] Transformed into:

[0083] Similarly, when the brightness of the second pixel in the third row changes from 240 to 255, the changed brightness is obtained from the surrounding points respectively, so from the original:

[0084] Change to:

[0085] The above method can follow the energy conservation principle when the brightness of any pixel changes, ensuring that the brightness is not lost, and can also use black and white points to reflect the grayscale of the image.

[0086] In step S2, a first brightness matrix is ​​generated based on the coordinates of each pixel in the image to be processed and the brightness of each pixel. For example, if the image to be processed is a 4x4 image with 16 pixels and each pixel is a solid color image with a brightness of 100, the coordinate matrix of the image to be processed is as shown in the following table:

[0087] The first brightness matrix of the image to be processed is shown in the following table:

[0088] With respect to step S3, in a preferred embodiment, determining a grayscale uniformity matrix of the image to be processed based on the image to be processed and the target grayscale of the image to be processed includes: determining an initial grayscale uniformity matrix based on the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each matrix unit corresponding to a pixel in the image to be processed; numbering the matrix units in the initial grayscale uniformity matrix one by one from left to right; repeatedly performing a first matrix unit repositioning operation on each matrix unit in the initial grayscale uniformity matrix until a relative distance between adjacent numbered matrix units in the initial grayscale uniformity matrix is ​​maximized, thereby generating a grayscale uniformity matrix; wherein the first matrix unit repositioning operation includes: selecting two adjacent numbered matrix units from the initial grayscale uniformity matrix one by one; selecting one matrix unit from the two adjacent numbered matrix units as a fixed matrix unit and selecting the other matrix unit as a movable matrix unit; moving the movable matrix unit, and determining the position of the movable matrix unit in the initial grayscale uniformity matrix when the relative distance between the movable matrix unit and the fixed matrix unit is maximized.

[0089] In another preferred embodiment, determining a grayscale uniformity matrix for the image to be processed based on the image to be processed and the target grayscale of the image to be processed includes: determining an initial grayscale uniformity matrix based on the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each matrix unit corresponding to a pixel in the image to be processed; numbering the matrix units in the initial grayscale uniformity matrix one by one from left to right; repeatedly performing a second matrix unit repositioning operation on each matrix unit in the initial grayscale uniformity matrix until the relative distance between adjacent numbered matrix units in the initial grayscale uniformity matrix is ​​maximized, thereby generating a grayscale uniformity matrix; wherein the second matrix unit repositioning operation includes: selecting four consecutively numbered matrix units from the initial grayscale uniformity matrix; randomly positioning the four consecutively numbered matrix units in the initial grayscale uniformity matrix, calculating the relative distance between any one of the four consecutively numbered matrix units and the remaining matrix units, and determining the position of the four consecutively numbered matrix units in the initial grayscale uniformity matrix when the relative distance between any two matrix units is maximized.

[0090] Specifically, the target grayscale determines the size of the resulting grayscale uniform matrix. For example, if the target grayscale is 16 grayscales, the resulting grayscale uniform matrix is ​​a 4x4 uniform matrix; if the target grayscale is 64 grayscales, the resulting grayscale uniform matrix is ​​an 8x8 uniform matrix; and if the target grayscale is 96 grayscales, the resulting grayscale uniform matrix is ​​an 18x8 uniform matrix. It should be noted that regardless of the number of target grayscales selected, the resulting grayscale uniform matrix will have an equiproportional correspondence with the first luminance matrix of the image to be processed. In this embodiment, a target grayscale of 16 grayscales is selected for illustration.

[0091] The initial grayscale uniformity matrix generated by 16 grayscales is a 4X4 matrix. Numbering it from left to right can obtain the initial grayscale uniformity matrix shown in the following figure:

[0092] In the above table, each number represents the number of each matrix unit, which corresponds one-to-one to the coordinate matrix in the image to be processed, that is, the coordinate corresponding to the matrix unit numbered 1 is N[x][y], which will not be repeated here.

[0093] To determine a grayscale uniformity matrix, this embodiment provides two determination methods. One method is to use the Euclidean distance calculation formula or the urban-rural distance calculation formula to calculate the distances between matrix unit 1 and matrix unit 2, matrix unit 2 to matrix unit 3, ..., and matrix unit 15 to matrix unit 16, respectively. The distances are accumulated and summed in order to perform distance summing. At the same time, the positions of each pair of adjacent matrix units in the grayscale uniformity matrix are determined based on the calculated distances. By repeatedly calculating the distances between each pair of adjacent matrix units, it is determined that the relative distances between each pair of adjacent matrix units in the grayscale uniformity matrix are maximized, and then the corresponding grayscale uniformity matrix is ​​generated.

[0094] Another method uses a four-area proximity summation method to calculate the distances from matrix element 1 to matrix element 2, matrix element 3, and matrix element 4; the distances from matrix element 2 to matrix element 1, matrix element 3, and matrix element 4; and the distances from matrix element 3 to matrix element 2, matrix element 4, and matrix element 5. The distances of the four consecutively numbered matrix elements are then cumulatively summed. When the relative distance between each matrix element and its three adjacent matrix elements is the maximum in the grayscale uniform matrix, the corresponding grayscale uniform matrix is ​​generated. In principle, this method ensures that matrix element 1 cannot be surrounded by matrix elements smaller than 5, thereby preventing adjacent matrix elements from stacking.

[0095] In this embodiment, the generated 4×4 grayscale uniform matrix is ​​as follows:

[0096] It should be noted that the generated uniform matrices generally include two types. One is a square matrix, as shown in the following table:

[0097] Another type is a rectangular uniform matrix as shown in the following table:

[0098] The 4×4 uniform matrix used in the embodiment of the present invention is a square matrix. If a rectangular uniform matrix is ​​used, the grayscale uniform matrix that can be obtained is shown in the following table:

[0099] The generation of this table also depends on the four-domain calculation method or the Euclidean distance calculation method used in the embodiment of the present invention, and will not be repeated here.

[0100] It should be added that in order to make the generated grayscale uniform matrix achieve a better uniform display effect, when it is detected that there are two relatively adjacent matrix units in a local area of ​​the finally generated grayscale uniform matrix, the area can be selected and the matrix units in the selected area can be scattered using a random scattering method, so that the finally generated grayscale uniform matrix has a better uniform display effect.

[0101] In step S4, after determining the first brightness matrix and the grayscale uniformity matrix, determine which numbered matrix cells in the grayscale uniformity matrix need to be set as white points and which need to be set as black points based on the brightness values ​​in the first brightness matrix, thereby generating a corresponding second brightness matrix. For example, if the brightness of each pixel in the first brightness matrix is ​​100, and 100 brightness is divided into 16 equal parts, which is approximately equal to 6, then according to the grayscale uniformity matrix, the matrix cells numbered 1-6 are set to 255, and the remaining matrix cells are set to 0, and the second brightness matrix can be obtained as shown in the following table:

[0102] In step S5, the brightness value of each pixel in the image to be processed is reset according to the second brightness matrix determined in step S4, so that an image with uniform brightness can be obtained.

[0103] Based on the above method embodiments, the present invention provides corresponding device embodiments.

[0104] As shown in FIG2 , an embodiment of the present invention provides a device for improving image display uniformity, comprising: a data acquisition module, a first brightness matrix generation module, a grayscale uniformity matrix generation module, a second brightness matrix generation module, and an image adjustment module;

[0105] The data acquisition module is used to acquire the image to be processed and the target grayscale of the image to be processed, and determine the coordinates and brightness of all pixels in the image to be processed;

[0106] The first brightness matrix generating module is used to generate a first brightness matrix of the image to be processed according to the coordinates and brightness of all pixels in the image to be processed;

[0107] The grayscale uniformity matrix generating module is used to determine the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed;

[0108] The second brightness matrix generating module is used to generate a second brightness matrix of the image to be processed according to the first brightness matrix and the grayscale uniformity matrix;

[0109] The image adjustment module is used to adjust the brightness of each pixel in the image to be processed using the second brightness matrix to generate a uniform image.

[0110] In a preferred embodiment, the step of determining the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes:

[0111] Determining an initial grayscale uniformity matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each of the matrix units corresponding to a pixel point in the image to be processed;

[0112] Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right;

[0113] Repeating the first matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​maximized, thereby generating a grayscale uniform matrix;

[0114] The first repositioning operation of the matrix unit includes:

[0115] Selecting two adjacent numbered matrix units one by one from the initial grayscale uniform matrix;

[0116] Selecting one matrix unit from two adjacent numbered matrix units as a fixed matrix unit and selecting the other matrix unit as a mobile matrix unit;

[0117] The mobile matrix unit is moved, and the position of the mobile matrix unit in the initial grayscale uniform matrix is ​​determined when the relative distance between the mobile matrix unit and the fixed matrix unit is the largest.

[0118] In another preferred embodiment, the step of determining the grayscale uniformity matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes:

[0119] Determining an initial grayscale uniformity matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniformity matrix includes a plurality of matrix units, each of the matrix units corresponding to a pixel point in the image to be processed;

[0120] Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right;

[0121] Repeating the second matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​maximized, thereby generating a grayscale uniform matrix;

[0122] The second repositioning operation of the matrix unit includes:

[0123] Selecting four consecutively numbered matrix units from the initial grayscale uniform matrix;

[0124] Four consecutively numbered matrix units are randomly positioned in the initial grayscale uniform matrix, and the relative distance between any one of the four consecutively numbered matrix units and each of the other matrix units is calculated. When the relative distance between any two matrix units is the largest, the positioning of the four consecutively numbered matrix units in the initial grayscale uniform matrix is ​​determined.

[0125] In a preferred embodiment, it further comprises: an energy distribution module;

[0126] The energy distribution module is used to detect a brightness change of any pixel point in the image to be processed. If the brightness of the pixel point decreases, the brightness of the pixels around the pixel point is increased; if the brightness of the pixel point increases, the brightness of the pixels around the pixel point is reduced.

[0127] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement the present invention without inventive work.

[0128] Those skilled in the art will clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0129] Based on the above method embodiment, the present invention provides a corresponding terminal device embodiment.

[0130] An embodiment of the present invention provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for improving image display uniformity as described in any one of the present inventions is implemented.

[0131] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0132] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.

[0133] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0134] Based on the above method embodiment, the present invention provides a corresponding storage medium embodiment.

[0135] An embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is run, the device where the storage medium is located is controlled to execute any one of the methods for improving image display uniformity described in the present invention.

[0136] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. The computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium.

[0137] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for improving image display uniformity, characterized in that: include: Obtaining the image to be processed and the target grayscale of the image to be processed, and determining the coordinates and brightness of all pixels in the image to be processed; Generate a first brightness matrix of the image to be processed according to the coordinates and brightness of all pixels in the image to be processed; Determine a grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed; Generate a second brightness matrix of the image to be processed according to the first brightness matrix and the grayscale uniformity matrix; The brightness of each pixel in the image to be processed is adjusted using the second brightness matrix to generate a uniform image.

2. A method for improving image display uniformity as claimed in claim 1, characterized in that: The step of determining the grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes: Determine an initial grayscale uniform matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniform matrix includes a plurality of matrix units, each of which corresponds to a pixel point in the image to be processed; Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right; For each matrix unit in the initial grayscale uniform matrix, the first matrix unit repositioning operation is repeatedly performed until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​the largest, thereby generating a grayscale uniform matrix; The first relocation operation of the matrix unit includes: Select two adjacent numbered matrix units one by one from the initial grayscale uniform matrix; Select one matrix unit from two adjacent numbered matrix units as a fixed matrix unit, and select the other matrix unit as a mobile matrix unit; The mobile matrix unit is moved, and the positioning of the mobile matrix unit in the initial grayscale uniform matrix is ​​determined when the relative distance between the mobile matrix unit and the fixed matrix unit is the largest.

3. A method for improving image display uniformity as claimed in claim 1, characterized in that: The step of determining the grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes: Determine an initial grayscale uniform matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniform matrix includes a plurality of matrix units, each of which corresponds to a pixel point in the image to be processed; Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right; Repeating the second matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​the largest, thereby generating a grayscale uniform matrix; The second relocation operation of the matrix unit includes: Select four consecutively numbered matrix units from the initial grayscale uniform matrix; Four consecutively numbered matrix units are randomly positioned in the initial grayscale uniform matrix, and the relative distance between any one of the four consecutively numbered matrix units and the remaining matrix units is calculated, and when the relative distance between any two matrix units is the largest, the positioning of the four consecutively numbered matrix units in the initial grayscale uniform matrix is ​​determined.

4. A method for improving image display uniformity as claimed in claim 1, characterized in that: After obtaining the image to be processed and the target grayscale of the image to be processed, and determining the coordinates and brightness of all pixels in the image to be processed, the following steps are also included: When a change in the brightness of any pixel in the image to be processed is detected, if the brightness of the pixel decreases, the brightness of the pixels around the pixel is increased; If the brightness of the pixel point increases, the brightness of the pixels around the pixel point is reduced.

5. A device for improving image display uniformity, characterized in that: include: A data acquisition module, a first brightness matrix generation module, a grayscale uniformity matrix generation module, a second brightness matrix generation module, and an image adjustment module; The data acquisition module is used to acquire the image to be processed and the target grayscale of the image to be processed, and determine the coordinates and brightness of all pixels in the image to be processed; The first brightness matrix generating module is used to generate a first brightness matrix of the image to be processed according to the coordinates and brightness of all pixels in the image to be processed; The grayscale uniform matrix generating module is used to determine the grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed; The second brightness matrix generation module is used to generate a to-be-processed A second brightness matrix of the image; The image adjustment module is used to adjust the brightness of each pixel in the image to be processed by using the second brightness matrix to generate a uniform image.

6. The device for improving image display uniformity according to claim 5, characterized in that: The step of determining the grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes: Determine an initial grayscale uniform matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniform matrix includes a plurality of matrix units, each of which corresponds to a pixel point in the image to be processed; Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right; For each matrix unit in the initial grayscale uniform matrix, the first matrix unit repositioning operation is repeatedly performed until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​the largest, thereby generating a grayscale uniform matrix; The first relocation operation of the matrix unit includes: Select two adjacent numbered matrix units one by one from the initial grayscale uniform matrix; Select one matrix unit from two adjacent numbered matrix units as a fixed matrix unit, and select the other matrix unit as a mobile matrix unit; The mobile matrix unit is moved, and the positioning of the mobile matrix unit in the initial grayscale uniform matrix is ​​determined when the relative distance between the mobile matrix unit and the fixed matrix unit is the largest.

7. The device for improving image display uniformity according to claim 5, characterized in that: The step of determining the grayscale uniform matrix of the image to be processed according to the image to be processed and the target grayscale of the image to be processed includes: Determine an initial grayscale uniform matrix according to the image to be processed and the target grayscale of the image to be processed; wherein the initial grayscale uniform matrix includes a plurality of matrix units, each of which corresponds to a pixel point in the image to be processed; Numbering each matrix unit in the initial grayscale uniform matrix one by one from left to right; Repeating the second matrix unit repositioning operation for each matrix unit in the initial grayscale uniform matrix until the relative distance between each adjacent numbered matrix unit in the initial grayscale uniform matrix is ​​the largest, thereby generating a grayscale uniform matrix; The second relocation operation of the matrix unit includes: Select four consecutively numbered matrix units from the initial grayscale uniform matrix; Four consecutively numbered matrix units are randomly positioned in the initial grayscale uniform matrix, and the relative distance between any one of the four consecutively numbered matrix units and the remaining matrix units is calculated, and when the relative distance between any two matrix units is the largest, the positioning of the four consecutively numbered matrix units in the initial grayscale uniform matrix is ​​determined.

8. The device for improving image display uniformity according to claim 5, characterized in that: Also includes: Energy distribution module; The energy distribution module is used to detect a change in the brightness of any pixel in the image to be processed. If the brightness of the pixel decreases, the brightness of the pixels around the pixel is increased; if the brightness of the pixel increases, the brightness of the pixels around the pixel is reduced.

9. A terminal device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a method for improving image display uniformity as described in any one of claims 1 to 4 is implemented.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute a method for improving image display uniformity as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for improving display brightness uniformity of OLED (organic light emitting diode)

    CN104599632A

  • Method and device for determining luminance compensation coefficients

    CN105529002A

  • Display device brightness compensation method, device and equipment based on neural network

    CN109935206A

  • Image gray processing method and device, computer equipment and storage medium

    CN110738603A

  • Display compensation information obtaining method and device and display compensation method and device

    CN111968570A