Image compensation method and device, computer equipment, readable storage medium and program product
By calculating the positional relationship and brightness difference between each pixel point in the image and the reference pixel point, the target filter is constructed to compensate the image, solving the color edges and zigzag problems caused by factor pixel arrangement in AMOLED display technology, realizing the accurate compensation of the image and improving the display quality.
Patent Information
- Application Number
- CN202510199990.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-21
- Publication Date
- 2025-05-30
AI Technical Summary
In AMOLED display technology, the triangular pixel arrangement caused by different lifespans of pixels, color edges and jagged problems occur, affecting the quality of the image display. The prior art is difficult to make precise compensation.
By acquiring the image to be processed, the positional relationship between each pixel point and the reference pixel point is calculated to determine the reference filtering parameters, the display situation is determined based on the brightness difference between the pixel point and the adjacent pixel point, and the target filter is constructed to adjust the brightness value to achieve accurate compensation of the image.
It realizes accurate compensation for colored edges and jagged problems caused by factor pixel arrangement in AMOLED display technology, improving the quality and effect of image display.
Smart Images

Figure CN120071831A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image technologies, and in particular, to an image compensation method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of display technologies, AMOLED (Active Matrix Organic Light-Emitting Diode) display technology has gradually become mainstream.
[0003] In an AMOLED panel, due to its excellent properties such as self-luminescence, wide color gamut, fast response, high brightness and high contrast, it is deeply loved by consumers. Affected by the different lifetimes of sub-pixel materials, in order to improve the lifetime, instead of using the normal matrix stripe arrangement, a triangular pixel arrangement is mostly used. Therefore, there will be phenomena such as color fringes and jaggedness during display, which will affect the image display condition.
[0004] In order to improve the image display condition, in the related art, the image is compensated by a filter or a brightness smoothing algorithm, but accurate compensation cannot be performed. Summary of the Invention
[0005] Based on this, it is necessary to provide an image compensation method, apparatus, computer device, computer-readable storage medium, and computer program product that can perform accurate compensation for the above technical problems.
[0006] In a first aspect, this application provides an image compensation method, including:
[0007] Obtain an image to be processed;
[0008] Calculate the reference filtering parameter of each pixel point according to the positional relationship between each pixel point in the image to be processed and the reference pixel point corresponding to each pixel point;
[0009] Determine the display condition of each pixel point according to the brightness difference between each pixel point and its adjacent pixel points;
[0010] Construct a target filter for each pixel point based on the display condition and the reference filtering parameter;
[0011] Adjust the brightness value of each pixel point through the target filter.
[0012] In one embodiment, the calculating the reference filtering parameter of each pixel point according to the positional relationship between each pixel point in the image to be processed and the reference pixel point corresponding to each pixel point includes:
[0013] Determine the reference pixel points corresponding to each of the pixel points;
[0014] Calculate the geometric distances from the geometric centers of the sub-pixels in each of the pixel points to the geometric centers of the pixel points in the current pixel point and the reference pixel points respectively, to obtain the reference filtering parameter.
[0015] In one embodiment, the calculating the distances from the geometric centers of the sub-pixels in each of the pixel points to the geometric centers of the pixel points in the current pixel point and the reference pixel points respectively, to obtain the reference filtering parameter includes:
[0016] Calculate the weighted distances corresponding to each of the sub-pixels according to the geometric distances from the geometric centers of the sub-pixels in each of the pixel points to the geometric centers of the pixel points in the current pixel point and the reference pixel points respectively;
[0017] Obtain the reference filtering parameter according to the proportion of the geometric distances corresponding to the sub-pixels in each of the pixel points to the geometric distance to the current pixel point in each of the weighted distances.
[0018] In one embodiment, the calculating the distances from the geometric centers of the sub-pixels in each of the pixel points to the geometric centers of the pixel points in the current pixel point and the reference pixel points respectively, to obtain the reference filtering parameter includes:
[0019] When the arrangement of the sub-pixels in the pixel point and the reference pixel point is different, calculate the distances from the sub-pixels in each of the pixel points at the first preset position and the second preset position to the geometric centers of the pixel points in the current pixel point and the reference pixel points respectively, to obtain the reference filtering parameter.
[0020] In one embodiment, the determining the display situation of each of the pixel points according to the brightness difference between each of the pixel points and its adjacent pixel points includes:
[0021] Calculate the brightness differences between each of the pixel points and its adjacent pixel points in a preset direction; the adjacent pixel points are determined according to a preset pixel window;
[0022] Encode according to the brightness difference to obtain encoded information, and obtain the display situation according to the encoded information.
[0023] In one embodiment, the encoding according to the brightness difference to obtain encoded information, and obtaining the display situation according to the encoded information includes:
[0024] Compare the brightness difference with a preset threshold to obtain a difference situation;
[0025] Encode each of the pixel points and the corresponding adjacent pixel points according to the difference situation to obtain encoding information;
[0026] Compare the encoding information with preset encoding information to obtain the display situation.
[0027] In one embodiment, constructing a target filter for each of the pixel points based on the display situation and the reference filtering parameters includes:
[0028] In one embodiment, constructing a target filter for each of the pixel points based on the display situation and the reference filtering parameters includes:
[0029] Obtain a first original filter;
[0030] Combine the display situation to adjust the first original filter to obtain a first initial filter;
[0031] Based on the first initial filter, select a first target filtering parameter from the reference filtering parameters;
[0032] Combine the first initial filter and the first target filtering parameter to obtain the target filter.
[0033] In one embodiment, the first original filter includes a first-order filter and a multi-order filter; combining the display situation to adjust the first original filter to obtain a first original filter includes:
[0034] When the display situation is edge-like, select the first-order filter as the first initial filter;
[0035] When the display situation is serrated, select the third-order filter as the first initial filter;
[0036] When the display situation is non-edge-like and non-serrated, select the first-order filter and the multi-order filter as the first initial filter.
[0037] In one embodiment, selecting a first target filtering parameter from the reference filtering parameters based on the first initial filter includes:
[0038] Based on the structure of the first initial filter, select an initial filtering parameter from the reference filtering parameters;
[0039] According to the arrangement situation of each sub-pixel in each of the pixel points, select the first target filtering parameter from the initial filtering parameters.
[0040] In one embodiment, constructing a target filter for each of the pixel points based on the display condition and the reference filtering parameter includes:
[0041] Obtaining a second original filter;
[0042] Obtaining a second initial filter according to the second original filter and the reference filtering parameter;
[0043] Adjusting the second initial filter in combination with the display condition to obtain the target filter.
[0044] In one embodiment, the second original filter includes a first-order filter and a third-order filter; adjusting the second initial filter in combination with the display condition to obtain the target filter includes:
[0045] When the display condition is edge-like, selecting the first-order filter as the second initial filter;
[0046] When the display condition is serrated, selecting the third-order filter as the second initial filter;
[0047] When the display condition is neither edge-like nor serrated, selecting the first-order filter and the multi-order filter as the second initial filter.
[0048] In one embodiment, obtaining the second initial filter according to the second original filter and the reference filtering parameter includes:
[0049] Selecting second initial filtering parameters from the reference filtering parameters according to the arrangement of each sub-pixel in each pixel point;
[0050] Obtaining the second initial filter according to the original filter and the second initial filtering parameter.
[0051] An image compensation device, the device includes:
[0052] An acquisition module, configured to acquire an image to be processed;
[0053] A parameter calculation module, configured to calculate the reference filtering parameter of each pixel point according to the positional relationship between each pixel point in the image to be processed and the reference pixel point corresponding to each pixel point;
[0054] A display determination module, configured to determine the display condition of each pixel point according to the brightness difference between each pixel point and adjacent pixel points;
[0055] A filter construction module for constructing a target filter for each of the pixel points based on the display condition and the reference filtering parameters;
[0056] A compensation module for adjusting the brightness values of each of the pixel points through the target filter.
[0057] A computer device comprising a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0058] A computer-readable storage medium having stored thereon a computer program, and the computer program implements the steps of the above method when executed by a processor.
[0059] A computer program product comprising a computer program, and the computer program implements the steps of the above method when executed by a processor.
[0060] The above image compensation method, apparatus, computer device, computer-readable storage medium, and computer program product first determine filtering parameters according to the positional relationship between each pixel point and its corresponding reference pixel point; at the same time, determine the display condition according to the brightness difference between each pixel point and its adjacent pixel points; after determining the display condition, construct a corresponding target filter for each pixel point in combination with the display condition and the reference filtering parameters, so as to accurately adjust the brightness values of each pixel point through the target filter, thereby achieving precise compensation for the image to be processed. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0062] Figure 1 It is a schematic diagram of matrix stripe arrangement in one embodiment;
[0063] Figure 2 It is a schematic diagram of triangular arrangement in one embodiment;
[0064] Figure 3 It is a schematic diagram of triangular arrangement in another embodiment;
[0065] Figure 4 It is a schematic flowchart of the image compensation method in one embodiment;
[0066] Figure 5 It is a schematic diagram of a preset pixel window in one embodiment;
[0067] Figure 6 It is a schematic diagram of other arrangement cases in an embodiment;
[0068] Figure 7 It is a schematic diagram of a reference pixel point in another embodiment;
[0069] Figure 8 It is a schematic diagram of calculating geometric distance in an embodiment;
[0070] Figure 9 It is a schematic diagram of calculating geometric distance in another embodiment;
[0071] Figure 10 It is a schematic diagram of an arrangement in the shape of an edge in an embodiment;
[0072] Figure 11 It is a schematic diagram of an arrangement in the shape of a sawtooth in an embodiment;
[0073] Figure 12 It is a schematic diagram of other display cases in an embodiment;
[0074] Figure 13 It is a schematic diagram of a 1×3 filter structure in an embodiment;
[0075] Figure 14 It is a schematic diagram of a 3×3 filter structure in another embodiment;
[0076] Figure 15 It is a structural block diagram of an image compensation device in an embodiment;
[0077] Figure 16 It is an internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0078] In order to make the objectives, technical solutions and advantages of the present application clearer, 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.
[0079] In an AMOLED panel, due to the influence of different lifetimes of sub-pixel materials, in order to improve the lifetime, instead of using a normal matrix stripe arrangement, some triangular pixel arrangements are often used. Therefore, when displaying images with obvious edge details such as text, color fringes will appear. Color fringes refer to a circle of colored bright dots around the edge, as well as a sawtooth phenomenon, that is, the line bends and jitters, seriously affecting the user's visual experience.
[0080] Exemplarily, in combination with Figure 1 , Figure 2 and Figure 3 as shown,Figure 1 It is a schematic diagram of matrix stripe arrangement in an embodiment. In Figure 1 , each pixel is composed of R, G, and B sub-pixels, arranged in sequence in the horizontal direction to form a regular stripe structure. The positions of the sub-pixels are strictly aligned in each row and each column. Figure 2 It is a schematic diagram of triangular arrangement in an embodiment, Figure 2 in which the sub-pixels are arranged in the form of triangles, presenting a more compact distribution. Figure 3 It is a schematic diagram of triangular arrangement in another embodiment.
[0081] To solve the display problems caused by the triangular pixel arrangement, in this embodiment, as Figure 4 shown, an image compensation method is provided. In this embodiment, taking the application of this method to a terminal as an example, it can be understood that this method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0082] Step 402, obtain the image to be processed; the image to be processed includes multiple pixel blocks.
[0083] Among them, the image to be processed refers to the target image that needs to optimize the display quality. Exemplarily, for AMOLED display technology, the image to be processed is usually the image that the display device is preparing to present to the user in the current frame buffer. It can be composed of multiple pixels, and the brightness and color of each pixel point are realized by the light emission of sub-pixels R, G, and B.
[0084] Step 404, calculate the reference filtering parameters of each pixel point according to the position relationship between each pixel point in the image to be processed and the corresponding reference pixel point of each pixel point.
[0085] First, determine the reference pixel point corresponding to calculating the reference filtering parameter for each pixel point, and the reference pixel points corresponding to each pixel point are different. Among them, the reference pixel point refers to the pixel point participating in the filtering of the current pixel point.
[0086] After determining the reference pixel point, calculate the reference filtering parameters of each pixel point according to each pixel point and the corresponding reference pixel point of each pixel point. Among them, the reference filtering parameters include multiple sets of filtering parameters to be applicable to different filter structures.
[0087] In image processing, the filtering parameter usually reflects the correlation degree between the current pixel point and the reference pixel points participating in the filtering. And one of the most direct ways to measure the correlation degree between two pixel points is their position relationship.
[0088] Optionally, the reference filtering parameter of each pixel may be calculated based on the distance between each pixel and a reference pixel corresponding to each pixel.
[0089] Optionally, the closer the distance between the current pixel point and the reference pixel point is, the larger the corresponding reference filtering parameter is, and vice versa.
[0090] Optionally, the positional relationship between each sub-pixel point in each pixel point and a reference pixel point corresponding to each pixel point may be calculated to calculate a reference filtering parameter of each pixel point.
[0091] Further, the reference filtering parameters include multiple groups of filtering parameters, each group of filtering parameters is calculated based on different reference pixels. Among them, different reference pixels can be selected based on a preset filtering structure. Exemplarily, the preset filtering structure can be 1×3 and 3×3, and different reference pixels can be obtained based on different filtering structures.
[0092] Step 406, determining the display status of each pixel point according to the brightness difference between each pixel point and adjacent pixels.
[0093] Among them, the adjacent pixel points refer to the pixel points used to determine the corresponding display conditions of each pixel point, which can be determined by a preset pixel window. Figure 5 As shown, Figure 5 A schematic diagram of a preset pixel window in an embodiment.
[0094] Each pixel and its corresponding adjacent pixel can be regarded as a pixel block. The display of the pixel in the pixel block can be deduced based on the brightness difference between each pixel and its adjacent pixel in each pixel block. This is because the brightness value of each pixel is composed of the luminous intensity of its internal sub-pixels, and the arrangement of sub-pixels determines the spatial distribution of brightness and luminous efficiency. Therefore, the arrangement of sub-pixels will affect the brightness value of the pixel. Different arrangements will lead to brightness differences between pixels and adjacent pixels. Therefore, by calculating the brightness difference between each pixel and its neighboring pixels, the display of the pixel can be further judged.
[0095] Furthermore, the display conditions include edge-like or jagged. Edge-like, that is, the color edge mentioned in the above embodiment, is caused by excessive brightness difference in a single direction, which is manifested as a certain color protruding in the edge area, forming an obvious color halo, which usually occurs when the sub-pixels are arranged too densely in a certain direction; jagged is caused by excessive brightness difference in multiple directions, which is manifested as the edges of oblique lines or curves presenting a step-like discontinuous effect, which usually occurs when the sub-pixels are arranged irregularly in multiple directions.
[0096] Step 408: Construct a target filter for each pixel point based on the display condition and the reference filtering parameters.
[0097] Among them, the target filter refers to the final filter that can perform specific operations on pixels, and the target filter includes specific parameters for image filtering.
[0098] Continuing with the above embodiments, the display condition can be edge-shaped and jagged. Therefore, for precise compensation, it is necessary to adjust the structure of the first original filter based on the display condition, and then obtain the target filter according to the adjusted first original filter and the reference filtering parameters. Among them, the first original filter mixes filters of multiple preset filtering structures.
[0099] Optionally, as described above, the reference filtering parameters include multiple groups of filtering parameters. Therefore, after determining the display condition, any group or a mixture of multiple groups of filtering parameters is selected from the reference filters as the target filtering parameters.
[0100] Exemplarily, since the edge shape is caused by the over-density of sub-pixels arranged in a single direction, a filter in a single direction, such as a first-order filter, can be constructed based on the first original filter to smooth the brightness in a specific direction.
[0101] Exemplarily, since the jagged shape is due to the irregular arrangement of sub-pixels in multiple directions, an all-round filter, such as a third-order filter, can be constructed based on the first original filter to ensure a natural transition of brightness in multiple directions.
[0102] Step 410: Adjust the brightness value of each pixel point through the target filter.
[0103] Optionally, the target filter redistributes the brightness value of the pixel according to the relationship between the pixel point and its adjacent pixel points, so as to adjust the brightness value of each pixel point, and then compensate each pixel point in the image to be processed.
[0104] Optionally, the brightness value of each pixel point can be adjusted by moving the filter window to perform a convolution operation on the current sub-pixel.
[0105] By adopting the target filter, the gray scale value of the sub-pixel is closely related to the gray scale values of the sub-pixels of adjacent units, thus effectively solving problems such as color fringes and jaggedness caused by the arrangement of sub-pixels, and then improving the display effect of the display panel.
[0106] In the above image compensation method, first, according to the positional relationship between each pixel point and its corresponding reference pixel point, the filtering parameters are determined; at the same time, according to the luminance difference between each pixel point and its adjacent pixel points, the display situation is determined; after determining the display situation, combined with the display situation and the reference filtering parameters, a corresponding target filter is constructed for each pixel point, so as to accurately adjust the luminance value of each pixel point through the target filter, and then achieve precise compensation for the image to be processed.
[0107] In one embodiment, according to the positional relationship between each pixel point in the image to be processed and its corresponding reference pixel point, the reference filtering parameters of each pixel point are calculated, including: determining the reference pixel point corresponding to each pixel point; respectively calculating the geometric distances from the geometric centers of each sub-pixel in each pixel point to the geometric centers of the current pixel point and each pixel point in the reference pixel point, to obtain the reference filtering parameters.
[0108] Optionally, the reference pixel point corresponding to each pixel point can be determined through a preset filtering structure. For example, a preset sliding window is set according to the preset filtering structure, and the preset sliding window is slid on the image to be processed to determine the reference pixel point corresponding to each pixel point.
[0109] Furthermore, the preset filtering structure can be divided into two structures: 1×3 filter and 3×3 filter. The 1×3 filter can effectively solve the problem of edge color such as text, and the 3×3 filter can effectively solve the serrated problem such as line bending and jitter.
[0110] Exemplarily, combined with Figure 5 , Figure 5 includes 9 pixel points. Assuming that currently the reference pixel point corresponding to the pixel point numbered "0" is to be determined, the preset sliding window is a 3×3 matrix, and the reference pixel points are the three pixel points numbered "1", "3", and "4". If currently the reference pixel point corresponding to the pixel point numbered "1" is to be determined, the preset sliding window is a 3×3 matrix, and the reference pixel points are the five pixel points numbered "0", "2", "3", "4", and "5". That is to say, when there is a part exceeding the display area in the edge pixel area, at this time, the part exceeding the display area needs to be padded.
[0111] It should be noted that the current pixel point needs to be located at the center position of the preset sliding window.
[0112] Exemplarily, combined with Figure 6 , Figure 6 is a schematic diagram of the reference pixel point in one embodiment. Figure 6 In the preset filter structure is 1×3, at this time, the left and right pixel points of the current pixel point are used as the reference pixel points.
[0113] Exemplarily, in combination with Figure 7 , Figure 7 is a schematic diagram of a reference pixel point in another embodiment. Figure 7 The preset filter structure in is 3×3. At this time, a total of 8 pixels above, below, left, right, and diagonally of the current pixel are used as reference pixels.
[0114] In this embodiment, after determining the reference pixel points corresponding to each pixel point, the geometric distances from the geometric centers of the sub-pixels in each pixel point to the geometric centers of the current pixel point and each pixel point in the reference pixel points are calculated respectively, and reference filtering parameters are obtained based on the geometric distances.
[0115] Exemplarily, in combination with Figure 8 shown, Figure 8 is a schematic diagram of calculating geometric distance in an embodiment. Figure 8 Taking the red sub-pixel as an example, the distances from the red sub-pixel to the geometric centers of the current pixel point and each reference pixel point are calculated.
[0116] Exemplarily, in combination with Figure 9 shown, Figure 9 is a schematic diagram of calculating geometric distance in another embodiment. Figure 9 Taking the red sub-pixel as an example, the distances from the red sub-pixel to the geometric centers of the current pixel point and each reference pixel point are calculated.
[0117] In this way, the geometric distances from each sub-pixel point in each pixel point to the current pixel point and each pixel point in the reference pixel point can be calculated respectively according to the above method under different preset filter structures, so as to obtain reference filtering parameters.
[0118] Among them, calculating the filtering parameters according to the geometric distances of the sub-pixels can reflect the spatial arrangement and brightness influence range between the sub-pixels. The closer the sub-pixels are, the greater the influence on the brightness of the current pixel point. Therefore, the filter will assign a higher weight. In this way, different sub-pixel arrangement methods can be adapted, the local brightness distribution can be optimized, the display problems can be accurately compensated, and excessive or insufficient brightness adjustment can be avoided.
[0119] Further, the above-mentioned calculating the geometric distances from the geometric centers of each sub-pixel in each pixel point to the geometric centers of the current pixel point and each pixel point in the reference pixel point to obtain reference filtering parameters includes: calculating the weighted distances corresponding to each sub-pixel according to the geometric distances from the geometric centers of each sub-pixel in each pixel point to the geometric centers of the current pixel point and each pixel point in the reference pixel point; obtaining the reference filtering parameters according to the proportion of the geometric distances from each sub-pixel in each pixel point to the pixel point in each weighted distance.
[0120] Exemplarily, in combination with Figure 8In the example, taking the red sub-pixel as an example, the geometric distance from this sub-pixel to the current pixel is , and the geometric distances from it to the reference pixel points are respectively and , then the weighted distance corresponding to this sub-pixel is + + .
[0121] Then, according to the proportion of the geometric distance from the sub-pixel to the current pixel point in the weighted distance, the weight of the current sub-pixel is obtained, as shown in formula (1).
[0122] Formula (1)
[0123] In this way, by calculating the weights of different sub-pixels in the current pixel point respectively, the filtering parameter corresponding to the current pixel point can be obtained. Exemplarily, the filtering parameters are as follows:
[0124]
[0125]
[0126]
[0127] According to the example in this embodiment, the filtering parameters corresponding to each pixel point can be obtained.
[0128] Exemplarily, combined with Figure 9 in the example, the weight of the upper left corner sub-pixel is as shown in formula (2),
[0129] Formula (2)
[0130] Then, the filtering parameter corresponding to the current pixel point is as follows:
[0131]
[0132]
[0133]
[0134] In this way, according to formula (1) and formula (2), when the preset filter can be divided into a 1×3 filter and a 3×3 filter, the filtering parameters corresponding to each pixel point can be obtained. In this embodiment, the reference filtering parameters are respectively composed of the first-order filtering parameters corresponding to the preset filter being a 1×3 filter and the third-order filtering parameters corresponding to the preset filter being a 1×3 filter.
[0135] Further, calculating the distances from the geometric centers of the sub-pixels in each pixel point to the geometric centers of the pixels in the current pixel point and the reference pixel point respectively to obtain the reference filtering parameters includes: when the arrangement of the sub-pixels in the pixel point is different from that in the reference pixel point, calculating the distances from the sub-pixels in each pixel point to the geometric centers of the pixels in the current pixel point and the reference pixel point at the first preset position and the second preset position respectively to obtain the reference filtering parameters.
[0136] In this embodiment, the arrangement of the sub-pixels is further considered. If the arrangement of the sub-pixels in the pixel point is different from that in the reference pixel point, it is necessary to calculate the corresponding geometric distances when the sub-pixel points are distributed at different positions.
[0137] Exemplarily, combining Figure 2 the first pixel point and the second pixel point in Figure 3 wherein, the arrangement positions of the sub-pixels in the first pixel point and the second pixel point are different, and at this time, it is determined that the arrangement situations are different. Combining
[0138] the first pixel point and the second pixel point in
[0139] wherein, the arrangement positions of the sub-pixels in the first pixel point and the second pixel point are the same, and at this time, it is determined that the arrangement situations are the same.
[0140] Among them, the first preset position may be an even row or an even column; the second preset position may be an odd row or an odd column.
[0141] Exemplarily, for the R sub-pixel weight, for even columns, as shown in Table 1:
[0142] Table 1
[0143]
[0144] For odd columns, as shown in Table 2:
[0145] Table 2
[0146]
[0147] The reason for the different configurations of odd and even columns can be referred to Figure 9 , and it can be seen that there are obvious differences in the distances from adjacent sub-pixels to this sub-pixel. For example, the distance from the upper-left red sub-pixel in the even column to the central red sub-pixel is significantly smaller than the distance from the upper-left red sub-pixel in the odd column to the central red sub-pixel.
[0148] In addition, it should be noted that in the above embodiment, when determining the reference pixel point, for the part that exceeds the display area in the edge pixel region, padding needs to be performed on the part that exceeds the display area. For the pixel points in the padding part, the corresponding reference filtering parameter is also 0.
[0149] Exemplarily, as shown in Table 3 for the filter 3×3 parameter configuration at the center position, the weights at its four corners and edges are configured as follows.
[0150] Table 3
[0151]
[0152] Similarly for filter1×3.
[0153] In this way, through the operations in the above several embodiments, all possible filtering parameters of each pixel point can be calculated, that is, the reference filtering parameters.
[0154] In one embodiment, determining the display situation of each pixel point according to the brightness difference between each pixel point and its adjacent pixel points includes: calculating the brightness difference between each pixel point and its adjacent pixel points in a preset direction; the adjacent pixel points are determined according to a preset pixel window; encoding according to the brightness difference to obtain encoding information, and obtaining the display situation according to the encoding information.
[0155] Among them, the preset directions include horizontal, vertical, upper left to lower right, and upper right to lower left.
[0156] Optionally, the adjacent pixel points participating in the calculation of the brightness difference in each preset direction are different. Therefore, it is necessary to select the target pixel points participating in the calculation from the adjacent pixel points for each preset direction and calculate the brightness difference between the target pixel points.
[0157] Exemplarily, in combination with Figure 5 , the target pixel points in the horizontal direction are composed of the pixel points encoded as 3, 4, and 5, the target pixel points in the vertical direction are composed of the pixel points encoded as 1, 4, and 7, the target pixel points in the upper left to lower right direction are composed of the pixel points encoded as 0, 4, and 8, and the target pixel points in the upper right to lower left direction are composed of the pixel points encoded as 2, 4, and 6.
[0158] Calculate the luminance difference between target pixels in different preset directions, and then perform encoding based on the luminance difference to obtain encoding information. Encoding the pixels can transform the luminance relationship between the pixels and their adjacent pixels into structured data, enabling an intuitive judgment of the display situation.
[0159] Further, calculate the differences between each target pixel in each preset direction in sequence. Exemplarily, taking the horizontal direction as an example, calculate the luminance difference between pixel 3 and pixel 4 in sequence, and then calculate the luminance difference between pixel 4 and pixel 5. The same applies to other directions.
[0160] Further, perform encoding based on the luminance difference to obtain encoding information, and obtain the display situation based on the encoding information, including: comparing the luminance difference with a preset threshold to obtain a difference situation; encoding each pixel and its corresponding adjacent pixel according to the difference situation to obtain encoding information; comparing the encoding information with the preset encoding information to obtain the display situation.
[0161] Optionally, compare the differences between each pixel in each preset direction with a preset threshold to obtain a difference situation. Among them, the preset threshold is a preset value used to distinguish whether the luminance difference is obvious enough.
[0162] Optionally, if the luminance difference is greater than the preset threshold, it is determined that the luminance change in this direction is significant, and there are edge color or jagged problems. At this time, mark this direction as "1" in the encoding information; conversely, if the luminance difference is less than or equal to the preset threshold, it is determined that the luminance change in this direction is not obvious, and it may be a smooth area. At this time, mark this direction as "0" in the encoding information, and thus the encoding information in each preset direction can be obtained.
[0163] Further, determine the display situation of the pixel block by comparing the encoding information with the preset encoding information. Among them, the preset encoding information includes preset edge encoding information and preset jagged encoding information, which are respectively used to judge whether the pixel block has an edge shape or a jagged shape.
[0164] Exemplarily, assume that the display situation of each pixel block is known, and then combine the encoding information of each pixel block to generate the preset encoding information and the preset jagged information. That is, use prior knowledge to generate the preset edge encoding information and the preset jagged encoding information.
[0165] Exemplarily, as shown in Figure 10 shown, Figure 10 is a schematic diagram of an edge shape in an embodiment, Figure 10It includes various edge shapes and the corresponding encoded messages for each edge shape. The encoded messages corresponding to each edge shape are used as the preset edge encoding messages, and the preset edge encoding messages are [0x0111, 0x0222, 0x2021, 0x1012].
[0166] Exemplarily, in combination with Figure 11 as shown, Figure 11 FIG. is a schematic diagram of a sawtooth shape in an embodiment. Similarly, Figure 11 it includes various sawtooth shapes and the corresponding encoding information for each sawtooth shape. The encoded messages corresponding to each sawtooth shape are used as the preset edge encoding messages, and the preset sawtooth encoding messages are [0x03330, 0x3303, 0x0333, 0x3033].
[0167] After obtaining the encoded messages corresponding to each pixel block and comparing them with the preset encoded messages, the corresponding encoded messages can be obtained.
[0168] Exemplarily, when the encoded message belongs to [0x0111, 0x0222, 0x2021, 0x1012], it is determined that the display situation is an edge shape; when the encoded message belongs to [0x03330, 0x3303, 0x0333, 0x3033], it is determined that the display situation is a sawtooth shape.
[0169] In this way, by comparing the encoded message with the preset encoded message, the display situation can be simply and quickly determined.
[0170] If the encoded message is inconsistent with both the preset edge encoding message and the preset sawtooth encoding message, it is determined as other display situations. Exemplarily, in combination with Figure 12 as shown, Figure 12 FIG. is a schematic diagram of other display situations in an embodiment.
[0171] In one embodiment, constructing a target filter for each pixel point based on the display situation and reference filtering parameters includes: obtaining a first original filter; adjusting the first original filter in combination with the display situation to obtain a first initial filter; selecting a first target filtering parameter from the reference filtering parameters based on the first initial filter; and obtaining the target filter by combining the first initial filter and the first target filtering parameter.
[0172] Exemplarily, the first original filter is as shown in formula (3),
[0173] Formula (3)
[0174] Among them, the first original filter includes a 1×3 filter and a 3×3 filter, and the structures of the two preset filters can effectively handle different types of display problems.
[0175] Then, the current sub-pixel value adjusted by the first original filter is as shown in formula (4).
[0176] Formula (4)
[0177] Optionally, change this parameter according to the display situation to adjust the first original filter to obtain a first initial filter capable of filtering according to the display situation.
[0178] Optionally, the first original filter includes a first-order filter and a third-order filter; the first original filter is modified according to the display situation to obtain a first initial filter, including: when the display situation is edge-like, select the first-order filter as the first initial filter; when the display situation is serrated, select the third-order filter as the first initial filter; when the display situation is non-edge-like and non-serrated, select the hybrid filter as the first initial filter.
[0179] Optionally, adjust the coefficients of the first-order filter and the third-order filter in the first original filter according to the display situation to obtain the first initial filter.
[0180] Exemplarily, when the display situation is edge-like, set to 0 and only use , that is, select the first-order filter as the first initial filter; this is because the edge-like is mainly due to the change in direction. The first-order filter smooths the brightness or color change in one direction of the edge to reduce the color edge phenomenon.
[0181] Exemplarily, when the display situation is serrated, set to 1 and only use , that is, the third-order filter bank as the first initial filter; this is because the serrated has edges in multiple directions. The third-order filter smooths the brightness or color change in multiple directions to eliminate the serrated staircase effect.
[0182] When the display situation is other situations, that is, non-edge-like and non-serrated, set to 0.5 to achieve a balance between and .
[0183] Combined with the above embodiments, the reference filtering parameters include multiple sets of filtering parameters, namely, first-order filtering parameters and third-order filtering parameters. Therefore, after determining the first initial filter, the first target filtering parameter is selected from the reference filtering parameters according to the first initial filter, that is, one or more sets of filtering parameters are selected from the first-order filtering parameters and the third-order filtering parameters as the first target filtering parameter, and then the target filter is obtained. When the display situation is non-edge and non-serrated, two sets of filtering parameters are selected as the first target filtering parameter at the same time.
[0184] Furthermore, two different parameter configurations are calculated for each set of filtering parameters, that is, the filtering parameters when the sub-pixels are located at the first preset position and the second preset position. Therefore, it is necessary to make a further selection in combination with the arrangement of the sub-pixels in each pixel point.
[0185] In one embodiment, the above-mentioned selection of the first target filtering parameter from the reference filtering parameters based on the first initial filter includes: selecting the initial filtering parameter from the reference filtering parameters based on the first initial filter; and selecting the first target filtering parameter from the initial filtering parameters according to the arrangement of the sub-pixels in each pixel point.
[0186] In this embodiment, the filtering parameter selected according to the structure of the first initial filter is used as the first initial filtering parameter. Combining the examples in the above embodiments, the first initial filtering parameter can be the first-order filtering parameter and / or the third-order filtering parameter.
[0187] After that, in combination with the arrangement, the first target filtering parameter is selected from the initial filtering parameters.
[0188] Furthermore, the first target filtering parameter is selected from the first initial filtering parameters according to whether the sub-pixel is in the first preset position or the second preset position.
[0189] In another embodiment, another situation of constructing a target filter for each pixel point based on the display situation and the reference filtering parameters is provided. The steps include: obtaining a second original filter; obtaining a second initial filter according to the second original filter and the reference filtering parameters; and adjusting the second initial filter in combination with the display situation to obtain the target filter.
[0190] It should be noted that in this embodiment, the second original filter and the second initial filter are only used to distinguish two ways of constructing the target filter. Since the steps in this embodiment are similar to those in the previous embodiment, the detailed steps are not expanded in this embodiment.
[0191] Among them, the second original filter is as shown in formula (3). After obtaining the second original filter, by aggregating the first-order filtering parameter and the third-order filtering parameter in the set of reference filtering parameters, the second initial filter can be obtained.
[0192] Among them, since the first-order filtering parameter and the third-order filtering parameter each include two sets of parameters, when obtaining the second initial filtering parameter according to the reference filtering parameter and the original filter, it further includes: selecting the second initial filtering parameter from the reference filtering parameter according to the arrangement of each sub-pixel in each pixel; obtaining the second initial filter according to the original filter and the second initial filtering parameter.
[0193] That is to say, it is necessary to combine the actual arrangement of the sub-pixels, select a set of parameters from the two sets of parameters corresponding to the first-order filtering parameter and the third-order filtering parameter as the second initial filtering parameter, and then combine the second initial filtering parameter and the second original filter.
[0194] After obtaining the second initial filter, it is further adjusted in combination with the display situation to obtain the target filter.
[0195] Among them, the second original filter includes a first-order filter and a third-order filter; adjusting the second initial filter in combination with the display situation to obtain the target filter includes: when the display situation is edge-like, selecting the first-order filter as the second initial filter; when the display situation is serrated, selecting the third-order filter as the second initial filter; when the display situation is non-edge-like and non-serrated, selecting the first-order filter and the multi-order filter as the second initial filter.
[0196] Optionally, the coefficients of the first-order filter and the third-order filter in the second original filter are adjusted according to the display situation to obtain the target filter.
[0197] In one embodiment, after obtaining the target filter, the target filter is used to compensate the image to be processed.
[0198] Exemplarily, when using the first-order filter, the image to be processed can be compensated according to formula (5).
[0199] Formula (5)
[0200] Combined Figure 13 As shown, P L , P C , P R respectively represent the brightness values of the left, middle, and right pixel points. R L , R C and R R corresponding weights, that is, the weights obtained in the above embodiments.
[0201] Exemplarily, when using a third-order filter, the image to be processed can be compensated according to formula (6).
[0202] Formula (6)
[0203] Combined Figure 14 As shown, P LU , P U , P RU , …, represent the luminance values of pixel points in the upper left, upper, upper right, etc. directions. R LU , R U , R RU , …, corresponding weights.
[0204] The luminance value after sub-pixel compensation is as shown in formula (7)
[0205] Formula (7)
[0206] Wherein, As described in the above embodiments, it will not be repeated here.
[0207] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are sequentially shown according to the indication of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication 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 are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps in other steps.
[0208] Based on the same inventive concept, the embodiments of the present application also provide an image compensation device for implementing the above-mentioned image compensation method. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the following image compensation devices can refer to the limitations on the image compensation method in the above text, and will not be repeated here.
[0209] In an exemplary embodiment, as Figure 15 shown, an image compensation device is provided, including: an acquisition module 100, a parameter calculation module 200, a display determination module 300, a filter construction module 400 row and a compensation module 500, wherein:
[0210] An acquisition module 100 for acquiring an image to be processed.
[0211] A parameter calculation module 200 for calculating reference filtering parameters of each pixel according to the positional relationship between each pixel in the image to be processed and the corresponding reference pixel.
[0212] A display determination module 300 for determining the display situation of each pixel according to the brightness difference between each pixel and its adjacent pixels.
[0213] A filter construction module 400 for constructing a target filter for each pixel based on the display situation and the reference filtering parameters.
[0214] A compensation module 500 for adjusting the brightness value of each pixel through the target filter.
[0215] In one embodiment, the above-mentioned parameter calculation module 200 includes:
[0216] A reference pixel determination unit for determining the reference pixel corresponding to each pixel.
[0217] A distance calculation unit for calculating the geometric distances from the geometric centers of each sub-pixel in each pixel to the geometric centers of each pixel in the current pixel and the reference pixel respectively, to obtain the reference filtering parameters.
[0218] In one embodiment, the above-mentioned distance calculation unit includes:
[0219] A distance weighting sub-unit for calculating the weighted distance corresponding to each sub-pixel according to the geometric distances from the geometric centers of each sub-pixel in each pixel to the geometric centers of each pixel in the current pixel and the reference pixel.
[0220] A first parameter calculation sub-unit for obtaining the reference filtering parameters according to the proportion of the geometric distance from each sub-pixel in each pixel to the current pixel in each weighted distance.
[0221] In one embodiment, the above-mentioned distance calculation unit further includes:
[0222] A second parameter calculation sub-unit for calculating the distances from the geometric centers of each sub-pixel in each pixel at a first preset position and a second preset position to the geometric centers of each pixel in the current pixel and the reference pixel respectively when the arrangement of the sub-pixels in the pixel and the reference pixel is different, to obtain the reference filtering parameters.
[0223] In one embodiment, the above-mentioned display determination module 300 includes:
[0224] A difference calculation unit for calculating the luminance difference between each pixel point and its adjacent pixel points in a preset direction; the adjacent pixel points are determined according to a preset pixel window.
[0225] An encoding unit for encoding according to the luminance difference to obtain encoded information and obtaining a display situation based on the encoded information.
[0226] In one embodiment, the above encoding unit includes:
[0227] A difference calculation subunit for comparing the luminance difference with a preset threshold to obtain a difference situation.
[0228] An encoding subunit for encoding each pixel point and its corresponding adjacent pixel points according to the difference situation to obtain encoded information.
[0229] A comparison subunit for comparing the encoded information with preset encoded information to obtain a display situation.
[0230] In one embodiment, the above parameter calculation module 200 includes:
[0231] A first filter acquisition unit for acquiring a first original filter.
[0232] A first filter adjustment unit for adjusting the first original filter according to the display situation to obtain a first initial filter.
[0233] A first parameter selection unit for selecting a first target filtering parameter from reference filtering parameters based on the first initial filter.
[0234] A first filter construction unit for combining the first initial filter and the first target filtering parameter to obtain a target filter.
[0235] In one embodiment, the above filter transformation unit includes:
[0236] A first determination subunit for selecting a first-order filter as the first initial filter when the display situation is edge-like.
[0237] A second determination subunit for selecting a third-order filter as the first initial filter when the display situation is serrated.
[0238] A third determination subunit for selecting a hybrid filter as the first initial filter when the display situation is neither edge-like nor serrated.
[0239] In one embodiment, the above parameter selection unit includes:
[0240] A first initial parameter selection subunit for selecting initial filtering parameters from reference filtering parameters based on the first initial filter.
[0241] A first target parameter selection subunit, configured to select a first target filtering parameter from initial filtering parameters according to the arrangement of sub-pixels in each pixel point.
[0242] In one embodiment, the parameter calculation module 200 includes:
[0243] A second filter acquisition unit, configured to acquire a second original filter.
[0244] A second filter construction unit, configured to obtain a second initial filter according to the second original filter and a reference filtering parameter.
[0245] A second filter adjustment unit, configured to adjust the second initial filter in combination with the display situation to obtain a target filter.
[0246] In one embodiment, the second filter adjustment unit includes:
[0247] A fourth determination subunit, configured to select a first-order filter as the second initial filter when the display situation is edge-shaped.
[0248] A fifth determination subunit, configured to select a third-order filter as the second initial filter when the display situation is serrated.
[0249] A sixth determination subunit, configured to select a first-order filter and a multi-order filter as the second initial filter when the display situation is neither edge-shaped nor serrated.
[0250] In one embodiment, the second filter construction unit includes:
[0251] A second initial parameter selection subunit, configured to select a second initial filtering parameter from reference filtering parameters according to the arrangement of sub-pixels in each pixel point.
[0252] A first target parameter selection subunit, configured to select a first target filtering parameter from initial filtering parameters according to the arrangement of sub-pixels in each pixel point.
[0253] A second initial filter determination subunit, configured to obtain a second initial filter according to the original filter and the second initial filtering parameter.
[0254] Each module in the above image compensation device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0255] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structural diagram may be as shown in Figure 16 . The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. 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 image data to be processed. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements an image compensation method.
[0256] Those skilled in the art can understand that Figure 16 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0257] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps of the method in any one of the above embodiments.
[0258] In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the steps of the method in any one of the above embodiments.
[0259] In an embodiment, when the computer program is executed by the processor, it also implements the steps of the method in any one of the above embodiments.
[0260] 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 memory and volatile memory. 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, artificial intelligence (AI) processors, etc., without limitation.
[0261] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise 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 recorded in the present application.
[0262] 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 fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. An image compensation method, characterized in that: The method comprises: Get the image to be processed; Calculating reference filtering parameters of each pixel point according to the positional relationship between each pixel point in the image to be processed and the reference pixel point corresponding to each pixel point; Determining the display status of each pixel point according to the brightness difference between each pixel point and adjacent pixel points; Based on the display condition and the reference filtering parameters, constructing a target filter for each of the pixel points; The brightness value of each pixel is adjusted by the target filter.
2. The method according to claim 1, characterized in that The calculating the reference filtering parameters of each pixel point according to the positional relationship between each pixel point in the image to be processed and the reference pixel point corresponding to each pixel point includes: Determine the reference pixel point corresponding to each of the pixel points; The geometric distances from the geometric center of each sub-pixel in each pixel point to the current pixel point and the geometric center of each pixel point in the reference pixel point are calculated respectively to obtain the reference filtering parameters.
3. The method according to claim 2, characterized in that The step of respectively calculating the distances from the geometric center of each sub-pixel in each pixel point to the current pixel point and the geometric center of each pixel point in the reference pixel point to obtain the reference filtering parameters includes: Calculating a weighted distance corresponding to each of the sub-pixels according to a geometric distance from a geometric center of each sub-pixel in each of the pixel points to a current pixel point and a geometric center of each of the pixel points in the reference pixel points; The reference filtering parameters are obtained according to the proportion of the geometric distance from each sub-pixel in each pixel point to the current pixel point in each weighted distance.
4. The method according to claim 2, characterized in that: The step of respectively calculating the distances from the geometric center of each sub-pixel in each pixel point to the current pixel point and the geometric center of each pixel point in the reference pixel point to obtain the reference filtering parameters includes: When the arrangement of sub-pixels in the pixel point and the reference pixel point is different, the distances from each sub-pixel in each pixel point at the first preset position and the second preset position to the geometric centers of each pixel point in the current pixel point and the reference pixel point are calculated respectively to obtain the reference filtering parameters.
5. The method according to claim 1, characterized in that Determining the display status of each pixel point according to the brightness difference between each pixel point and an adjacent pixel point includes: Calculating the brightness difference between each pixel point and the adjacent pixel point in a preset direction; the adjacent pixel point is determined according to a preset pixel window; Encoding is performed according to the brightness difference value to obtain encoding information, and the display condition is obtained according to the encoding information.
6. The method according to claim 5, characterized in that The encoding is performed according to the brightness difference value to obtain encoding information, and the display condition is obtained according to the encoding information, including: Compare the brightness difference with a preset threshold to obtain a difference; Encode each pixel point and the adjacent pixel points corresponding to each pixel point according to the difference to obtain encoding information; The coding information is compared with preset coding information to obtain the display situation.
7. The method according to claim 1, characterized in that The constructing a target filter for each pixel point based on the display condition and the reference filtering parameter comprises: Obtaining a first original filter; In combination with the display situation, adjusting the first original filter to obtain a first initial filter; Based on the first initial filter, selecting first target filter parameters from the reference filter parameters; The target filter is obtained by combining the first initial filter and the first target filter parameter.
8. The method according to claim 7, characterized in that The first original filter includes a first-order filter and a third-order filter; the first original filter is adjusted in combination with the display condition to obtain the first original filter, including: When the display condition is edge-shaped, selecting the first-order filter as the first initial filter; When the display condition is sawtooth, selecting the third-order filter as the first initial filter; When the display condition is non-edge-shaped and non-jaggy, the first-order filter and the third-order filter are selected as the first initial filter.
9. The method according to claim 7, characterized in that: The selecting a first target filtering parameter from the reference filtering parameters based on the first initial filter comprises: selecting initial filter parameters from the reference filter parameters based on the structure of the first initial filter; The first target filtering parameter is selected from the initial filtering parameters according to the arrangement of each sub-pixel in each pixel point.
10. The method according to claim 1, characterized in that The constructing a target filter for each pixel point based on the display condition and the reference filtering parameter comprises: Obtaining a second original filter; Obtaining a second initial filter according to the second original filter and the reference filtering parameters; In combination with the display situation, the second initial filter is adjusted to obtain the target filter.
11. The method according to claim 10, characterized in that The second original filter includes a first-order filter and a third-order filter; the second initial filter is adjusted in combination with the display condition to obtain the target filter, including: When the display condition is edge-shaped, selecting the first-order filter as the second initial filter; When the display condition is sawtooth, selecting the third-order filter as the second initial filter; When the display condition is non-edge-shaped and non-jaggy, the first-order filter and the third-order filter are selected as the second initial filter.
12. The method according to claim 10, characterized in that The step of obtaining a second initial filter according to the second original filter and the reference filtering parameters comprises: Selecting a second initial filtering parameter from the reference filtering parameters according to the arrangement of each sub-pixel in each pixel point; The second initial filter is obtained according to the original filter and the second initial filter parameters.
13. An image compensation device, characterized in that: The device comprises: An acquisition module, used for acquiring an image to be processed; A parameter calculation module, used to calculate the reference filtering parameters of each pixel point according to the positional relationship between each pixel point in the image to be processed and the reference pixel point corresponding to each pixel point; A display determination module, used to determine the display status of each pixel point according to the brightness difference between each pixel point and adjacent pixels; A filter construction module, configured to construct a target filter for each pixel point based on the display condition and the reference filter parameters; A compensation module is used to adjust the brightness value of each pixel point through the target filter.
14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.
15. 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 12 are implemented.
16. 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 12 are implemented.