Subpixel rendering method and system for RGB-Delta type display panels

By establishing mapping relationships and interpolation algorithms on RGB-Delta display panels and using sub-pixel borrowing for rendering, the problems of image information loss and edge blurring caused by RGB-Delta structure arrangement are solved, thus improving display quality.

CN116095399BActive Publication Date: 2025-10-28GLENFLY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211411091.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2025-10-28
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

The existing RGB-Delta structure arrangement of display panels is prone to image information loss, affecting display quality.

Method used

By establishing a mapping relationship between the source image and the target image, calculating the weighting factor in the interpolation algorithm formula, and using sub-pixel borrowing for rendering, missing image information is supplemented and the degree of edge blurring is reduced.

Benefits of technology

Reduce image information loss on the display panel, decrease edge blurring, and improve display quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095399B_ABST
    Figure CN116095399B_ABST
Patent Text Reader

Abstract

This invention discloses a sub-pixel rendering method and system for an RGB-Delta type display panel. The method includes establishing a mapping relationship between source pixels of a source image and target pixels of a target image on the RGB-Delta type display panel using a rendering unit; calculating weighting factors in an interpolation algorithm formula based on the mapping relationship; and calculating the target sub-pixel values ​​of each target image sub-pixel in the target pixel using the interpolation algorithm formula based on the weighting factors. The system includes a mapping module, a first calculation module, and a second calculation module. The technical solution of this invention can reduce the loss of image information displayed on the display panel and reduce the edge blurring of the display panel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image display technology, and in particular to a subpixel rendering method and system for an RGB-Delta type display panel. Background Technology

[0002] AMOLED (Active-matrix organic light-emitting diode) screens use RGB (Red, Green, Blue) subpixels made of red, green, and blue self-emissive organic materials. Those skilled in the art often solve the problems of high manufacturing costs and increased difficulty in driving circuit design by changing the subpixel arrangement and reducing the number of subpixels.

[0003] In existing technologies, subpixel arrangement structures include many types such as RGB-stripe, RGB-delta, and RGBG. Among these, in the RGB-delta structure, R / G / B pixels are distributed in a triangular pattern. Compared to the RGB-stripe structure, the number of R / G / B subpixels is reduced by one-third, effectively achieving the effect of a traditional RGB screen with two-thirds of its physical resolution. Therefore, subpixels need to be rendered to determine the grayscale value of each subpixel on the panel, obtaining a processed image that then drives the circuitry to display it on the panel. Summary of the Invention

[0004] One of the objectives of this invention is to overcome the shortcomings of the prior art. In view of the problem that display panels with RGB-delta structure arrangement in the prior art are prone to image information loss and affect display quality, this invention provides a sub-pixel rendering method and system for RGB-Delta type display panels.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solution:

[0006] In a first aspect, the present invention provides a sub-pixel rendering method for an RGB-Delta type display panel, the method comprising:

[0007] The rendering unit establishes a mapping relationship between the source pixels of the source image and the target pixels of the target image on the RGB-Delta type display panel.

[0008] Calculate the weighting factors in the interpolation algorithm formula established based on the mapping relationship;

[0009] Based on the weighting factor, the target sub-pixel value of each target image sub-pixel in the target pixel is calculated using the interpolation algorithm formula.

[0010] In a preferred embodiment of this application, the process of establishing a mapping relationship between source pixels of the source image and target pixels of the target image on the RGB-Delta type display panel through the rendering unit specifically includes:

[0011] Acquire a source image and a target image of an RGB-Delta type display panel. The source image includes multiple source pixels, each source pixel including source image sub-pixels with three color channels: red, green, and blue. The target image includes multiple target pixels, each target pixel including target image sub-pixels with three color channels: red, green, and blue.

[0012] A rendering unit is established, wherein a source image window is selected in the source image and a target image window is selected in the target image, wherein the source image window includes 3×2 source pixels and the target image window includes 2×2 target pixels;

[0013] A mapping relationship is established between the source pixels and the target pixels based on the ratio of the number of source pixels to the number of target pixels within the rendering unit;

[0014] Obtain the starting coordinates of the source pixel located at the starting position and the original coordinates of other source pixels in the source image window;

[0015] Based on the mapping relationship, the source pixel starting coordinates, and the original coordinates, the starting coordinates of the target pixel located at the starting position in the target image window and the mapped coordinates of other target pixels are obtained.

[0016] In a preferred embodiment of this application, the calculation of the weighting factor in the interpolation algorithm formula established based on the mapping relationship specifically includes:

[0017] Based on the mapping relationship, an interpolation algorithm formula is established using sub-pixel borrowing to obtain the weighting factor;

[0018] The texture information corresponding to the source pixel is obtained by calculating the edge code of the source pixel in the horizontal direction;

[0019] The weighting factor is calculated based on the type of the edge code.

[0020] In a preferred embodiment of this application, the process of establishing an interpolation algorithm formula based on the mapping relationship using a sub-pixel borrowing method to obtain the weighting factor specifically includes:

[0021] Based on the starting coordinates of the source pixel and the original coordinates, the original sub-pixel value expression corresponding to the original sub-pixel value of each source image sub-pixel in the source pixel is obtained;

[0022] Based on the starting coordinates of the target pixel and the mapping coordinates, the target sub-pixel value expression corresponding to the target sub-pixel value of each target image sub-pixel in the target pixel is obtained;

[0023] Based on the original sub-pixel value expression and the target sub-pixel value expression, 3×2 rendering pixel regions corresponding to the source pixel are established in the target image window, and each rendering pixel region includes two target image sub-pixels;

[0024] For the even-numbered and odd-numbered rows of the target image window, the target image sub-pixels that need to be borrowed for each rendering pixel region are determined according to the sub-pixel borrowing method.

[0025] For the three color channels (red, green, and blue), an interpolation algorithm formula is established based on the source image sub-pixels, the target image sub-pixels, and the borrowed target image sub-pixels to render the source image sub-pixels to the target image sub-pixels.

[0026] Based on the interpolation algorithm formula, the weighting factor used to calculate the borrowed color channel sub-pixels is extracted.

[0027] In a preferred embodiment of this application, the even-numbered rows of the target image window have a first rendering pixel region, a second rendering pixel region, and a third rendering pixel region sequentially arranged horizontally to the right. The first rendering pixel region includes a first red target image sub-pixel R'. 2i,2j and the first green target image sub-pixel G' 2i,2j The second rendered pixel region includes the first blue target image sub-pixel B' 2i,2j Second red target image sub-pixel R' 2i+1,2j The third rendered pixel region includes the second green target image sub-pixel G' 2i+1,2j Second blue target image sub-pixel B' 2i+1,2j ;

