Image processing method and device and display device
By performing frequency domain data processing on the brightness image of the display panel and enhancing the frequency domain data in the twill area, the problem of brightness data changes in the twill area in the prior art is solved, effective brightness compensation and twill removal are achieved, and the display quality is improved.
Patent Information
- Application Number
- CN202410737212.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-03
AI Technical Summary
The existing technology is difficult to effectively remove diagonal lines on the display panel, resulting in a poor visual experience. Moreover, the brightness data of the diagonal area is changed during camera shooting, making it impossible to effectively calculate the brightness compensation value and unable to remove the diagonal lines.
By filtering the first frequency domain data set of the target color sub-pixel in the brightness image, determine the second frequency domain data set, zero the twill area data, enhance the twill area data, and combine with the preset enhancement coefficient to generate the fourth frequency domain data Set to enhance the frequency domain data in the twill area to facilitate subsequent removal of twill.
The frequency domain data of the diagonal area in the brightness image of the display panel is enhanced, avoiding changes in the brightness data, ensuring accurate calculation of the brightness compensation value, effectively removing the diagonal lines of the display panel, and improving the display quality.
Smart Images

Figure CN118587101A
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to an image processing method and device and a display device. Background Art
[0002] In recent years, organic light-emitting display panels have gradually become the mainstream products in the display field. Due to their advantages such as high image quality, power saving, thin body and wide range of applications, they are widely used in various consumer electronic products such as mobile phones, televisions, laptops, desktop computers, etc.
[0003] However, current display panels have diagonal lines, which results in a poor visual experience. Summary of the invention
[0004] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide an image processing method and device and a display device.
[0005] In a first aspect, an embodiment of the present application provides an image processing method for processing a brightness image of a display panel captured by a camera, wherein the brightness image includes a diagonal area, and the image processing method includes:
[0006] Filtering a first frequency domain data set of a target color sub-pixel in the brightness image to determine a second frequency domain data set corresponding to the first frequency domain data set, wherein the second frequency domain data set includes frequency domain data obtained by setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero;
[0007] Determine a third frequency domain data set of the target color sub-pixel based on the first frequency domain data set and a second frequency domain data set corresponding to the first frequency domain data set, wherein the third frequency domain data set includes frequency domain data obtained by setting the second frequency domain data of the target color sub-pixel in the area outside the diagonal area to zero, and frequency domain data obtained by restoring the first frequency domain data of the target color sub-pixel in the diagonal area;
[0008] Based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, a fourth frequency domain data set of the target color sub-pixel is determined, wherein the fourth frequency domain data set includes frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced.
[0009] In combination with the first aspect, in some implementations of the first aspect, the first frequency domain data set includes a plurality of sub-areas, each sub-area includes at least one first frequency domain data, and filtering the first frequency domain data set of a target color sub-pixel in the luminance image, before determining a second frequency domain data set corresponding to the first frequency domain data set, further includes:
[0010] Based on the first frequency domain data in the plurality of sub-areas, determining maximum frequency domain data of the first frequency domain data in each sub-area, and average frequency domain data of the plurality of maximum frequency domain data;
[0011] Based on the plurality of maximum frequency domain data and the average frequency domain data, determining the maximum frequency domain data that is greater than or equal to the average frequency domain data;
[0012] Determine the twill area with the maximum frequency domain data greater than or equal to the average frequency domain data as the center;
[0013] Filtering a first frequency domain data set of a target color sub-pixel in a brightness image to determine a second frequency domain data set corresponding to the first frequency domain data set includes:
[0014] The first frequency domain data of the target color sub-pixel in the diagonal area is set to zero, and the first frequency domain data of the target color sub-pixel in the area outside the diagonal area is multiplied by one to obtain a second frequency domain data set corresponding to the first frequency domain data set.
[0015] Preferably, the twill area is determined with the maximum frequency domain data greater than or equal to the average frequency domain data as the center, including: determining the twill area with the maximum frequency domain data greater than or equal to the average frequency domain data as the center and a preset filter radius as the radius.
[0016] Preferably, the first frequency domain data set, the second frequency domain data set, the third frequency domain data set and the fourth frequency domain data set are frequency spectrograms.
[0017] In combination with the first aspect, in certain implementations of the first aspect, a third frequency domain data set of a target color sub-pixel is determined based on a first frequency domain data set and a second frequency domain data set corresponding to the first frequency domain data set, including: subtracting first frequency domain data in the first frequency domain data set from second frequency domain data in the second frequency domain data set corresponding to the first frequency domain data, to obtain the third frequency domain data set of the target color sub-pixel.
[0018] In combination with the first aspect, in some implementations of the first aspect, determining a fourth frequency domain data set of a target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient, and the third frequency domain data set includes:
[0019] Multiplying the preset enhancement coefficient and the third frequency domain data set to obtain a frequency domain data set after the third frequency domain data set is enhanced;
[0020] The second frequency domain data set is added to the frequency domain data set after the enhancement of the third frequency domain data set to obtain a fourth frequency domain data set of the target color sub-pixel.
[0021] Preferably, the preset enhancement coefficient includes a positive number.
[0022] In combination with the first aspect, in some implementations of the first aspect, before filtering the first frequency domain data set of the target color sub-pixel in the luminance image, the method further includes:
[0023] Determine a first brightness data set of a target color sub-pixel based on a brightness image of the display panel;
[0024] Obtaining a first grayscale data set corresponding to the first brightness data set according to the first brightness data set of the target color sub-pixel;
[0025] A discrete cosine transform is performed on the first grayscale data set to obtain a first frequency domain data set of target color sub-pixels.
[0026] In combination with the first aspect, in some implementations of the first aspect, the target color sub-pixel includes any one of a red sub-pixel, a green sub-pixel, and a blue sub-pixel, the first brightness data set of the target color sub-pixel includes any one of a first brightness data set of the red sub-pixel, a first brightness data set of the green sub-pixel, and a first brightness data set of the blue sub-pixel, and the first grayscale data set includes any one of a first grayscale data set of the red sub-pixel, a first grayscale data set of the green sub-pixel, and a first grayscale data set of the blue sub-pixel; obtaining a first grayscale data set corresponding to the first brightness data set according to the first brightness data set of the target color sub-pixel includes:
[0027] grayscale processing is performed on the first brightness data set of the red sub-pixel to obtain a first grayscale data set of the red sub-pixel;
[0028] grayscale the first brightness data set of the green sub-pixel to obtain a first grayscale data set of the green sub-pixel;
[0029] Grayscale processing is performed on the first brightness data set of the blue sub-pixel to obtain a first grayscale data set of the blue sub-pixel.
[0030] In combination with the first aspect, in some implementations of the first aspect, after determining a fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient, and the third frequency domain data set, the method further includes:
[0031] Performing an inverse discrete cosine transform on the fourth frequency domain data set to obtain a second grayscale data set corresponding to the fourth frequency domain data set;
[0032] A second brightness data set corresponding to the second grayscale data set is obtained according to the second grayscale data set, wherein the second brightness data set includes brightness data after the brightness of the target color sub-pixel in the diagonal area is enhanced.
[0033] In combination with the first aspect, in some implementations of the first aspect, after obtaining a second brightness data set corresponding to the second grayscale data set according to the second grayscale data set, the method further includes:
[0034] Determining a compensation value of the target color sub-pixel brightness data in the diagonal area based on the second brightness data set;
[0035] Based on the compensation value of the brightness data of the target color sub-pixel in the diagonal area, the brightness of the target color sub-pixel in the diagonal area is controlled to remove the diagonal lines.
[0036] In a second aspect, an embodiment of the present application provides an image processing device for processing a brightness image of a display panel captured by a camera, wherein the brightness image includes a diagonal area, and the image processing device includes:
[0037] A filtering module, used to filter a first frequency domain data set of a target color sub-pixel in the brightness image, and determine a second frequency domain data set corresponding to the first frequency domain data set, wherein the second frequency domain data set includes frequency domain data obtained by setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero;
[0038] A first determination module is used to determine a third frequency domain data set of a target color sub-pixel based on the first frequency domain data set and a second frequency domain data set corresponding to the first frequency domain data set, wherein the third frequency domain data set includes frequency domain data obtained by setting the second frequency domain data of the target color sub-pixel in an area other than the diagonal area to zero, and frequency domain data obtained by restoring the first frequency domain data of the target color sub-pixel in the diagonal area;
[0039] The second determination module is used to determine a fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, wherein the fourth frequency domain data set includes frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced.
[0040] In a third aspect, an embodiment of the present application provides a display device, which includes a display panel and an image processing device as provided in the above embodiment, and the image processing device is communicatively connected to the display panel.
[0041] The image processing method provided by the embodiment of the present application includes: first, filtering a first frequency domain data set of a target color sub-pixel in a brightness image, determining a second frequency domain data set corresponding to the first frequency domain data set, thereby obtaining frequency domain data obtained after the first frequency domain data set of the target color sub-pixel in the diagonal area is set to zero; then, determining a third frequency domain data set of the target color sub-pixel based on the first frequency domain data set and a second frequency domain data set corresponding to the first frequency domain data set, thereby obtaining frequency domain data obtained after the second frequency domain data set of the target color sub-pixel in an area other than the diagonal area is set to zero, and frequency domain data obtained after restoring the first frequency domain data of the target color sub-pixel in the diagonal area; further determining a fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, a preset enhancement coefficient and the third frequency domain data set, thereby obtaining frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced, thereby enhancing the frequency domain data of the target color sub-pixel in the diagonal area in the brightness image of the display panel captured by the camera, so as to facilitate the subsequent removal of the diagonal lines of the display panel. The embodiments of the present application avoid the problem that the brightness data of the target color sub-pixel in the diagonal area of the brightness image of the display panel captured by the camera is changed, resulting in the brightness data of the target color sub-pixel in the diagonal area of the display panel being unable to be compensated or the compensation strength is insufficient, thereby making it impossible to remove the diagonal lines of the display panel. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0043] Figure 1 FIG. 1 is a flow chart of an image processing method provided in one embodiment of the present application.
[0044] Figure 2 Shown is a flowchart of an image processing method provided by another embodiment of the present application.
[0045] Figure 3 Shown is a flowchart of an image processing method provided by another embodiment of the present application.
[0046] Figure 4 The figure is a schematic diagram of a process of determining a fourth frequency domain data set of a target color sub-pixel based on a second frequency domain data set, a preset enhancement coefficient and a third frequency domain data set according to an embodiment of the present application.
[0047] Figure 5 Shown is a flowchart of an image processing method provided by another embodiment of the present application.
[0048] Figure 6 FIG. 1 is a flow chart of obtaining a first grayscale data set corresponding to a first brightness data set according to a first brightness data set of a target color sub-pixel according to an embodiment of the present application.
[0049] Figure 7 Shown is a flowchart of an image processing method provided by another embodiment of the present application.
[0050] Figure 8 Shown is a flowchart of an image processing method provided by another embodiment of the present application.
[0051] Fig. 9 FIG. 4 is a schematic diagram of the structure of an image processing device provided in one embodiment of the present application.
[0052] Fig.10 Shown is a schematic structural diagram of a display device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0053] The display device provided by the related technology includes a display panel and a diagonal stripe removal device. The display panel has diagonal stripes. A high-precision camera is usually used to capture a brightness image of the display panel. The diagonal stripe removal device obtains the brightness image and calculates the brightness compensation value of each sub-pixel in the display panel based on the brightness image. Brightness compensation is performed on sub-pixels that are too bright or too dark, thereby weakening the diagonal stripes of the display panel and improving the display quality.
[0054] High-precision cameras will produce moiré during the shooting process, and high-precision cameras will erase the moiré. However, in the process of erasing the moiré, the diagonal lines of the display panel will be weakened at the same time, causing the brightness data of the sub-pixels in the diagonal line area in the brightness image to be changed, so that the brightness compensation value of the sub-pixels in the diagonal line area cannot be effectively calculated, and the brightness compensation of the sub-pixels in the diagonal line area cannot be performed, or the compensation strength is insufficient, and the diagonal lines of the display panel cannot be removed.
[0055] In order to solve the above technical problems, the present application provides an image processing method, which enhances the frequency domain data of the target color sub-pixel in the diagonal area of the brightness image of the display panel captured by the camera, so as to facilitate the subsequent removal of the diagonal lines of the display panel.
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods and means well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0058] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0059] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0060] Figure 1 FIG. 1 is a flow chart of an image processing method provided by an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides an image processing method for enhancing frequency domain data of sub-pixels in a diagonal area of a brightness image of a display panel captured by a camera. The image processing method includes the following steps.
[0061] Step S110 , filtering a first frequency domain data set of a target color sub-pixel in the brightness image to determine a second frequency domain data set corresponding to the first frequency domain data set.
[0062] The second frequency domain data set includes frequency domain data obtained by setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero.
[0063] Step S120 , determining a third frequency domain data set of the target color sub-pixel based on the first frequency domain data set and a second frequency domain data set corresponding to the first frequency domain data set.
[0064] The third frequency domain data set includes frequency domain data obtained by setting the second frequency domain data of the target color sub-pixel in the area outside the diagonal area to zero, and frequency domain data obtained by restoring the first frequency domain data of the target color sub-pixel in the diagonal area.
[0065] Step S130: determining a fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set.
[0066] The fourth frequency domain data set includes frequency domain data obtained by enhancing the third frequency domain data of the target color sub-pixel in the diagonal area.
[0067] The image processing method provided by the embodiment of the present application filters the first frequency domain data set of the target color sub-pixel in the brightness image to determine the second frequency domain data set corresponding to the first frequency domain data set, thereby obtaining the frequency domain data obtained after the first frequency domain data of the target color sub-pixel in the diagonal area is set to zero; then, based on the first frequency domain data set and the second frequency domain data set corresponding to the first frequency domain data set, the third frequency domain data set of the target color sub-pixel is determined, thereby obtaining the frequency domain data obtained after the second frequency domain data of the target color sub-pixel in the area outside the diagonal area is set to zero, and the frequency domain data obtained after the first frequency domain data of the target color sub-pixel in the diagonal area is restored; further based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, the fourth frequency domain data set of the target color sub-pixel is determined, thereby obtaining the frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced, thereby enhancing the frequency domain data of the target color sub-pixel in the diagonal area in the brightness image of the display panel captured by the camera, so as to facilitate the subsequent removal of the diagonal lines of the display panel. The embodiments of the present application avoid the problem that the brightness data of the target color sub-pixel in the diagonal area of the brightness image of the display panel captured by the camera is changed, resulting in the brightness data of the target color sub-pixel in the diagonal area of the display panel being unable to be compensated or the compensation strength is insufficient, thereby making it impossible to remove the diagonal lines of the display panel.
[0068] Figure 2 FIG. 1 is a flow chart of an image processing method provided by another embodiment of the present application. The first frequency domain data set includes a plurality of sub-areas, each of which includes at least one first frequency domain data. Figure 2 As shown, before filtering the first frequency domain data set of the target color sub-pixel in the brightness image and determining the second frequency domain data set corresponding to the first frequency domain data set, the image processing method further includes the following steps.
[0069] Step S210: Based on the first frequency domain data in the multiple sub-areas, determine the maximum frequency domain data of the first frequency domain data in each sub-area and the average frequency domain data of the multiple maximum frequency domain data.
[0070] Step S220: Based on the plurality of maximum frequency domain data and the average frequency domain data, determine the maximum frequency domain data that is greater than or equal to the average frequency domain data.
[0071] Step S230 , determining a diagonal area with the maximum frequency domain data greater than or equal to the average frequency domain data as the center.
[0072] The first frequency domain data set of the target color sub-pixel in the brightness image is filtered to determine the second frequency domain data set corresponding to the first frequency domain data set, including: setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero, multiplying the first frequency domain data of the target color sub-pixel in the area outside the diagonal area by one, and obtaining the second frequency domain data set corresponding to the first frequency domain data set.
[0073] Preferably, the twill area is determined with the maximum frequency domain data greater than or equal to the average frequency domain data as the center, including: determining the twill area with the maximum frequency domain data greater than or equal to the average frequency domain data as the center and a preset filter radius as the radius.
[0074] The preset filter radii of sub-pixels of different colors are different, and the preset filter radii of different sub-pixels of the same color are the same.
[0075] Taking the filter function as B(x, y) as an example,
[0076]
[0077] Among them, (a i , b i ) is the center of the circle (i.e., the frequency domain coordinate of the maximum frequency domain data that is greater than or equal to the average frequency domain data), r i is the preset filter radius, and (x, y) is the frequency domain coordinate of the target color sub-pixel.
[0078] The filter function B(x, y) is used to multiply the first frequency domain data of the target color sub-pixel to obtain a second frequency domain data set corresponding to the first frequency domain data set. Specifically, the area within the radius is the twill area, and the area outside the radius is the area outside the twill area. The first frequency domain data of the target color sub-pixel in the twill area is multiplied by zero, and the first frequency domain data of the target color sub-pixel in the area outside the twill area is multiplied by one, so as to obtain the second frequency domain data set corresponding to the first frequency domain data set.
[0079] The embodiment of the present application obtains a second frequency domain data set corresponding to the first frequency domain data set by filtering the first frequency domain data set of the target color sub-pixel in the brightness image, that is, the second frequency domain data of the target color sub-pixel in the diagonal area is zero, and the second frequency domain data of the target color sub-pixel in the area outside the diagonal area is equal to the first frequency domain data of the corresponding sub-pixel in the area outside the diagonal area.
[0080] Preferably, the first frequency domain data set, the second frequency domain data set, the third frequency domain data set and the fourth frequency domain data set are frequency spectrograms.
[0081] Figure 3 FIG. 2 is a flow chart of an image processing method provided by another embodiment of the present application. Figure 3 As shown, based on the first frequency domain data set and the second frequency domain data set corresponding to the first frequency domain data set, determining the third frequency domain data set of the target color sub-pixel includes: step S320, subtracting the first frequency domain data in the first frequency domain data set from the second frequency domain data in the second frequency domain data set corresponding to the first frequency domain data, to obtain the third frequency domain data set of the target color sub-pixel.
[0082] The embodiment of the present application obtains a third frequency domain data set of the target color sub-pixel by subtracting the first frequency domain data in the first frequency domain data set from the second frequency domain data in the second frequency domain data set corresponding to the first frequency domain data, that is, the third frequency domain data of the target color sub-pixel in the area outside the diagonal area is zero, and the third frequency domain data of the target color sub-pixel in the diagonal area is equal to the first frequency domain data of the target color sub-pixel in the diagonal area.
[0083] Figure 4 FIG. 1 is a flow chart of determining a fourth frequency domain data set of a target color sub-pixel based on a second frequency domain data set, a preset enhancement coefficient, and a third frequency domain data set according to an embodiment of the present application. Figure 4 As shown, based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, determining the fourth frequency domain data set of the target color sub-pixel includes the following steps.
[0084] Step S410: multiply the preset enhancement coefficient and the third frequency domain data set to obtain a frequency domain data set after the third frequency domain data set is enhanced.
[0085] Step S420: Add the second frequency domain data set and the frequency domain data set obtained after the enhancement of the third frequency domain data set to obtain a fourth frequency domain data set of the target color sub-pixel.
[0086] Preferably, the preset enhancement coefficient includes a positive number.
[0087] The embodiment of the present application obtains a fourth frequency domain data set of the target color sub-pixel, that is, the fourth frequency domain data of the target color sub-pixel in the area outside the diagonal area is equal to the first frequency domain data of the target color sub-pixel in the area outside the diagonal area, and the fourth frequency domain data of the target color sub-pixel in the diagonal area is equal to several times the first frequency domain data of the target color sub-pixel in the diagonal area, thereby enhancing the frequency domain data of the target color sub-pixel in the diagonal area in the brightness image of the display panel captured by the camera, so as to facilitate the subsequent enhanced brightness data of the target color sub-pixel in the diagonal area, thereby facilitating the effective calculation of the brightness compensation value of the target color sub-pixel in the diagonal area, and then removing the diagonal lines of the display panel.
[0088] Figure 5 FIG. 2 is a flow chart of an image processing method provided by another embodiment of the present application. Figure 5 As shown, before filtering the first frequency domain data set of the target color sub-pixel in the brightness image, the image processing method further includes the following steps.
[0089] Step S510 , determining a first brightness data set of a target color sub-pixel based on a brightness image of a display panel.
[0090] Step S520 , obtaining a first grayscale data set corresponding to the first brightness data set according to the first brightness data set of the target color sub-pixel.
[0091] In some embodiments, the first grayscale data set is a matrix array, as shown in Table 1 below.
[0092] Table 1
[0093] <![CDATA[a 11 ]]> <![CDATA[a 12 ]]> <![CDATA[a 13 ]]> <![CDATA[a 14 ]]> <![CDATA[a 15 ]]> <![CDATA[a 16 ]]> <![CDATA[a 17 ]]> <![CDATA[a 18 ]]> <![CDATA[a 21 ]]> <![CDATA[a 22 ]]> <![CDATA[a 23 ]]> <![CDATA[a 24 ]]> <![CDATA[a 25 ]]> <![CDATA[a 26 ]]> <![CDATA[a 27 ]]> <![CDATA[a 28 ]]> <![CDATA[a 31 ]]> <![CDATA[a 32 ]]> <![CDATA[a 33 ]]> <![CDATA[a 34 ]]> <![CDATA[a 35 ]]> <![CDATA[a 36 ]]> <![CDATA[a 37 ]]> <![CDATA[a 38 ]]> <![CDATA[a 41 ]]> <![CDATA[a 42 ]]> <![CDATA[a 43 ]]> <![CDATA[a 44 ]]> <![CDATA[a 45 ]]> <![CDATA[a 46 ]]> <![CDATA[a 47 ]]> <![CDATA[a 48 ]]> <![CDATA[a 51 ]]> <![CDATA[a 52 ]]> <![CDATA[a 53 ]]> <![CDATA[a 54 ]]> <![CDATA[a 55 ]]> <![CDATA[a 56 ]]> <![CDATA[a 57 ]]> <![CDATA[a 58 ]]> <![CDATA[a 61 ]]> <![CDATA[a 62 ]]> <![CDATA[a 63 ]]> <![CDATA[a 64 ]]> <![CDATA[a 65 ]]> <![CDATA[a 66 ]]> <![CDATA[a 67 ]]> <![CDATA[a 68 ]]> <![CDATA[a 71 ]]> <![CDATA[a 72 ]]> <![CDATA[a 73 ]]> <![CDATA[a 74 ]]> <![CDATA[a 75 ]]> <![CDATA[a 76 ]]> <![CDATA[a 77 ]]> <![CDATA[a 78 ]]> <![CDATA[a 81 ]]> <![CDATA[a 82 ]]> <![CDATA[a 83 ]]> <![CDATA[a 84 ]]> <![CDATA[a 85 ]]> <![CDATA[a 86 ]]> <![CDATA[a 87 ]]> <![CDATA[a 88 ]]>
[0094] Step S530 , performing discrete cosine transform on the first grayscale data set to obtain a first frequency domain data set of target color sub-pixels.
[0095] In some embodiments, the first frequency domain data set is also a matrix array, as shown in Table 2 below.
[0096] Table 2
[0097] <![CDATA[b 11 ]]> <![CDATA[b 12 ]]> <![CDATA[b 13 ]]> <![CDATA[b 14 ]]> <![CDATA[b 15 ]]> <![CDATA[b 16 ]]> <![CDATA[b 17 ]]> <![CDATA[b 18 ]]> <![CDATA[b 21 ]]> <![CDATA[b 22 ]]> <![CDATA[b 23 ]]> <![CDATA[b 24 ]]> <![CDATA[b 25 ]]> <![CDATA[b 26 ]]> <![CDATA[b 27 ]]> <![CDATA[b 28 ]]> <![CDATA[b 31 ]]> <![CDATA[b 32 ]]> <![CDATA[b 33 ]]> <![CDATA[b 34 ]]> <![CDATA[b 35 ]]> <![CDATA[b 36 ]]> <![CDATA[b 37 ]]> <![CDATA[b 38 ]]> <![CDATA[b 41 ]]> <![CDATA[b 42 ]]> <![CDATA[b 43 ]]> <![CDATA[b 44 ]]> <![CDATA[b 45 ]]> <![CDATA[b 46 ]]> <![CDATA[b 47 ]]> <![CDATA[b 48 ]]> <![CDATA[b 51 ]]> <![CDATA[b 52 ]]> <![CDATA[b 53 ]]> <![CDATA[b 54 ]]> <![CDATA[b 55 ]]> <![CDATA[b 56 ]]> <![CDATA[b 57 ]]> <![CDATA[b 58 ]]> <![CDATA[b 61 ]]> <![CDATA[b 62 ]]> <![CDATA[b 63 ]]> <![CDATA[b 64 ]]> <![CDATA[b 65 ]]> <![CDATA[b 66 ]]> <![CDATA[b 67 ]]> <![CDATA[b 68 ]]> <![CDATA[b 71 ]]> <![CDATA[b 72 ]]> <![CDATA[b 73 ]]> <![CDATA[b 74 ]]> <![CDATA[b 75 ]]> <![CDATA[b 76 ]]> <![CDATA[b 77 ]]> <![CDATA[b 78 ]]> <![CDATA[b 81 ]]> <![CDATA[b 82 ]]> <![CDATA[b 83 ]]> <![CDATA[b 84 ]]> <![CDATA[b 85 ]]> <![CDATA[b 86 ]]> <![CDATA[b 87 ]]> <![CDATA[b 88 ]]>
[0098] An embodiment of the present application provides a specific method for obtaining a first frequency domain data set of a target color sub-pixel from a brightness image, thereby converting the first brightness data of the target color sub-pixel into its corresponding first frequency domain data, and then obtaining the enhanced frequency domain data of the target color sub-pixel in the diagonal area of the brightness image through the first frequency domain data of the target color sub-pixel.
[0099] In some implementations, the target color sub-pixel includes any one of a red sub-pixel, a green sub-pixel, and a blue sub-pixel, the first brightness data set of the target color sub-pixel includes any one of a first brightness data set of the red sub-pixel, a first brightness data set of the green sub-pixel, and a first brightness data set of the blue sub-pixel, and the first grayscale data set includes any one of a first grayscale data set of the red sub-pixel, a first grayscale data set of the green sub-pixel, and a first grayscale data set of the blue sub-pixel.
[0100] Figure 6 FIG. 1 is a flow chart of obtaining a first grayscale data set corresponding to a first brightness data set according to a first brightness data set of a target color sub-pixel according to an embodiment of the present application. Figure 6 As shown, obtaining a first grayscale data set corresponding to the first brightness data set according to a first brightness data set of a target color sub-pixel includes the following steps.
[0101] Step S610 , grayscale processing is performed on a first brightness data set of red sub-pixels to obtain a first grayscale data set of red sub-pixels.
[0102] Step S620 , gray-scale processing is performed on the first brightness data set of the green sub-pixel to obtain a first gray-scale data set of the green sub-pixel.
[0103] Step S630 , gray-scale processing is performed on the first brightness data set of the blue sub-pixel to obtain a first gray-scale data set of the blue sub-pixel.
[0104] Since the frequency domain characteristics of the red sub-pixel, the green sub-pixel and the blue sub-pixel are different, the embodiment of the present application improves the accuracy of the fourth frequency domain data set of the target color sub-pixel obtained subsequently by separately determining the first grayscale data set of the red sub-pixel, the green sub-pixel and the blue sub-pixel.
[0105] Specifically, based on the first grayscale data set of the red sub-pixel, the first frequency domain data set of the red sub-pixel is obtained, and then the fourth frequency domain data set of the red sub-pixel is obtained as the frequency domain data of the red sub-pixel after the diagonal area is enhanced. Based on the first grayscale data set of the green sub-pixel, the first frequency domain data set of the green sub-pixel is obtained, and then the fourth frequency domain data set of the green sub-pixel is obtained, as the frequency domain data of the green sub-pixel after the diagonal area is enhanced. Based on the first grayscale data set of the blue sub-pixel, the first frequency domain data set of the blue sub-pixel is obtained, and then the fourth frequency domain data set of the blue sub-pixel is obtained, as the frequency domain data of the blue sub-pixel after the diagonal area is enhanced.
[0106] Figure 7 FIG. 2 is a flow chart of an image processing method provided by another embodiment of the present application. Figure 7 As shown, after determining the fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, the image processing method further includes the following steps.
[0107] Step S710: performing an inverse discrete cosine transform on the fourth frequency domain data set to obtain a second grayscale data set corresponding to the fourth frequency domain data set.
[0108] Step S720 , obtaining a second brightness data set corresponding to the second grayscale data set according to the second grayscale data set.
[0109] The second brightness data set includes brightness data after the brightness of the target color sub-pixel in the diagonal area is enhanced.
[0110] The embodiment of the present application obtains a second grayscale data set corresponding to the fourth frequency domain data set by performing an inverse discrete cosine transform on the fourth frequency domain data set, and further obtains a second brightness data set, i.e., brightness data after the brightness of the target color sub-pixel in the diagonal area is enhanced, thereby avoiding the problem that the brightness data of the target color sub-pixel in the diagonal area in the brightness image is changed, thereby failing to effectively calculate the brightness compensation value of the target color sub-pixel in the diagonal area.
[0111] Figure 8 FIG. 2 is a flow chart of an image processing method provided by another embodiment of the present application. Figure 8 As shown, after obtaining the second brightness data set corresponding to the second grayscale data set according to the second grayscale data set, the image processing method further includes the following steps.
[0112] Step S810 , determining a compensation value of the target color sub-pixel brightness data in the diagonal area based on the second brightness data set.
[0113] Step S820 , based on the compensation value of the brightness data of the target color sub-pixel in the diagonal area, the brightness of the target color sub-pixel in the diagonal area is controlled to remove the diagonal lines.
[0114] The embodiment of the present application obtains the compensation value of the brightness data of the target color sub-pixel in the diagonal area through the second brightness data set, and controls the brightness of the target color sub-pixel in the diagonal area, performs brightness compensation on the overly bright or overly dark sub-pixels, reduces the brightness of the overly bright sub-pixels, and increases the brightness of the overly dark sub-pixels, thereby removing the diagonal lines of the display panel and improving the display quality.
[0115] Fig. 9 FIG. 1 is a schematic diagram of the structure of an image processing device provided by an embodiment of the present application. Fig. 9 As shown, an embodiment of the present application provides an image processing device for processing a brightness image of a display panel captured by a camera, wherein the brightness image includes a diagonal area, and the image processing device includes:
[0116] A filtering module 910 is used to filter a first frequency domain data set of a target color sub-pixel in the brightness image to determine a second frequency domain data set corresponding to the first frequency domain data set, wherein the second frequency domain data set includes frequency domain data obtained by setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero;
[0117] A first determining module 920 is configured to determine a third frequency domain data set of a target color sub-pixel based on the first frequency domain data set and a second frequency domain data set corresponding to the first frequency domain data set, wherein the third frequency domain data set includes frequency domain data obtained by setting the second frequency domain data of the target color sub-pixel in an area other than the diagonal area to zero, and frequency domain data obtained by restoring the first frequency domain data of the target color sub-pixel in the diagonal area;
[0118] The second determination module 930 is used to determine a fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, wherein the fourth frequency domain data set includes frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced.
[0119] The image processing device provided in the embodiment of the present application corresponds to the image processing method provided in the above embodiment, and its technical principles and the effects produced are similar, which will not be repeated here.
[0120] Fig.10 FIG. 1 is a schematic diagram of the structure of a display device provided by an embodiment of the present application. Fig.10 As shown, an embodiment of the present application provides a display device 10, which includes a display panel and an image processing device as provided in the above embodiment, and the image processing device is communicatively connected with the display panel.
[0121] It is understandable that the display device 10 can be any product or component with a display function, such as a mobile terminal, a tablet computer, a computer monitor, a television, a wearable device, or an information query machine. The display device 10 includes an image processing device as in the above embodiment of the present application, and its technical principles and effects are similar, which will not be repeated here.
[0122] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0123] It should also be noted that, in the present application, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present application. Although multiple exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize some variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. An image processing method, characterized in that: For processing a brightness image of a display panel captured by a camera, the brightness image includes a diagonal area, and the image processing method includes: Filtering a first frequency domain data set of a target color sub-pixel in the brightness image to determine a second frequency domain data set corresponding to the first frequency domain data set, wherein the second frequency domain data set includes frequency domain data obtained by setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero; Determine a third frequency domain data set of the target color sub-pixel based on the first frequency domain data set and the second frequency domain data set corresponding to the first frequency domain data set, wherein the third frequency domain data set includes frequency domain data obtained by setting the second frequency domain data of the target color sub-pixel in the area outside the diagonal area to zero, and frequency domain data obtained by restoring the first frequency domain data of the target color sub-pixel in the diagonal area; Based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, a fourth frequency domain data set of the target color sub-pixel is determined, wherein the fourth frequency domain data set includes frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced.
2. The image processing method according to claim 1, characterized in that: The first frequency domain data set includes a plurality of sub-areas, each of which includes at least one first frequency domain data, and before filtering the first frequency domain data set of the target color sub-pixel in the brightness image and determining the second frequency domain data set corresponding to the first frequency domain data set, the method further includes: Based on the first frequency domain data in the plurality of sub-areas, determining maximum frequency domain data of the first frequency domain data in each of the sub-areas, and average frequency domain data of the plurality of maximum frequency domain data; Based on the plurality of the maximum frequency domain data and the average frequency domain data, determining the maximum frequency domain data that is greater than or equal to the average frequency domain data; Determine the diagonal area with the maximum frequency domain data greater than or equal to the average frequency domain data as the center; The filtering of the first frequency domain data set of the target color sub-pixel in the brightness image to determine the second frequency domain data set corresponding to the first frequency domain data set includes: The first frequency domain data of the target color sub-pixel in the diagonal area is set to zero, and the first frequency domain data of the target color sub-pixel in the area outside the diagonal area is multiplied by one to obtain a second frequency domain data set corresponding to the first frequency domain data set; Preferably, determining the twill area with the maximum frequency domain data greater than or equal to the average frequency domain data as the center includes: Taking the maximum frequency domain data greater than or equal to the average frequency domain data as the center of the circle and the preset filter radius as the radius, determining the twill area; Preferably, the first frequency domain data set, the second frequency domain data set, the third frequency domain data set and the fourth frequency domain data set are frequency spectrograms.
3. The image processing method according to claim 1, characterized in that: The determining, based on the first frequency domain data set and the second frequency domain data set corresponding to the first frequency domain data set, a third frequency domain data set of the target color sub-pixel comprises: The first frequency domain data in the first frequency domain data set is subtracted from the second frequency domain data in the second frequency domain data set corresponding to the first frequency domain data, so as to obtain the third frequency domain data set of the target color sub-pixel.
4. The image processing method according to claim 1, characterized in that: The determining, based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, a fourth frequency domain data set of the target color sub-pixel comprises: Multiplying the preset enhancement coefficient and the third frequency domain data set to obtain a frequency domain data set after the third frequency domain data set is enhanced; Adding the second frequency domain data set to the frequency domain data set after the enhancement of the third frequency domain data set to obtain a fourth frequency domain data set of the target color sub-pixel; Preferably, the preset enhancement coefficient includes a positive number.
5. The image processing method according to claim 1, characterized in that: Before filtering the first frequency domain data set of the target color sub-pixel in the brightness image, the method further includes: Determining a first brightness data set of the target color sub-pixel based on the brightness image of the display panel; Obtaining a first grayscale data set corresponding to the first brightness data set according to the first brightness data set of the target color sub-pixel; A discrete cosine transform is performed on the first grayscale data set to obtain a first frequency domain data set of the target color sub-pixel.
6. The image processing method according to claim 5, characterized in that: The target color sub-pixel includes any one of a red sub-pixel, a green sub-pixel, and a blue sub-pixel; the first brightness data set of the target color sub-pixel includes any one of a first brightness data set of the red sub-pixel, a first brightness data set of the green sub-pixel, and a first brightness data set of the blue sub-pixel; the first grayscale data set includes any one of a first grayscale data set of the red sub-pixel, a first grayscale data set of the green sub-pixel, and a first grayscale data set of the blue sub-pixel; obtaining a first grayscale data set corresponding to the first brightness data set according to the first brightness data set of the target color sub-pixel includes: Performing grayscale processing on the first brightness data set of the red sub-pixel to obtain a first grayscale data set of the red sub-pixel; Performing grayscale processing on the first brightness data set of the green sub-pixel to obtain a first grayscale data set of the green sub-pixel; Grayscale processing is performed on the first brightness data set of the blue sub-pixel to obtain a first grayscale data set of the blue sub-pixel.
7. The image processing method according to any one of claims 1 to 6, characterized in that: After determining the fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, the preset enhancement coefficient and the third frequency domain data set, the method further includes: Performing an inverse discrete cosine transform on the fourth frequency domain data set to obtain a second grayscale data set corresponding to the fourth frequency domain data set; A second brightness data set corresponding to the second grayscale data set is obtained according to the second grayscale data set, wherein the second brightness data set includes brightness data after the brightness of the target color sub-pixel in the diagonal area is enhanced.
8. The image processing method according to claim 7, characterized in that: After obtaining a second brightness data set corresponding to the second grayscale data set according to the second grayscale data set, the method further includes: Determining a compensation value of the target color sub-pixel brightness data in the diagonal area based on the second brightness data set; Based on the compensation value of the brightness data of the target color sub-pixel in the diagonal area, the brightness of the target color sub-pixel in the diagonal area is controlled to remove the diagonal lines.
9. An image processing device, characterized in that: For processing a brightness image of a display panel captured by a camera, the brightness image including a diagonal area, the image processing device comprising: a filtering module, configured to filter a first frequency domain data set of a target color sub-pixel in the brightness image to determine a second frequency domain data set corresponding to the first frequency domain data set, wherein the second frequency domain data set includes frequency domain data obtained by setting the first frequency domain data of the target color sub-pixel in the diagonal area to zero; a first determining module, configured to determine a third frequency domain data set of the target color sub-pixel based on the first frequency domain data set and the second frequency domain data set corresponding to the first frequency domain data set, wherein the third frequency domain data set includes frequency domain data obtained by setting the second frequency domain data of the target color sub-pixel in an area other than the diagonal area to zero, and frequency domain data obtained by restoring the first frequency domain data of the target color sub-pixel in the diagonal area; The second determination module is used to determine a fourth frequency domain data set of the target color sub-pixel based on the second frequency domain data set, a preset enhancement coefficient and the third frequency domain data set, wherein the fourth frequency domain data set includes frequency domain data after the third frequency domain data of the target color sub-pixel in the diagonal area is enhanced.
10. A display device, characterized in that: include: Display panel; and The image processing device according to claim 9 is communicatively connected to the display panel.
Citation Information
Patent Citations
Frequency-domain analysis-based method of removing image moire
CN108389164A
Automatic moire pattern removing method and device
CN115908184A
Evaluation device and method of display device
KR1020150005847A
Method of compensating for an excimer laser annealing MURA and display device employing the same
US20170206821A1
