Method, device, equipment and medium for improving display PPI
By performing brightness conversion and sub-pixel rendering processing on the grayscale image data of the new display, the color cast and disconnection problems caused by missing pixels are solved, and the display quality and readability are significantly improved.
Patent Information
- Application Number
- CN202111640743.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In some pixel arrangements of new displays, the lack of R sub-pixels or B sub-pixels can cause color casts or disconnections, resulting in poor display quality.
By converting the input grayscale image data into brightness data, the missing sub-pixels are rendered with sub-pixel rendering processing of adjacent similar pixels on the right, using the weighted brightness of N similar pixels to replace the missing pixels, and finally the processed The brightness data is converted into grayscale image data and output.
It achieves the avoidance of color cast and line breakage under high PPI, maintains the sharpness of lines, and smoothes the transition, significantly improving the display quality and readability.
Smart Images

Figure CN114420027B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image display, and in particular to a method, device, equipment and medium for improving display PPI. Background Art
[0002] With the development of display technology, various types of displays and image processing technologies have been continuously developed and iterated, and various mature LED display technologies have emerged so far. Compared with traditional LCD displays (Liquid Crystal Display), in this field, new displays such as OLED (Organic Light Emitting Diode / Organic Electroluminesence Display), Mini-LED, Micro-LED, QLED (Quantum Dot Light Emitting Diodes) have the advantages of higher contrast, lower power consumption and flexibility. As the requirements for image quality of terminal products increase, OLED will develop towards high PPI (pixels per inch, the number of pixels per inch of display) to meet the demand. However, a higher PPI means that the pixels of evaporation or printing are denser, which poses a great challenge to the process technology.
[0003] However, during the implementation process, the inventors found that for the above-mentioned new display, in certain pixel arrangements, if the corresponding image data is not processed, the display image will produce color cast or even "disconnection" due to the missing R sub-pixels or B sub-pixels, resulting in a technical problem of poor display quality. Summary of the invention
[0004] Based on this, it is necessary to provide a method for improving display PPI, a device for improving display PPI, an image processing device and a computer-readable storage medium to address the above technical problems, which can greatly improve the display quality of new displays.
[0005] A method for improving display PPI, the method comprising:
[0006] Convert the input grayscale image data into brightness data;
[0007] For a target pixel with missing sub-pixels in brightness data, sub-pixel rendering is performed using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*;
[0008] Converting the brightness data processed by sub-pixel rendering into processed grayscale image data;
[0009] The processed grayscale image data is output to the screen for display.
[0010] In one of the embodiments, the brightness of the target pixel after the sub-pixel rendering process is equal to the sum of the weighted brightness of N similar pixels.
[0011] In one embodiment, N=2, and the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0012] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j
[0013] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a and b are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the (2 * i-1,2 * j) pixels of the same type.
[0014] In one embodiment, N=3, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0015] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R 2*i-1,2*j+1
[0016] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a, b and c are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the (2 * i-1,2 * j) pixels of the same type, R 2*i-1,2*j+1 Indicates the (2 * i-1,2 * j+1) pixels of the same type.
[0017] In one embodiment, N=3, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0018] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R2*i-1,2*j+1
[0019] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a, b and c are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the (2 * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the (2 * i-1,2 * j) pixels of the same type, R 2*i-1,2*j+1 Indicates the (2 * i-1,2 * j+1) pixels of the same type, i=..., j=...;
[0020] Before the step of converting the brightness data processed by sub-pixel rendering into processed grayscale image data, the step further includes:
[0021] For the G pixels in the same group as the target pixel, sub-pixel rendering is performed using the N G pixels adjacent to the right of the G pixel; N ≥ 2 and N ∈ N*.
[0022] In one embodiment, the following brightness processing method is used to obtain the G pixel after sub-pixel rendering:
[0023] G′ i,j =d*G 2*i-1,2*j-1 +e*G 2*i-1,2*j
[0024] Among them, G′ i,j represents the (i, j)th G pixel after sub-pixel rendering, d and e are weight coefficients and their sum is 1, G 2*i-1,2*j-1 The (2nd * i-1,2 * j-1) G pixels, G 2*i-1,2*j The (2nd * i-1,2 * j) G pixels, i=..., j=...
[0025] In one embodiment, the pixel arrangement of the grayscale image data includes an RG pixel arrangement and a BG pixel arrangement.
[0026] A device for improving display PPI, the device comprising:
[0027] A brightness conversion module, used for converting input grayscale image data into brightness data;
[0028] A pixel rendering module is used to perform sub-pixel rendering processing on a target pixel whose luminance data lacks a sub-pixel by using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*;
[0029] A grayscale conversion module, used to convert the brightness data processed by sub-pixel rendering into processed grayscale image data;
[0030] The data output module is used to output the processed grayscale image data to the screen for display.
[0031] An image processing device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0032] Convert the input grayscale image data into brightness data;
[0033] For a target pixel with missing sub-pixels in brightness data, sub-pixel rendering is performed using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*;
[0034] Converting the brightness data processed by sub-pixel rendering into processed grayscale image data;
[0035] The processed grayscale image data is output to the screen for display.
[0036] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0037] Convert the input grayscale image data into brightness data;
[0038] For a target pixel with missing sub-pixels in brightness data, sub-pixel rendering is performed using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*;
[0039] Converting the brightness data processed by sub-pixel rendering into processed grayscale image data;
[0040] The processed grayscale image data is output to the screen for display.
[0041] One of the above technical solutions has the following advantages and beneficial effects:
[0042] The above-mentioned method, device, equipment and medium for improving display PPI improves display accuracy by first converting the input grayscale image data into brightness data, and then performing sub-pixel rendering processing on the converted brightness data so that pixels with missing sub-pixels can be displayed by borrowing adjacent pixels. Finally, the brightness data after sub-pixel rendering processing is converted into processed grayscale image data and output to the screen for display, so as to achieve the effect of displaying a higher resolution image with a small number of sub-pixels, while avoiding the color cast or line break caused by the missing sub-pixels. When displaying, the sharpness of the lines can be maintained while achieving smooth transition, which increases the readability of pictures such as text and graphics in daily applications, and achieves the purpose of greatly improving the display quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 Schematic diagrams of color cast and line breakage under a pixel arrangement in an embodiment of the present application; wherein (a) is a schematic diagram of a pixel arrangement, (b) is a schematic diagram showing a white line color cast, and (c) is a schematic diagram showing a red oblique line "breakage";
[0044] Figure 2 A flow chart of a method for improving display PPI in an embodiment of the present application.
[0045] Figure 3 This is a data flow diagram of a method for improving display PPI in an embodiment of the present application.
[0046] Figure 4 This is a schematic diagram comparing the first set of processing results of a ray diagram with a thickness of one pixel in an embodiment of the present application.
[0047] Figure 5 Schematic diagram showing the comparison of processing results of a white circle with a thickness of one pixel in the embodiment of the present application.
[0048] Figure 6 This is a schematic diagram for comparing the second set of processing results of a ray diagram with a thickness of one pixel in an embodiment of the present application.
[0049] Figure 7 This is a schematic diagram comparing the first set of processing results of the text image in the embodiment of the present application.
[0050] Figure 8 Another flowchart of the method for improving display PPI in an embodiment of the present application is shown.
[0051] Fig. 9 This is a schematic diagram comparing the third set of processing results of a ray diagram with a thickness of one pixel in an embodiment of the present application.
[0052] Fig.10 This is a schematic diagram comparing the second set of processing results of the text image in the embodiment of the present application.
[0053] Fig.11 2 is a block diagram of the module structure of the device for improving the display PPI in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.
[0055] The method for improving display PPI provided in this application can be applied to all AM drive (Active Matrix) displays, including but not limited to OLED, Mini-LED, Micro-LED and QLED display applications. Figure 1 The diagram shows the color cast and line break phenomenon under one of the pixel arrangement modes, wherein (a) is a schematic diagram of the pixel arrangement mode, (b) is a schematic diagram showing the color cast of the white line, and (c) is a schematic diagram showing the “broken line” of the red oblique line.
[0056] like Figure 1 The pixel arrangement shown is composed of RG pixels and BG pixels. If the corresponding algorithm is not processed, the color cast will occur due to the loss of R sub-pixels or B sub-pixels when displaying the picture. It can be foreseen that there will be a "broken line" phenomenon when displaying red or blue pure color lines, and the overall display quality will be significantly deteriorated. Therefore, image data processing is required to solve this color cast problem and improve the display quality.
[0057] PPI is the unit of image resolution, which indicates the number of pixels per inch of the display screen. The higher the display PPI, the better the display quality of the display. This application provides a method for improving the display PPI in response to the above-mentioned technical problem of poor display quality in new displays. By performing sub-pixel rendering (SPR: Subpixel Rendering) on the original image data, pixels with missing sub-pixels due to the pixel arrangement method can be displayed using adjacent pixels, thereby achieving the effect of displaying a higher resolution image (for example, 200*200) with a small number of sub-pixels (for example, 200*100). At the same time, it avoids the color cast or disconnection caused by the missing sub-pixels, increases the readability of images such as text and graphics in daily applications, greatly improves the display quality, and also improves the competitiveness of display products.
[0058] In one embodiment, Figure 2 As shown, a method for improving display PPI is provided, and the method is applied to the above-mentioned new display product as an example for description, including the following steps S12 to S18:
[0059] S12, converting the input grayscale image data into brightness data.
[0060] It can be understood that the input grayscale image data refers to the original image data that will be displayed on the screen in the display, which is the original grayscale data that has not been processed in the subsequent steps of this embodiment. In the image processing element used for image data processing at the front end of the screen, the input grayscale image data can be transmitted to the G2L module. In order to ensure a more accurate display, the grayscale data needs to be converted into brightness data first. The specific processing process of converting grayscale data into brightness data can be understood by referring to the processing flow realized by the G2L module in the field, and will not be described in detail in this specification.
[0061] S14, for a target pixel with missing sub-pixels in brightness data, sub-pixel rendering is performed using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*.
[0062] It can be understood that the target pixel refers to a pixel in which a certain sub-pixel is missing due to the arrangement of pixels in the brightness data, which can be an R pixel or a B pixel. The sub-pixel rendering process can be implemented in the SPR algorithm module of the image processing element. The specific processing process can be understood by referring to the processing flow of the existing SPR module implementation in the art. It will not be described in detail in this specification. The difference is that in the sub-pixel rendering process, the adjacent pixels used are N similar pixels adjacent to the right side of the target pixel, so as to ensure that the pixel brightness transition is smoother when the sub-pixel rendering process is performed on the R pixel and the B pixel, or one of the two pixel data, and the sharpness of the line and the front and back connection are better maintained. It can also avoid the phenomenon of poor brightness transition caused by borrowing pixels backward, which ultimately leads to the problem of distortion of the display picture. The value of the number N of adjacent pixels to be borrowed can be comprehensively selected according to the requirements of the device calculation amount and the display quality.
[0063] S16, converting the brightness data after the sub-pixel rendering process into processed grayscale image data.
[0064] S18, outputting the processed grayscale image data to a screen for display.
[0065] It can be understood that the brightness data after sub-pixel rendering processing can be transmitted to the L2G module of the image processing element for processing to convert the brightness data into grayscale data (De-Gamma), and finally the grayscale data can be output to the screen of the display for image display.
[0066] In the above method for improving the display PPI, the input grayscale image data is first converted into brightness data to improve the display accuracy, and then the converted brightness data is subjected to sub-pixel rendering processing, so that the pixels with missing sub-pixels can be displayed by borrowing adjacent pixels. Finally, the brightness data after sub-pixel rendering processing is converted into processed grayscale image data, and output to the screen for display, so as to achieve the effect of displaying a higher resolution image with a small number of sub-pixels, while avoiding the color cast or line break caused by the lack of sub-pixels. When displaying, the sharpness of the lines can be maintained while the transition is smooth, which increases the readability of the pictures such as text and graphics in daily applications, and achieves the purpose of greatly improving the display quality.
[0067] In one embodiment, Figure 3 What is shown is a data flow diagram of the above steps. The steps of the above method can be hardware-integrated in the Driver IC (driver chip) of the display or the T-CON (logic board) of the display, and is implemented in three modules: G2L, SPR and L2G. The G2L module and the L2G module can be stored in a lookup table LUT.
[0068] After the display is powered on, the original input grayscale image data is connected to the Driver IC or T-CON of the display, and the steps of the above-mentioned method for improving the display PPI can be automatically executed to complete the corresponding data processing process, so that the grayscale image data finally output to the screen can be displayed on the screen to obtain a higher-quality display image.
[0069] In one embodiment, the pixel arrangement of the grayscale image data includes an RG pixel arrangement and a BG pixel arrangement. Optionally, in this embodiment, the pixel arrangement targeted by the above method for improving the display PPI may be an arrangement with RG and BG as pixels, the missing sub-pixel may be R or B, and the image quality improvement effect may reach the best level.
[0070] In one embodiment, the brightness of the target pixel after the sub-pixel rendering process is equal to the sum of the weighted brightness of N pixels of the same type.
[0071] It can be understood that in the sub-pixel rendering process, the input data includes N adjacent pixels of the same type borrowed from the right side of the target pixel, and the brightness of the target pixel after the sub-pixel rendering process is equal to the sum of the weighted brightness of the input data.
[0072] In one embodiment, N=2, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0073] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j
[0074] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a and b are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the second * i-1,2 * j) pixels of the same type.
[0075] Specifically, in this embodiment, the target pixel may be an R pixel or a B pixel, or both pixel data are missing at the same time. The above processing formula may be used to implement the sub-pixel rendering processing of either the R pixel or the B pixel. For ease of explanation, the following takes the R pixel as an example (the processing method of the B pixel is the same as that of the R pixel), and the following processing method may be used:
[0076] R′ 11 =a*R 11 +b*R 12 , R′ 12 =a*R 13 +b*R 14 , …, R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j
[0077] The brightness after processing R′ i,j Equal to the sum of the weighted brightness of the input data. Where a and b are weight coefficients and their sum is 1, a and b can be flexibly adjusted, for example but not limited to a = 0.5 and b = 0.5. Figure 4 The figure shows the comparison of the processing results of a ray diagram with a thickness of one pixel. Figure 5 Shown is a schematic diagram comparing the processing results of a 1-pixel thick white circle. It can be seen that the lines displayed after processing by the above method have greatly improved the color cast or "broken lines" caused by the missing of some sub-pixels, while maintaining the sharpness of the lines and not being too blurred.
[0078] In one embodiment, N=3, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0079] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R 2*i-1,2*j+1
[0080] Among them, R′ i,jrepresents the (i, j)th target pixel after sub-pixel rendering, a, b and c are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the second * i-1,2 * j) pixels of the same type, R 2*i-1,2*j+1 Indicates the second * i-1,2 * j+1) pixels of the same type.
[0081] Specifically, in this embodiment, the target pixel may be an R pixel or a B pixel, or both pixel data are missing at the same time. The above processing formula may be used to implement the sub-pixel rendering processing of either the R pixel or the B pixel. For ease of explanation, the following takes the R pixel as an example (the processing method of the B pixel is the same as that of the R pixel), and the following processing method may be used:
[0082] R′ 11 =a*R 11 +b*R 12 +c*R 13 , R′ 12 =a*R 13 +b*R 14 +c*R 15 , …,
[0083] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R 2*i-1,2*j+1
[0084] The brightness after processing R′ i,j is equal to the sum of the weighted brightness of the input data, where a, b and c are weight coefficients and the sum is 1, and a, b and c can be flexibly adjusted, for example but not limited to a=1 / 3, b=1 / 3, c=1 / 3; Figure 6 The figure shows the comparison of the processing results of a ray diagram with a thickness of one pixel. Figure 7 What is shown is a schematic diagram comparing the processing results of the text image. It can be seen that the lines displayed after being processed by the above method have greatly improved the "broken line" situation caused by the missing of some sub-pixels.
[0085] In one embodiment, N=3, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0086] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R2*i-1,2*j+1
[0087] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a, b and c are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the second * i-1,2 * j) pixels of the same type, R 2*i-1,2*j+1 Indicates the second * i-1,2 * j+1) pixels of the same type.
[0088] like Figure 8 As shown, before the above step S16, step S15 may also be included:
[0089] S15, for the G pixel in the same group as the target pixel, perform sub-pixel rendering processing using N G pixels adjacent to the right of the G pixel; N≥2 and N∈N*.
[0090] It can be understood that the G pixel in the same group as the target pixel refers to the G pixel in the same pixel arrangement as the target pixel. In this embodiment, the target pixel can be an R pixel or a B pixel, or both pixel data are missing at the same time. Whether it is the sub-pixel rendering processing for the R pixel or the B pixel, the above-mentioned processing formula can be used to implement it. In addition, the G pixel data is also subjected to sub-pixel rendering processing at the same time to enhance the brightness near the R pixel and / or the B pixel, and further improve the color cast or "broken line" of the line of the processed display image, thereby further improving the display quality.
[0091] In one embodiment, the following brightness processing method is used to obtain the G pixel after sub-pixel rendering:
[0092] G′ i,j =d*G 2*i-1,2*j-1 +e*G 2*i-1,2*j
[0093] Among them, G′ i,j represents the (i, j)th G pixel after sub-pixel rendering, d and e are weight coefficients and their sum is 1, G 2*i-1,2*j-1 The (2nd * i-1,2 * j-1) G pixels, G 2*i-1,2*j The (2nd * i-1,2 * j) G pixels.
[0094] Specifically, for ease of explanation, the following takes R pixel as an example (the processing method of B pixel is the same as that of R pixel), and the processing method can be as follows:
[0095] R′ 11 =a*R 11 +b*R 12 +c*R 13 , R′ 12 =a*R 13 +b*R 14 +c*R 15 ,
[0096] …, R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R 2*i-1,2*j+1
[0097] G′ 11 =d*G 11 +e*G 12 , G′ 12 =a*G 13 +b*G 14 , …,
[0098] G′ i,j =a*G 2*i-1,2*j-1 +b*G 2*i-1,2*j
[0099] The brightness after processing R′ i,j = is equal to the sum of the weighted brightness of the input data, where a, b and c are weight coefficients and the sum is 1. a, b and c can be flexibly adjusted, for example but not limited to a = 1 / 3, b = 1 / 3 and c = 1 / 3. At the same time, G is also rendered, and the sum of d and e is 1. d and e can also be flexibly adjusted, for example but not limited to d = 0.5, e = 0.5. Fig. 9 The figure shows the comparison of the processing results of a ray diagram with a thickness of one pixel. Fig.10 What is shown is a schematic diagram comparing the processing results of the text image. It can be seen that the display lines after being processed by the algorithm have improved the color cast and "broken lines" caused by the missing of some sub-pixels.
[0100] It should be understood that although Figure 1 and Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 and Figure 8At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0101] In one embodiment, Fig.11 As shown, a device 100 for improving display PPI is also provided, comprising: a brightness conversion module 11, a pixel rendering module 13, a grayscale conversion module 15 and a data output module 17. Among them: the brightness conversion module 11 is used to convert the input grayscale image data into brightness data. The pixel rendering module 13 is used to perform sub-pixel rendering processing on the target pixel with missing sub-pixels in the brightness data using N similar pixels adjacent to the right side of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*. The grayscale conversion module 15 is used to convert the brightness data after sub-pixel rendering processing into processed grayscale image data. The data output module 17 is used to output the processed grayscale image data to the screen for display.
[0102] The above-mentioned device 100 for improving display PPI, through the cooperation of various modules, first converts the input grayscale image data into brightness data to improve the display accuracy, and then performs sub-pixel rendering processing on the converted brightness data so that the pixels with missing sub-pixels can be displayed by borrowing adjacent pixels. Finally, the brightness data after sub-pixel rendering processing is converted into processed grayscale image data and output to the screen for display, so as to achieve the effect of displaying a higher resolution image with a small number of sub-pixels, while avoiding the color cast or line break caused by the missing sub-pixels. When displaying, the sharpness of the lines can be maintained while achieving smooth transition, which increases the readability of the pictures such as text and graphics in daily applications, and achieves the purpose of greatly improving the display quality.
[0103] In one embodiment, the pixel arrangement of the grayscale image data includes an RG pixel arrangement and a BG pixel arrangement.
[0104] In one embodiment, the brightness of the target pixel after the sub-pixel rendering process is equal to the sum of the weighted brightness of N pixels of the same type.
[0105] In one embodiment, N=2, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0106] R′ i′,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j
[0107] Among them, R′ i,jrepresents the (i, j)th target pixel after sub-pixel rendering, a and b are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the second * i-1,2*j) pixels of the same type, i=…, j=….
[0108] In one embodiment, N=3, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0109] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R 2*i-1,2*j+1
[0110] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a, b and c are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the second * i-1,2 * j) pixels of the same type, R 2*i-1,2*j+1 Indicates the second * i-1,2 * j+1) pixels of the same type.
[0111] In one embodiment, N=3, the following brightness processing method is used to obtain the target pixel after sub-pixel rendering:
[0112] R′ i,j =a*R 2*i-1,2*j-1 +b*R 2*i-1,2*j +c*R 2*i-1,2*j+1
[0113] Among them, R′ i,j represents the (i, j)th target pixel after sub-pixel rendering, a, b and c are weight coefficients and their sum is 1, R 2*i-1,2*j-1 Indicates the second * i-1,2 * j-1) pixels of the same type, R 2*i-1,2*j Indicates the second * i-1,2 * j) pixels of the same type, R 2*i-1,2*j+1 Indicates the second * i-1,2 * j+1) pixels of the same type;
[0114] Before the step of converting the brightness data processed by sub-pixel rendering into processed grayscale image data, the step further includes:
[0115] For the G pixels in the same group as the target pixel, sub-pixel rendering is performed using the N G pixels adjacent to the right of the G pixel; N ≥ 2 and N ∈ N*.
[0116] In one embodiment, the following brightness processing method is used to obtain the G pixel after sub-pixel rendering:
[0117] G′ i,j =d*G 2*i-1,2*j-1 +e*G 2*i-1,2*j
[0118] Among them, G′ i,j represents the (i, j)th G pixel after sub-pixel rendering, d and e are weight coefficients and their sum is 1, G 2*i-1,2*j-1 The (2nd * i-1,2 * j-1) G pixels, G 2*i-1,2*j The (2nd * i-1,2 * j) G pixels.
[0119] For the specific definition of the device 100 for improving the display PPI, please refer to the definition of the method for improving the display PPI above, which will not be repeated here. Each module in the above-mentioned device 100 for improving the display PPI can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the image processing device in the form of hardware, or can be stored in the memory of the image processing device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0120] In one embodiment, an image processing device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: converting input grayscale image data into brightness data; for a target pixel in which a sub-pixel is missing in the brightness data, performing sub-pixel rendering processing using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*; converting the brightness data after sub-pixel rendering processing into processed grayscale image data; and outputting the processed grayscale image data to a screen for display.
[0121] In one embodiment, when the processor executes the computer program, the processor also implements the steps in the remaining embodiments of the method for improving the display PPI.
[0122] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: converting input grayscale image data into brightness data; for a target pixel in which a sub-pixel is missing in the brightness data, performing sub-pixel rendering processing using N similar pixels adjacent to the right of the target pixel; the target pixel is an R pixel or a B pixel, N≥2 and N∈N*; converting the brightness data after sub-pixel rendering processing into processed grayscale image data; and outputting the processed grayscale image data to a screen for display.
[0123] In one embodiment, when the computer program is executed by a processor, the steps in the remaining embodiments of the method for improving display PPI are also implemented.
[0124] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0125] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.
[0126] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A method for improving display PPI, characterized in that: The following steps are involved: Convert the input grayscale image data into brightness data; For a target pixel with a missing sub-pixel in the brightness data, sub-pixel rendering is performed using N similar pixels adjacent to the right side of the target pixel; the missing sub-pixel is an R pixel or a B pixel, N≥2 and N∈N*, and the color of the similar pixels is the same as the color of the missing sub-pixel; wherein the brightness of the target pixel after the sub-pixel rendering is equal to the sum of the weighted brightness of the N similar pixels; For the G pixel in the same group as the target pixel, perform sub-pixel rendering processing using N G pixels adjacent to the right side of the G pixel; Converting the brightness data after sub-pixel rendering processing into the processed grayscale image data; The processed grayscale image data is output to a screen for display.
2. The method for improving display PPI according to claim 1, characterized in that: The pixel arrangement of the grayscale image data includes an RG pixel arrangement and a BG pixel arrangement.
3. A device for improving display PPI, characterized in that: The device comprises: A brightness conversion module, used for converting input grayscale image data into brightness data; A pixel rendering module, for performing sub-pixel rendering processing on a target pixel with missing sub-pixels in the brightness data using N similar pixels adjacent to the right side of the target pixel; the missing sub-pixel is an R pixel or a B pixel, N≥2 and N∈N*, and the color of the similar pixels is the same as the color of the missing sub-pixel; wherein the brightness of the target pixel after sub-pixel rendering is equal to the sum of the weighted brightness of the N similar pixels; and, for a G pixel in the same group as the target pixel, performing sub-pixel rendering processing using N G pixels adjacent to the right side of the G pixel; A grayscale conversion module, used for converting the brightness data after sub-pixel rendering processing into the processed grayscale image data; The data output module is used to output the processed grayscale image data to a screen for display.
4. An image processing device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.
5. 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 2 are implemented.