[0028] The odd-numbered rows of the target image window have a fourth, a fifth, and a sixth rendering pixel region arranged sequentially to the right. The fourth rendering pixel region includes the third blue target image sub-pixel B'. 2i,2j+1 and the third green target image sub-pixel G' 2i,2j+1 The fifth rendered pixel region includes the third red target image sub-pixel R' 2i,2j+1 and the fourth blue target image sub-pixel B' 2i+1,2j+1 The sixth rendered pixel region includes the fourth red target image sub-pixel R' 2i+1,2j+1 and the fourth green target image sub-pixel G' 2i+1,2j+1 ;

[0029] Based on the sub-pixel borrowing method, the first rendered pixel region borrows sub-pixel B' from the first blue target image. 2i,2j The second rendered pixel region borrows the second green target image sub-pixel G' 2i+1,2j The third rendered pixel region borrows the second red target image sub-pixel R' 2i+1,2j The fourth rendered pixel region borrows the third red target image sub-pixel R' 2i,2j+1 The fifth rendered pixel region borrows the third green target image sub-pixel G' 2i,2j+1 The sixth rendered pixel region borrows the fourth blue target image sub-pixel B' 2i+1,2j+1 .

[0030] In a preferred embodiment of this application, in the interpolation algorithm formula, the even-numbered rows of the target image window correspond to the first conversion formula, and the odd-numbered rows of the target image window correspond to the second conversion formula.

[0031] In a preferred embodiment of this application, the process of obtaining the texture information corresponding to the source pixel by calculating the edge code of the source pixel in the horizontal direction specifically includes:

[0032] Obtain the original sub-pixel values ​​of the source image sub-pixels in three source pixels of odd or even rows within the source image window;

[0033] Establish a judgment function and set preset thresholds and edge codes;

[0034] For the three color channels (red, green, and blue), calculate the difference in original sub-pixel values ​​between the source image sub-pixel located in the middle of the same odd or even row and the source image sub-pixels on the left and right.

[0035] The judgment result of the judgment function is calculated based on the relationship between the pixel value difference and the preset threshold.

[0036] Based on the judgment result, the edge code is obtained.

[0037] In a preferred embodiment of this application, calculating the weighting factor based on the type of the edge code specifically includes:

[0038] Determine the type of the edge code;

[0039] When the edge code belongs to the first category, the weighting factor is obtained by minimizing the squared error based on the original sub-pixel value of the source image sub-pixel and the target sub-pixel value of the target image sub-pixel.

[0040] When the edge code belongs to the second category, the weighting factor is obtained by assignment based on the original sub-pixel value of the source image sub-pixel and the target sub-pixel value of the target image sub-pixel.

[0041] Secondly, the present invention provides a sub-pixel rendering system for an RGB-Delta type display panel, the system comprising a mapping module, a first calculation module and a second calculation module connected to each other;

[0042] The mapping module is used to establish a mapping relationship between the source pixels of the source image and the target pixels of the target image on the RGB-Delta type display panel through the rendering unit;

[0043] The first calculation module is used to calculate the weighting factor in the interpolation algorithm formula established based on the mapping relationship;

[0044] The second calculation module is used to calculate the target sub-pixel value of each target image sub-pixel in the target pixel by weighting it according to the weighting factor and the interpolation algorithm formula.

[0045] Thirdly, the present invention provides a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to perform the subpixel rendering method for an RGB-Delta type display panel as described in the first aspect.

[0046] Fourthly, the present invention provides a computer program product comprising a computer program that, when run on a computer, causes the computer to perform the subpixel rendering method for an RGB-Delta type display panel as described in the first aspect.

[0047] The subpixel rendering method and system for RGB-Delta type display panels disclosed in this invention can reduce the loss of image information displayed on the display panel and reduce the edge blur of the display panel. Attached Figure Description

[0048] The present invention is described with reference to the following figures:

[0049] Figure 1 This is a flowchart of the sub-pixel rendering method for the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0050] Figure 2 This is a flowchart of step 100 in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0051] Figure 3This is a schematic diagram of the source image in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0052] Figure 4 This is a schematic diagram of the target image in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0053] Figure 5 This is a schematic diagram of the mapping relationship in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0054] Figure 6 This is a flowchart of step 200 in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0055] Figure 7 This is a flowchart of step 210 in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0056] Figure 8 This is a schematic diagram of the sub-pixel borrowing method in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0057] Figure 9 This is a flowchart of step 220 in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0058] Figure 10 This is a schematic diagram of even-numbered or odd-numbered row source pixels in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention.

[0059] Figure 11 This is a schematic diagram of the source pixels corresponding to the nine types of edge codes in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention.

[0060] Figure 12 This is a flowchart of step 230 in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0061] Figure 13 This is another specific flowchart of step 200 in the sub-pixel rendering method of the RGB-Delta type display panel in Embodiment 1 of the present invention;

[0062] Figure 14 This is a schematic diagram of the sub-pixel rendering system of the RGB-Delta type display panel in Embodiment 2 of the present invention.

[0063] Figure label:

[0064] 10-Rendering unit; 11-Source image; 12-Source pixel; 13-Target image; 14-Target pixel; 15-Target image sub-pixel; 16-Source image sub-pixel; 17-Source image window; 18-Target image window; 19-First rendering pixel area; 20-Second rendering pixel area; 21-Third rendering pixel area; 22-Fourth rendering pixel area; 23-Fifth rendering pixel area; 24-Sixth rendering pixel area; 30-Mapping module; 40-First calculation module; 50-Second calculation module; R-Red channel; G-Green channel; B-Blue channel. Detailed Implementation

[0065] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0066] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0067] Example 1

[0068] Embodiment 1 of this invention discloses a sub-pixel rendering method for an RGB-Delta type display panel, which addresses the image information loss and image boundary blurring caused by the triangular arrangement of the three RGB color channels in an AMOLED display panel with an RGB-Delta structure. By rendering the sub-pixels, the missing image information is supplemented, the blurring of the image boundaries is reduced, thereby improving the image display quality of the AMOLED display panel.

[0069] See Figure 1 The subpixel rendering method in this embodiment 1 includes:

[0070] Step 100: Establish a mapping relationship between the source pixels of the source image and the target pixels 14 of the target image 13 on the RGB-Delta type display panel through the rendering unit;

[0071] Step 200: Calculate the weighting factors in the interpolation algorithm formula based on the mapping relationship;

[0072] Step 300: Based on the weighting factor, calculate the target sub-pixel value of each target image sub-pixel in the target pixel using the interpolation algorithm formula.

[0073] Specifically, in Steps 100 to 300, the source image 11 and the target image 13 have the same total number of pixels. However, because the target image sub-pixels 15 of the red, green, and blue color channels R, G, and B of each target pixel 14 in the target image 13 are arranged in a triangular pattern, the total number of target image sub-pixels 15 is one-third less than the total number of source image sub-pixels 16 of each source pixel 12 in the source image 11. The total number of target pixels 14 is also one-third less than the total number of source pixels 12. Here, the target pixel 14 is not the actual pixel used for display on the target image 13, but rather the triangularly arranged target image sub-pixels 15 of the red, green, and blue color channels R, G, and B are artificially divided together to form a complete target pixel 14. Therefore, the pixel division method is the same in both the source image 11 and the target image 13. In rendering unit 10, the number of target pixels 14 is one-third less than that of source pixels 12. Therefore, a mapping relationship needs to be established between source pixels 12 and target pixels 14 so that the information of source pixels 12 can be linked with the information of target pixels 14 through the mapping relationship, thereby reducing the loss of image information in source pixels 12. Through the mapping relationship, a mathematical relationship is established between the target image sub-pixel 15 of target pixel 14 in target image 13 and the source image sub-pixel 16 of source pixel 12 in source image 11. This relationship is an interpolation algorithm formula used to calculate the target sub-pixel values ​​of the target image sub-pixel 15 for the three color channels R, G, and B, respectively. The source image sub-pixels 16 of the three color channels R, G, and B in source pixel 12 will generate different texture information due to their different original sub-pixel values. This can characterize whether there is a large difference in pixel values ​​in source image 11. Different assignment methods are used for cases with large differences in pixel values ​​and cases with small differences in pixel values. The weighting factors corresponding to the target sub-pixel values ​​of each color channel R, G, and B in target image sub-pixels 15 of target pixel 14 are assigned to reduce the color edge effect in target image 13 and reduce the degree of boundary blurring.

[0074] See Figure 2 In the sub-pixel rendering method of this embodiment 1, step 100 specifically includes:

[0075] Step 110: Acquire the source image and the target image 13 of the RGB-Delta type display panel;

[0076] Step 120: Create a rendering unit by selecting source image window 17 in the source image and target image window 18 in the target image 13.

[0077] Step 130: Based on the ratio of the number of source pixels to the number of target pixels 14 within the rendering unit, establish a mapping relationship between the source pixels and the target pixels 14;

[0078] Step 140: Obtain the starting coordinates of the source pixel located at the starting position and the original coordinates of other source pixels in the source image window 17;

[0079] Step 150: Based on the mapping relationship, the starting coordinates of the source pixel, and the original coordinates, obtain the starting coordinates of the target pixel 14 located at the starting position and the mapped coordinates of other target pixels 14 in the target image window 18.

[0080] Specifically, the sub-pixel rendering method in this embodiment 1 is for an RGB-Delta type display panel. It renders the image information of the source image 11 into the target image 13 using sub-pixel rendering, such as... Figure 3 and Figure 4 As shown, the source image 11 includes multiple source pixels 12, each source pixel 12 including source image sub-pixels 16 with three color channels R, G, and B. The target image 13 includes multiple target pixels 14, each target pixel 14 including target image sub-pixels 15 with three color channels R, G, and B. In the specific process of Step 100, the source image 11 and the target image 13 are divided into multiple regions for sub-pixel rendering step by step. This region is a rendering unit 10. By selecting multiple source pixels 12 in the source image 11 and multiple target pixels 14 in the target image 13, source image windows 17 and target image windows 18 of the same size are established as the smallest unit for sub-pixel rendering. Since the target image sub-pixels 15 of a single target pixel 14 in the RGB-Delta type display panel are 1 / 3 fewer than those of the source pixels 12, the number of target pixels 14 contained in the target image 13 is also 1 / 3 less than the number of source pixels 12 contained in the source image window 17. Figure 3 and Figure 4 As shown, the source image window 17 includes 3×2 source pixels 12, and the target image window 18 includes 2×2 target pixels 14. Since the number of source pixels 12 and target pixels 14 is different, a mapping relationship needs to be established to map the original coordinates representing the positions of each source image sub-pixel 16 in the source pixels 12 to each target image sub-pixel 15 in the target pixels 14. See also... Figure 5Source pixel 12, located in even row 2j and odd row 2j+1, is mapped to target pixel 14, which is also located in even row 2j and odd row 2j+1, respectively. Within the same even row 2j or odd row 2j+1, there are 3 source pixels 12 in source image window 17 and 2 target pixels 14 in target image window 18. Therefore, the mapping relationship between source pixel 12 and target pixel 14 is that the mapped coordinates of target pixel 14 are equal to 2 / 3 of the original coordinates of source pixel 12. The source pixel 12 located at the top left corner of source image window 17 is defined as the starting position, with coordinates (3i, 2j). Therefore, the target pixel 14 located at the top left corner of target image window 18 is its corresponding target pixel 14. According to the above mapping relationship, the coordinates of this target pixel 14 are the target pixel starting coordinates (2i, 2j). Similarly, based on the original coordinates (3i,2j), (3i+1,2j), (3i+2,2j), (3i,2j+1), (3i+1,2j+1), and (3i+2,2j+1) of the six source pixels 12 in the source image window 17, the mapped coordinates (2i,2j), (2i+1,2j), (2i,2j+1), and (2i+1,2j+1) of the four target pixels 14 in the target image window 18 can be obtained through the mapping relationship. By establishing the mapping relationship between the source pixels 12 and the target pixels 14 through step 100, the correlation between the target pixels 14 and the source pixels 12 can be characterized, which facilitates the calculation of the target sub-pixel values ​​of the target image sub-pixel 15 of the red, green, and blue color channels R, G, and B in the target pixel 14.

[0081] See Figure 6 In the subpixel rendering method of this embodiment 1, step 200 specifically includes:

[0082] Step 210: Based on the mapping relationship, establish the interpolation algorithm formula by using sub-pixel borrowing to obtain the weighting factor;

[0083] Step 220: Obtain the texture information corresponding to the source pixel by calculating the edge code in the horizontal direction;

[0084] Step 230: Calculate the weighting factor based on the type of edge code.

[0085] contrast Figure 3 and Figure 4In the rendering unit 10, a source image window 17 originally contains 6 source pixels 12 and 18 source image sub-pixels 16, while its corresponding target image window 18 contains only 4 target pixels 14 and 12 target image sub-pixels 15. However, as mentioned earlier, the target pixel 14 is not the pixel actually used to display the image in the target image 13. Each source pixel 12 has only 2 target image sub-pixels 15 at its corresponding position. Compared to the 3 source image sub-pixels 16 contained in each source pixel 12 in the source image window 17, this is one less color channel. Therefore, it is necessary to borrow the target image sub-pixels 15 at the corresponding positions of adjacent source pixels 12 to form a complete pixel. For example, when there are only target image sub-pixels 15 with red and green color channels R and G... It is necessary to borrow the target image sub-pixel 15 of the blue channel B, and use the above sub-pixel borrowing method to fill in the missing color channel of the target image sub-pixel 15 in the position of the three color channels corresponding to the source pixel 12 in the target image window 18, thereby completing the image information of the target image window 18; the target sub-pixel value of the borrowed target image sub-pixel 15 is calculated by interpolation algorithm formula from the source pixel 12 corresponding to the position of the borrowed target image sub-pixel 15 and the original sub-pixel value of the source pixel 12 corresponding to the target image sub-pixel 15 according to the three color channels R, G, B respectively. In the interpolation algorithm formula, each original sub-pixel value is weighted to obtain the weighting factor corresponding to the target sub-pixel value of the three color channels R, G, B. For example Figure 5 As shown, in the even or odd rows of the source image 11, the differences between three neighboring source pixels 12 produce different patterns. The image information contained in these patterns when combined is texture information, which is represented by edge codes. The edge codes are obtained by calculating the pixel values ​​of the three neighboring source pixels 12. The edge codes are calculated according to the three color channels R, G, and B to obtain the texture information, which shows the grayscale difference between the three neighboring source pixels 12. Therefore, by analyzing the type of edge codes, the magnitude of pixel value differences, and the grayscale difference, weighting factors are calculated for each case. The weighting factors calculated by steps 210 to 230 can ensure that the image displayed on the display panel does not have information loss problems and can reduce or eliminate edge blurring.

[0086] See Figure 7 In the sub-pixel rendering method of this embodiment 1, step 210 specifically includes:

[0087] Step 211: Based on the starting coordinates and original coordinates of the source pixel, obtain the original sub-pixel value expression corresponding to the original sub-pixel value of each source image sub-pixel 16 in the source pixel;

[0088] Step 212: Based on the starting coordinates and mapping coordinates of target pixel 14, obtain the target sub-pixel value expression corresponding to the target sub-pixel value of each target image sub-pixel 15 in target pixel 14;

[0089] Step 213: Based on the original sub-pixel value expression and the target sub-pixel value expression, establish 3×2 rendering pixel regions corresponding to the source pixels in the target image window 18. Each rendering pixel region includes two target image sub-pixels 15.

[0090] Step 214: For the even and odd rows of the target image window 18, determine the target image sub-pixels 15 that need to be borrowed for each rendering pixel area according to the sub-pixel borrowing method;

[0091] Step 215: For the three color channels (red, green, and blue), based on the source image sub-pixel 16, the target image sub-pixel 15, and the borrowed target image sub-pixel 15, establish an interpolation algorithm formula for rendering the source image sub-pixel 16 to the target image sub-pixel 15.

[0092] Step 216: Extract the weighting factor used to calculate the borrowed color channel sub-pixels according to the interpolation algorithm formula.

[0093] Specifically, based on the mapping coordinates of each target pixel 14 obtained in steps 110 to 150, the target sub-pixel values ​​corresponding to the target sub-pixel values ​​of the red, green, and blue color channels R, G, and B in each target pixel 14 can be obtained. For example... Figure 5 and Figure 8 As shown, in a source image window 17, there are 6 source pixels P 3i,2j 、P 3i+1,2j 、P 3i+2,2j 、P 3i,2j+1 、P 3i+1,2j+1 、P 3i+2,2j+1 The corresponding original sub-pixel values ​​are expressed as (R) 3i,2j G 3i,2j 、B 3i,2j ), (R 3i+1,2j G 3i+1,2j 、B 3i+1,2j ), (R 3i+2,2j G 3i+2,2j 、B 3i+2,2j ), (R 3i,2j+1 G 3i,2j+1 、B 3i,2j+1 ), (R 3i+1,2j+1 G 3i+1,2j+1 、B 3i+1,2j+1 ), (R 3i+2,2j+1 G 3i+2,2j+1 、B 3i+2,2j+1); In a target image window 18, 4 target pixels P' 2i,2j 、P' 2i+1,2j 、P' 2i,2j+1 、P' 2i+1,2j+1 The corresponding target sub-pixel values ​​are expressed as (R' 2i,2j G' 2i,2j B' 2i,2j ), (R' 2i+1,2j G' 2i+1,2j B' 2i+1,2j ), (R' 2i,2j+1 G' 2i,2j+1 B' 2i,2j+1 ), (R' 2i+1,2j+1 G' 2i+1,2j+1 B' 2i+1,2j+1 ).exist Figure 8 In the image, the target image window 18 is divided into six regions by two vertical dashed lines, with even-numbered rows and odd-numbered rows. These six regions correspond to the source pixel 12 in the source image window 17 and serve as the rendering pixel regions 19, 20, 21, 22, 23, and 24 within the target image window 18. Each rendering pixel region 19, 20, 21, 22, 23, and 24 contains two target image sub-pixels 15. In the even-numbered rows of the target image window 18, moving horizontally to the right, there are a first rendering pixel region 19, a second rendering pixel region 20, and a third rendering pixel region 21. The first rendering pixel region 19 includes the first red target image sub-pixel R'. 2i,2j and the first green target image sub-pixel G' 2i,2j The second rendered pixel region 20 includes the first blue target image sub-pixel B' 2i,2j Second red target image sub-pixel R' 2i+1,2j The third rendered pixel region 21 includes the second green target image sub-pixel G' 2i+1,2j Second blue target image sub-pixel B' 2i+1,2j The target image window 18 has a fourth rendering pixel region 22, a fifth rendering pixel region 23, and a sixth rendering pixel region 24 in the horizontal rightward direction of the odd-numbered rows. The fourth rendering pixel region 22 includes the third blue target image sub-pixel B'. 2i,2j+1 and the third green target image sub-pixel G' 2i,2j+1 The fifth rendered pixel region 23 includes the third red target image sub-pixel R' 2i,2j+1 and the fourth blue target image sub-pixel B' 2i+1,2j+1 The sixth rendered pixel region 24 includes the fourth red target image sub-pixel R' 2i+1,2j+1 and the fourth green target image sub-pixel G' 2i+1,2j+1 Based on the subpixel borrowing method, the first rendered pixel region 19 borrows the first blue target image subpixel B'.2i,2j The second rendered pixel region 20 borrows the second green target image sub-pixel G' 2i+1,2j The third rendered pixel region 21 borrows the second red target image sub-pixel R' 2i+1,2j The fourth rendered pixel region 22 borrows the third red target image sub-pixel R' 2i,2j+1 The fifth rendered pixel region 23 borrows the third green target image sub-pixel G' 2i,2j+1 The sixth rendered pixel region 24 borrows the fourth blue target image sub-pixel B' 2i+1,2j+1 The six target image sub-pixels 15 that need interpolation calculation based on the above borrowing relationship need to be calculated by weighting their original sub-pixel values ​​together with the original source image sub-pixels 16 in their respective source image 11 and the weighting factors, thus establishing the interpolation algorithm formula. The interpolation algorithm formula includes a first transformation formula and a second transformation formula. The even-numbered rows of the target image window 18 correspond to the first transformation formula, and the odd-numbered rows of the target image window 18 correspond to the second transformation formula.

[0094] The first conversion formula is:

[0095] R(G)′ 2i,2j =R(G) 3i,2j

[0096] B′ 2i,2j =α1B 3i,2j +(1-α1)B 3i+1,2j

[0097] R(G)′ 2i+1,2j =α2R(G) 3i+1,2j +(1-α2)R(G) 3i+2,2j

[0098] B′ 2i+1,2j =B 3i+2,2j ;

[0099] The second conversion formula is:

[0100] B′ 2i,2j+1 =B 3i,2j+1

[0101] R(G)′ 2i,2j+1 =β1R(G) 3i,2j+1 +(1-β1)R(G) 3i+1,2j+1

[0102] B′ 2i+1,2j+1 =β2B 3i+1,2j+1 +(1-β2)B 3i+2,2j+1

[0103] R(G)′ 2i+1,2j+1=R(G) 3i+2,2j+1 .

[0104] α1 and α2 in the first conversion formula and β1 and β2 in the second conversion formula are weighting factors. Through steps 211 to 216, the image information lost due to the reduction of factor pixels in the RGB-Delta type display panel is supplemented.

[0105] See Figure 9 In the sub-pixel rendering method of this embodiment 1, step 220 specifically includes:

[0106] Step 221: Obtain the original sub-pixel values ​​of the source image sub-pixels in the three source pixels of the odd or even rows within the source image window;

[0107] Step 222: Establish the judgment function, set the preset threshold and edge code;

[0108] Step 223: For the three color channels (red, green, and blue), calculate the difference in original sub-pixel values ​​between the source image sub-pixel located in the middle of the same odd or even row and the source image sub-pixels on the left and right.

[0109] Step 224: Calculate the judgment result of the judgment function based on the relationship between the pixel value difference and the preset threshold;

[0110] Step 225: Obtain the edge code based on the judgment result.

[0111] Specifically, in Steps 221 to 225, the rendering unit 10 corresponds to the texture information located in the odd or even rows of the source pixels 12. That is, each texture information is represented by three source image sub-pixels 16. If frequent jumps in pixel values ​​occur within a certain area of ​​the source image 11, it indicates that the texture information in that area is relatively complex; conversely, it indicates that the texture information in that area is relatively smooth. For example, if the original sub-pixel values ​​of the three source image sub-pixels 16 in a certain area are 255, 255, and 0, then the texture information of that area is represented as (255, 255, 0). The area composed of three source image sub-pixels 16 can be represented in nine forms, using edge codes. See also... Figure 10 In the source image window 17, three consecutive source pixels a, b, and c are arranged horizontally in even or odd rows. Since texture information can characterize the grayscale difference between two adjacent source pixels, a judgment function is established to determine the magnitude of the pixel value difference between source pixels a, b, and c for the three color channels R, G, and B, respectively, and to calculate the pixel value difference corresponding to source pixels a, b, and c. When calculating the judgment function, the original sub-pixel values ​​of source pixels a, b, and c are represented by V. a 、Vb 、V c This indicates that the judgment function is f(V). a -V b ), f(V c -V b ), f(V b –V a ), f(V b –V c These four judgment functions together form a code string, which is the edge code, represented as H(f(V)). a -V b ),f(V c -V b ),f(V b –V a ),f(V b –V c The edge code is a hexadecimal number. The preset threshold th, used to evaluate the magnitude of pixel value differences, is a value determined based on the specific application scenario of the RGB-Delta type display panel. If the pixel value difference is greater than the preset threshold, the judgment function outputs 1; if the pixel value difference is not greater than the preset threshold, the judgment function outputs 0. For example, V... a =240, V b =110, V c =200, th=50, then (V a -V b ) = 130 > th = 50, (V c -V b ) = 90 > th = 50, (V b –V a ) = -130 < th = 50, (V b –V c If )=﹣90<th=50, then the judgment results of the judgment function are f(V) a -V b )=1,f(V c -V b )=1,f(V b –V a )=0, f(V b –V c If ) = 0, the edge code, represented in hexadecimal, is H(1,1,0,0) = 0xC. In this example, there are grayscale value transitions between source pixel a and source pixel b, and between source pixel c and source pixel b. In RGB-Delta type display panels, the actual situation is far more complex than this example; there are eight other cases. These eight cases can also be used to derive corresponding edge codes from this example, which will not be elaborated upon here. Figure 11As shown, there are a total of 9 types of edge codes, corresponding to 0x0, 0x1, 0x2, 0x3, 0x4, 0x8, 0xC, 0x6, and 0x9. Dark borders represent low levels, white borders represent high levels, and gray borders are between low and high levels. Through steps 221 to 225, edge codes are used to visually present the texture information and color differences of three source pixels a, b, and c located in the same even or odd row in the source image window 17. This facilitates the allocation of weighting factors for each original sub-pixel value when calculating the target sub-pixel values ​​for different color channels, resulting in more complete image information and reduced image information loss in the rendered pixel regions 19, 20, 21, 22, 23, and 24 of the target image window 18.

[0112] See Figure 12 In the sub-pixel rendering method of this embodiment 1, step 230 specifically includes:

[0113] Step 231: Determine the type of edge code;

[0114] Step 232: When the edge code belongs to the first category, the weighting factor is obtained by minimizing the squared error based on the original sub-pixel value of the source image sub-pixel and the target sub-pixel value of the target image sub-pixel.

[0115] Step 233: When the edge code belongs to the second category, the weighting factor is obtained by assignment based on the original sub-pixel value of the source image sub-pixel and the target sub-pixel value of the target image sub-pixel.

[0116] In steps 231 to 233, the nine types of edge codes obtained are classified into two categories: those with small differences in pixel values ​​within rendering unit 10 and those with large differences in pixel values. Among them, the edge codes with small differences in pixel values ​​are 0x0, 0x6, and 0x9, which belong to the first category, and the edge codes with large differences in pixel values ​​are 0x1, 0x2, 0x3, 0x4, 0x8, and 0xC, which belong to the second category.

[0117] For the first type of edge code, since it indicates that the pixel values ​​between source pixel 12 are not significantly different, the squared error (SE) algorithm is used to represent the image difference between source image 11 and the rendered target image 13. A smaller SE indicates a smaller brightness difference between the rendered target image 13 and the source image 11, resulting in less image information loss. The formula for the squared error minimization algorithm is as follows:

[0118] The optimal values ​​of the weighting factors are obtained by calculating the first partial derivative of SE with respect to each weighting factor using the formula of the squared error minimization algorithm. Substituting the weighting factors α1, α2, β1, and β2 from the interpolation algorithm formula into the calculation, we get α1 = α2 = β1 = β2 = 0.5.

[0119] For the second type of edge code, since it indicates a large difference in pixel values ​​between source pixel 12, the weighting factors α1, α2, β1, and β2 are determined by direct assignment. For example, when the pixel values ​​of source pixels a, b, and c are (255, 255, 255), (255, 255, 255), and (0, 0, 0) respectively, the texture information of target pixel 14 after interpolation rendering is (255, 255, 255) and (128, 128, 0). This is equivalent to blurring two pixels at the edge during rendering. If source pixels a, b, and c are not interpolated, the pixel values ​​of target pixel 14 are (255, 255, 255) and (0, 0, 0), blurring only one pixel at the edge. Therefore, to reduce edge blurring, especially font edge blurring, the weighting factors α1, α2, β1, and β2 are directly assigned values. For edge codes of types 0x1 and 0x4, the weighting factors for even-numbered rows are assigned as α1 = 0.5 and α2 = 1, and the weighting factors for odd-numbered rows are assigned as β1 = 0.5 and β2 = 1. For edge codes of types 0x2 and 0x8, the weighting factors for even-numbered rows are assigned as α1 = 1 and α2 = 0.5, and the weighting factors for odd-numbered rows are assigned as β1 = 1 and β2 = 0.5. For edge codes of other types, the weighting factors for even-numbered rows are assigned as α1 = 0.5 and α2 = 0.5, and the weighting factors for odd-numbered rows are assigned as β1 = 0.5 and β2 = 0.5.

[0120] Through steps 231 to 233, weighting factors are calculated and assigned values ​​for different types of edge codes, thereby attenuating the color edge effect, reducing edge blur, and better rendering image details.

[0121] In the sub-pixel rendering method of this embodiment 1, the weighting factor determined by the above process can be further corrected by judging the relationship between the gray value deviation between two adjacent target pixels 14 and the preset threshold condition. See Figure 13 Step 200 also includes:

[0122] Step 240: Based on the weighting factor, obtain the target sub-pixel value of each target image sub-pixel in the target pixel according to the interpolation algorithm formula;

[0123] Step 250: Based on the target sub-pixel value, obtain the temporary grayscale value of the target pixel using the grayscale value formula;

[0124] Step 260: Calculate the gray value deviation of the temporary gray values ​​of two adjacent target pixels located in the same odd-numbered or even-numbered rows respectively;

[0125] Step 270: Determine the relationship between the grayscale value deviation and the upper and lower limits of the preset threshold conditions. If the grayscale value deviation is greater than the upper limit or less than the lower limit, proceed to Step 280; if the grayscale value deviation is neither greater than the upper limit nor less than the lower limit, proceed to Step 290.

[0126] Step 280: Adjust the weighting factor and assign it a value of 1;

[0127] Step 290: Do not adjust the weighting factor.

[0128] Specifically, the grayscale values ​​of target pixels 14 calculated using the weighting factors obtained in Steps 210 to 230 and substituted into the interpolation algorithm formula still exhibit grayscale value deviations. Since the magnitude of these deviations is uncertain, they can directly affect the color deviation between the displayed image and the original image, as well as the brightness of the displayed image information. Given that subpixel borrowing only occurs between two adjacent target pixels 14 in the horizontal direction during subpixel rendering, it is necessary to correct the aforementioned weighting factors α1, α2, β1, and β2 to eliminate the problem of large grayscale value deviations easily affecting the quality of the displayed image. First, the values ​​of the aforementioned weighting factors α1, α2, β1, and β2 are substituted into the interpolation algorithm formula to obtain the target subpixel values ​​(R') of each target image subpixel 15. 2i,2j G' 2i,2j B' 2i,2j ), (R' 2i+1,2j G' 2i+1,2j B' 2i+1,2j ), (R' 2i,2j+1 G' 2i,2j+1 B' 2i,2j+1 ), (R' 2i+1,2j+1 G' 2i+1,2j+1 B' 2i+1,2j+1 Based on these target sub-pixel values, temporary grayscale values ​​for the first rendering pixel region 19, the second rendering pixel region 20, the third rendering pixel region 21, the fourth rendering pixel region 22, the fifth rendering pixel region 23, and the sixth rendering pixel region 24 are calculated using the grayscale value formula. Each rendering pixel region corresponds to one actual display pixel. The grayscale value formula is: gray_P=0.299*R+0.578*G+0.114*B. Figure 4 Taking any pair of horizontally adjacent target pixels a and b in the target image window 18 shown as an example, in Figure 10In the target pixels a and b, the temporary grayscale value of target pixel a is gray_a, and the temporary grayscale value of target pixel b is gray_b. The grayscale value deviation between target pixels a and b is abs(gray_a - gray_b). Since the grayscale value deviation only represents the degree of brightness change between two adjacent target pixels a and b, the absolute value of the grayscale value deviation is kept positive. The preset threshold condition includes an upper limit value th. up and lower limit value th low upper limit th up and lower limit value th low It can be set according to actual needs, such as setting an upper limit value th. up =230, lower limit value th low =20. Grayscale value deviation exceeds the upper limit th. up This indicates a significant variation in black and white or brightness between two adjacent target pixels a and b, resulting in areas with large brightness discrepancies in the displayed image. Interpolation between adjacent target pixels a and b can lead to edge blurring. In this case, the weighting factors α1, α2, β1, and β2 can be directly assigned values; that is, when abs(gray_a-gray_b)>th up When α1 = α2 = β1 = β2 = 1.0, the grayscale value deviation is below the lower limit th. low This indicates that the variation in black and white or brightness between two adjacent target pixels a and b is relatively small, resulting in a smoother image. It forms a region with small brightness deviation in the displayed image. Even without interpolation calculations between adjacent target pixels a and b, there is no loss of image information, and most of the displayed image is a smooth region. It can also improve the rendering speed of sub-pixels to some extent. In this case, the weighting factors α1, α2, β1, and β2 can be directly assigned values, i.e., when abs(gray_a-gray_b)<th low At that time, α1=α2=β1=β2=1.0. The grayscale value deviation is within the upper limit value th. up and lower limit value th low When the values ​​are between, it means that the black-and-white or brightness changes between two adjacent target pixels a and b are significant, but interpolation will not cause edge blurring. However, not interpolating will result in information loss. In this case, the values ​​of weighting factors α1, α2, β1, and β2 are not adjusted. The values ​​of the weighting factors calculated through texture information in Step 200 are directly used to interpolate the gray values ​​of target pixels a and b.

[0129] The subpixel rendering method in this embodiment 1, for a specific RGB-delta arrangement, calculates the weighting factor used for interpolation rendering based on the principle of sharing subpixels on the display panel and minimizing the grayscale square error between the source and target images before and after rendering. This reduces image information loss and attenuates the color fringing effect to a certain extent. Furthermore, by judging the texture information of each source pixel in the horizontal direction in the source image, a direct assignment method is used for edge blurring, mitigating the blurring caused by the interpolation rendering calculation process and better rendering image details.

[0130] Example 2

[0131] Embodiment 2 of the present invention discloses a sub-pixel rendering system for an RGB-Delta type display panel. By using the sub-pixel rendering method for an RGB-Delta type display panel disclosed in Embodiment 1, it addresses the problems of image information loss and image boundary blurring caused by the triangular arrangement of the three RGB color channels in an AMOLED display panel with an RGB-Delta structure. By rendering the sub-pixels, the missing image information is supplemented, the blurring degree of image boundaries is reduced, thereby improving the image display quality of the AMOLED display panel.

[0132] See Figure 14 The subpixel rendering system of this embodiment 2 includes a mapping module 30, a first calculation module 40, and a second calculation module 50 that are interconnected. The mapping module 30 establishes a mapping relationship between source pixels of the source image and target pixels of the target image on the RGB-Delta type display panel through the rendering unit. The first calculation module 40 calculates the weighting factor in the interpolation algorithm formula established based on the mapping relationship. The second calculation module 50 calculates the target subpixel value of each target image subpixel in the target pixel using the weighting factor and the interpolation algorithm formula.

[0133] Specifically, in the pixel rendering process of the sub-pixel rendering system in Embodiment 2, the total number of pixels in the source image and the target image is the same. However, because the target image sub-pixels of the red, green, and blue color channels of each target pixel in the target image are arranged in a triangular pattern, the total number of target image sub-pixels is 1 / 3 less than that of each source image sub-pixel in the source image, and the total number of target pixels is also 1 / 3 less than the total number of source pixels. Here, the target pixel is not the actual pixel used for display on the target image, but rather the target image sub-pixels of the red, green, and blue color channels arranged in a triangular pattern are artificially divided together to form a complete target pixel. Therefore, the pixel division method is the same in both the source image and the target image. In the rendering unit, the number of target pixels is 1 / 3 less than that of source pixels, so the mapping module 30 needs to establish a mapping relationship between the source pixels and the target pixels, so that the information of the source pixels can be linked with the information of the target pixels through the mapping relationship, thereby reducing the loss of image information in the source pixels. Through mapping, a mathematical relationship is established between the target image sub-pixels of the target pixels in the target image and the source image sub-pixels of the source pixels in the source image. This relationship forms the interpolation algorithm formula. The first calculation module 40 calculates the target sub-pixel values ​​of the target image sub-pixels for the red, green, and blue color channels respectively. Because of their different original sub-pixel values, the source image sub-pixels of the red, green, and blue color channels in the source pixel generate different texture information. The combined texture information of each source pixel can characterize whether there are significant pixel value differences in the source image. The second calculation module 50 uses different assignment methods for cases with large and small pixel value differences, assigning weighting factors corresponding to the target sub-pixel values ​​of the target image sub-pixels for each color channel in the target pixel, reducing the color fringing effect in the target image and decreasing the degree of boundary blurring.

[0134] Example 3

[0135] Embodiment 3 of the present invention discloses a computer-readable storage medium storing a computer program that, when run on a computer, causes the computer to execute the sub-pixel rendering method for an RGB-Delta type display panel as disclosed in Embodiment 1.

[0136] Example 4

[0137] Embodiment 4 of the present invention discloses a computer program product, which includes a computer program that, when run on a computer, causes the computer to execute the sub-pixel rendering method for an RGB-Delta type display panel as disclosed in Embodiment 1.

[0138] The subpixel rendering method and system for RGB-Delta type display panels disclosed in this invention can reduce the loss of image information displayed on the display panel and reduce the edge blur of the display panel.

[0139] It should be understood that the above description of specific embodiments of the present invention is only for illustrating the technical approach and features of the present invention, and is intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. However, the present invention is not limited to the specific embodiments described above. All changes or modifications made within the scope of the claims of the present invention should be covered within the protection scope of the present invention.

Claims

1. A sub-pixel rendering method for an RGB-Delta type display panel, characterized in that, The method includes: establishing a mapping relationship between source pixels of the source image and target pixels of the target image on the RGB-Delta type display panel through a rendering unit; Calculate the weighting factors in the interpolation algorithm formula established based on the mapping relationship; specifically, calculating the weighting factors in the interpolation algorithm formula established based on the mapping relationship includes: Based on the mapping relationship, an interpolation algorithm formula is established using a sub-pixel borrowing method to obtain a weighting factor; by calculating the edge code of the source pixel in the horizontal direction, the texture information corresponding to the source pixel is obtained. The weighting factor is calculated based on the type of the edge code; The process of obtaining the texture information corresponding to the source pixel by calculating the edge code in the horizontal direction specifically includes: Get the original sub-pixel values ​​of the source image sub-pixels from three source pixels in odd or even rows within the source image window; Establish a judgment function and set preset thresholds and edge codes; For the three color channels (red, green, and blue), calculate the difference in original sub-pixel values ​​between the source image sub-pixel located in the middle of the same odd or even row and the source image sub-pixels on the left and right. The judgment result of the judgment function is calculated based on the relationship between the pixel value difference and the preset threshold. Based on the judgment result, the edge code is obtained; Based on the weighting factor, the target sub-pixel value of each target image sub-pixel in the target pixel is calculated using the interpolation algorithm formula.

2. The sub-pixel rendering method for an RGB-Delta type display panel according to claim 1, characterized in that, The process of establishing a mapping relationship between the source pixels of the source image and the target pixels of the target image on the RGB-Delta type display panel through the rendering unit specifically includes: Acquire a source image and a target image of an RGB-Delta type display panel. The source image includes multiple source pixels, each source pixel including source image sub-pixels with three color channels: red, green, and blue. The target image includes multiple target pixels, each target pixel including target image sub-pixels with three color channels: red, green, and blue. Establish a rendering unit, selecting a source image window in the source image and a target image window in the target image. The source image window includes 3×2 source pixels, and the target image window includes 2×2 target pixels. A mapping relationship is established between the source pixels and the target pixels based on the ratio of the number of source pixels to the number of target pixels within the rendering unit; Obtain the starting coordinates of the source pixel located at the starting position and the original coordinates of other source pixels in the source image window; Based on the mapping relationship, the source pixel starting coordinates, and the original coordinates, the starting coordinates of the target pixel located at the starting position in the target image window and the mapped coordinates of other target pixels are obtained.

3. The sub-pixel rendering method for an RGB-Delta type display panel according to claim 2, characterized in that, The weighting factor obtained by establishing an interpolation algorithm formula based on the aforementioned mapping relationship and using sub-pixel borrowing specifically includes: Based on the starting coordinates of the source pixel and the original coordinates, the original sub-pixel value expression corresponding to the original sub-pixel value of each source image sub-pixel in the source pixel is obtained; Based on the starting coordinates of the target pixel and the mapping coordinates, the target sub-pixel value expression corresponding to the target sub-pixel value of each target image sub-pixel in the target pixel is obtained; Based on the original sub-pixel value expression and the target sub-pixel value expression, 3×2 rendering pixel regions corresponding to the source pixel are established in the target image window, and each rendering pixel region includes two target image sub-pixels; For the even-numbered and odd-numbered rows of the target image window, the target image sub-pixels that need to be borrowed for each rendering pixel region are determined according to the sub-pixel borrowing method. For the three color channels (red, green, and blue), an interpolation algorithm formula is established based on the source image sub-pixels, the target image sub-pixels, and the borrowed target image sub-pixels to render the source image sub-pixels to the target image sub-pixels. Based on the interpolation algorithm formula, the weighting factor used to calculate the borrowed color channel sub-pixels is extracted.

4. The sub-pixel rendering method for an RGB-Delta type display panel according to claim 3, characterized in that, The even-numbered rows of the target image window have, in a horizontal direction to the right, a first rendering pixel region, a second rendering pixel region, and a third rendering pixel region. The first rendering pixel region includes a first red target image sub-pixel R'. 2i,2j and the first green target image sub-pixel G' 2i,2j The second rendered pixel region includes the first blue target image sub-pixel B' 2i,2j Second red target image sub-pixel R' 2i+1,2j The third rendered pixel region includes the second green target image sub-pixel G' 2i+1,2j Second blue target image sub-pixel B' 2i+1,2j ; The odd-numbered rows of the target image window have a fourth, a fifth, and a sixth rendering pixel region arranged sequentially to the right. The fourth rendering pixel region includes the third blue target image sub-pixel B'. 2i,2j+1 and the third green target image sub-pixel G' 2i,2j+1 The fifth rendered pixel region includes the third red target image sub-pixel R' 2i,2j+1 and the fourth blue target image sub-pixel B' 2i+1,2j+1 The sixth rendered pixel region includes the fourth red target image sub-pixel R' 2i+1,2j+1 and the fourth green target image sub-pixel G' 2i+1,2j+1 ; Based on the sub-pixel borrowing method, the first rendered pixel region borrows sub-pixel B' from the first blue target image. 2i,2j The second rendered pixel region borrows the second green target image sub-pixel G' 2i+1,2j The third rendered pixel region borrows the second red target image sub-pixel R' 2i+1,2j The fourth rendered pixel region borrows the third red target image sub-pixel R' 2i,2j+1 The fifth rendered pixel region borrows the third green target image sub-pixel G' 2i,2j+1 The sixth rendered pixel region borrows the fourth blue target image sub-pixel B' 2i+1,2j+1 .

5. The sub-pixel rendering method for an RGB-Delta type display panel according to claim 2 or 3, characterized in that, In the interpolation algorithm formula, the even-numbered rows of the target image window correspond to the first conversion formula, and the odd-numbered rows of the target image window correspond to the second conversion formula.

6. The sub-pixel rendering method for an RGB-Delta type display panel according to claim 1, characterized in that, The calculation of the weighting factor based on the type of the edge code specifically includes: Determine the type of the edge code; When the edge code belongs to the first category, the weighting factor is obtained by minimizing the squared error based on the original sub-pixel value of the source image sub-pixel and the target sub-pixel value of the target image sub-pixel. When the edge code belongs to the second category, the weighting factor is obtained by assignment based on the original sub-pixel value of the source image sub-pixel and the target sub-pixel value of the target image sub-pixel.

7. A sub-pixel rendering system for an RGB-Delta type display panel, characterized in that, The system includes an interconnected mapping module, a first computing module, and a second computing module. The mapping module is used to establish a mapping relationship between the source pixels of the source image and the target pixels of the target image on the RGB-Delta type display panel through the rendering unit; The first calculation module is used to calculate the weighting factor in the interpolation algorithm formula established based on the mapping relationship; The rendering unit establishes a mapping relationship between the source pixels of the source image and the target pixels of the target image on the RGB-Delta type display panel. Calculate the weighting factors in the interpolation algorithm formula established based on the mapping relationship; The calculation of the weighting factors in the interpolation algorithm formula based on the mapping relationship specifically includes: Based on the mapping relationship, an interpolation algorithm formula is established using a sub-pixel borrowing method to obtain a weighting factor; by calculating the edge code of the source pixel in the horizontal direction, the texture information corresponding to the source pixel is obtained. The weighting factor is calculated based on the type of the edge code; The process of obtaining the texture information corresponding to the source pixel by calculating the edge code in the horizontal direction specifically includes: Get the original sub-pixel values ​​of the source image sub-pixels from three source pixels in odd or even rows within the source image window; Establish a judgment function and set preset thresholds and edge codes; For the three color channels (red, green, and blue), calculate the difference in original sub-pixel values ​​between the source image sub-pixel located in the middle of the same odd or even row and the source image sub-pixels on the left and right. The judgment result of the judgment function is calculated based on the relationship between the pixel value difference and the preset threshold. Based on the judgment result, the edge code is obtained; the second calculation module is used to calculate the target sub-pixel value of each target image sub-pixel in the target pixel by weighting it according to the weighting factor and the interpolation algorithm formula.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a computer, causes the computer to perform the subpixel rendering method for an RGB-Delta type display panel as described in any one of claims 1 to 6.

9. A computer program product, characterized in that, The computer program product includes a computer program that, when run on a computer, causes the computer to perform the subpixel rendering method for an RGB-Delta type display panel as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Sub-pixel rendering method and device

    CN110047417A

  • Pixel Mapping and Rendering Methods for Displays with White Subpixels

    US20150371605A1