CN116095399A - Sub-pixel rendering method and system of RGB-Delta type display panel - Google Patents

Sub-pixel rendering method and system of RGB-Delta type display panel Download PDF

Info

Publication number
CN116095399A
CN116095399A CN202211411091.9A CN202211411091A CN116095399A CN 116095399 A CN116095399 A CN 116095399A CN 202211411091 A CN202211411091 A CN 202211411091A CN 116095399 A CN116095399 A CN 116095399A
Authority
CN
China
Prior art keywords
pixel
sub
target
source
target image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211411091.9A
Other languages
Chinese (zh)
Inventor
潘建红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Glenfly Tech Co Ltd
Original Assignee
Glenfly Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Glenfly Tech Co Ltd filed Critical Glenfly Tech Co Ltd
Priority to CN202211411091.9A priority Critical patent/CN116095399A/en
Publication of CN116095399A publication Critical patent/CN116095399A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44012Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a sub-pixel rendering method and a sub-pixel rendering system of an RGB-Delta display panel, wherein the method comprises the steps of establishing a mapping relation between a source pixel of a source image and a target pixel of a target image on the RGB-Delta display panel through a rendering unit; calculating a weighting factor in an interpolation algorithm formula established based on the mapping relation; and weighting and calculating the target sub-pixel value of each target image sub-pixel in the target pixel through an interpolation algorithm formula according to the weighting factors. The system includes a mapping module, a first computing module, and a second computing module. The technical scheme of the invention can reduce the loss of the image information displayed on the display panel and reduce the edge blurring degree of the display panel.

Description

Sub-pixel rendering method and system of RGB-Delta type display panel
Technical Field
The invention relates to the technical field of image display, in particular to a sub-pixel rendering method and a sub-pixel rendering system of an RGB-Delta type display panel.
Background
AMOLED (Active-matrix organic light-emitting diode) screen RGB (Red Green Blue, red-Green-Blue color mode, representing the colors of three channels of Red, green and Blue) sub-pixels are made of Red-Green-Blue self-luminous organic materials, and a person skilled in the art often solves the problems of high manufacturing cost and increased driving circuit design difficulty by changing the arrangement of the sub-pixels and reducing the number of the sub-pixels.
In the prior art, the structure of the subpixel arrangement includes many kinds of RGB-stripe structure, RGB-delta structure, RGBG structure, etc. In the RGB-delta structure, R/G/B is distributed in a triangle, and compared with the RGB-strip structure, the number of R/G/B sub-pixels is reduced by 1/3 respectively, which is equivalent to the effect of using the physical resolution of 2/3 of the traditional RGB screen to achieve the traditional RGB screen. Therefore, the sub-pixels need to be rendered to determine the gray scale value of each sub-pixel on the panel, and the processed image is displayed on the panel by the driving circuit.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides a sub-pixel rendering method and a sub-pixel rendering system of an RGB-Delta type display panel, aiming at the problem that the display panel arranged in an RGB-Delta structure in the prior art is easy to cause image information loss and influence display quality.
In order to achieve the above purpose, the present invention is realized by the following technical scheme:
in a first aspect, the present invention provides a sub-pixel rendering method of an RGB-Delta display panel, the method comprising:
establishing a mapping relation between a source pixel of a source image and a target pixel of a target image on an RGB-Delta type display panel through a rendering unit;
Calculating a weighting factor in an interpolation algorithm formula established based on the mapping relation;
and according to the weighting factors, weighting and calculating the target sub-pixel value of each target image sub-pixel in the target pixel through the interpolation algorithm formula.
In a preferred embodiment of the present application, in establishing, by the rendering unit, a mapping relationship between a source pixel of a source image and a target pixel of a target image on an RGB-Delta type display panel, specifically includes:
acquiring a source image and a target image of an RGB-Delta type display panel, wherein the source image comprises a plurality of source pixels, each source pixel comprises source image sub-pixels of red, green and blue 3 color channels, the target image comprises a plurality of target pixels, and each target pixel comprises target image sub-pixels of the red, green and blue 3 color channels;
a rendering unit is established, a source image window is selected from the source image and a target image window is selected from the target image, the source image window comprises 3 multiplied by 2 source pixels, and the target image window comprises 2 multiplied by 2 target pixels;
establishing a mapping relation between the source pixel and the target pixel according to the quantity ratio of the source pixel to the target pixel in the rendering unit;
Acquiring a source pixel initial coordinate positioned at an initial position and original coordinates of other source pixels in the source image window;
and obtaining the initial coordinates of the target pixels and the mapping coordinates of other target pixels positioned at the initial position in the target image window according to the mapping relation, the initial coordinates of the source pixels and the original coordinates.
In a preferred embodiment of the present application, the calculating the weighting factor in the interpolation algorithm formula established based on the mapping relation specifically includes:
based on the mapping relation, establishing an interpolation algorithm formula in a sub-pixel borrowing mode to obtain a weighting factor;
obtaining texture information corresponding to the source pixel by calculating an edge code of the source pixel in the horizontal direction;
and calculating the weighting factor according to the type of the edge code.
In a preferred embodiment of the present application, in establishing an interpolation algorithm formula in a subpixel borrowing manner based on the mapping relationship, the weighting factor is obtained specifically including:
obtaining an original sub-pixel value expression corresponding to an original sub-pixel value of each source image sub-pixel in the source pixel according to the source pixel starting coordinate and the original coordinate;
Obtaining target sub-pixel value expressions corresponding to target sub-pixel values of all target image sub-pixels in the target pixel according to the target pixel starting coordinates and the mapping coordinates;
establishing 3×2 rendering pixel areas corresponding to the source pixels in the target image window based on the original subpixel value expression and the target subpixel value expression, wherein each rendering pixel area comprises two target image subpixels;
determining target image sub-pixels to be borrowed for each rendering pixel area according to a sub-pixel borrowing mode aiming at even lines and odd lines of the target image window;
establishing an interpolation algorithm formula for rendering the source image sub-pixel to the target image sub-pixel according to the source image sub-pixel, the target image sub-pixel and the borrowed target image sub-pixel aiming at the red, green and blue 3 color channels;
and extracting weighting factors for calculating the borrowed color channel sub-pixels according to the interpolation algorithm formula.
In a preferred embodiment of the present application, there are sequentially in the horizontal right direction of the even-numbered rows of the target image window a first rendered pixel region including a first red target image subpixel R ', a second rendered pixel region, and a third rendered pixel region' 2i,2j And a first green target image subpixel G' 2i,2j The second rendering pixel region includes a first blue target image sub-pixel B' 2i,2j And a second red target image subpixel R' 2i+1,2j The third rendered pixel region includes a second green target image subpixel G' 2i+1,2j And a second blue target image subpixel B' 2i+1,2j
A fourth rendering pixel area, a fifth rendering pixel area and a sixth rendering pixel area are sequentially arranged in the horizontal right direction of the odd-numbered lines of the target image window, wherein the fourth rendering pixel area comprises a third blue target image sub-pixel B '' 2i,2j+1 And a third green target image subpixel G' 2i,2j+1 The fifth rendered pixel region includes a third red target image subpixel R' 2i,2j+1 And a fourth blue target image subpixel B' 2i+1,2j+1 The sixth rendered pixel region includes a fourth red target image subpixel R' 2i+1,2j+1 And fourthGreen target image subpixel G' 2i+1,2j+1
Based on a sub-pixel borrowing mode, the first rendering pixel region borrows a first blue target image sub-pixel B' 2i,2j The second rendering pixel region borrows a second green target image sub-pixel G' 2i+1,2j The third rendering pixel region borrows the second red target image sub-pixel R' 2i+1,2j The fourth rendering pixel region borrows the third red target image sub-pixel R' 2i,2j+1 The fifth rendering pixel region borrows the third green target image sub-pixel G' 2i,2j+1 The sixth rendering pixel region borrows the fourth blue target image sub-pixel B' 2i+1,2j+1
In a preferred embodiment of the present application, in the interpolation algorithm formula, the even-numbered lines of the target image window correspond to a first conversion formula, and the odd-numbered lines of the target image window correspond to a second conversion formula.
In a preferred embodiment of the present application, the obtaining texture information corresponding to the source pixel by calculating an edge code of the source pixel in a horizontal direction specifically includes:
acquiring original sub-pixel values of source image sub-pixels in three source pixels of odd lines or even lines in the source image window;
establishing a judging function, and setting a preset threshold value and an edge code;
for the red, green and blue 3 color channels, respectively calculating pixel value differences of original sub-pixel values between the source image sub-pixels positioned in the middle and the source image sub-pixels positioned on the left and right sides in the same odd line or even line;
calculating a judging result of the judging function according to the magnitude relation between the pixel value difference and a preset threshold value;
and obtaining the edge code according to the judging result.
In a preferred embodiment of the present application, in calculating the weighting factor according to the type of the edge code, specifically includes:
judging the type of the edge code;
when the edge codes belong to the first class, obtaining the weighting factors through a square error minimization algorithm based on the original sub-pixel values of the source image sub-pixels and the target sub-pixel values of the target image sub-pixels;
and when the edge code belongs to the second class, the weighting factors are obtained through an assignment mode based on the original sub-pixel values of the source image sub-pixels and the target sub-pixel values of the target image sub-pixels.
In a second aspect, the present invention provides a sub-pixel rendering system of an RGB-Delta display panel, the system including a mapping module, a first computing module, and a second computing module connected to each other;
the mapping module is used for establishing a mapping relation between a source pixel of a source image and a target pixel of a target image on the RGB-Delta type display panel through the rendering unit;
the first calculation module is used for calculating a weighting factor in an interpolation algorithm formula established based on the mapping relation;
and the second calculation module is used for calculating the target sub-pixel value of each target image sub-pixel in the target pixel in a weighting mode through the interpolation algorithm formula according to the weighting factors.
In a third aspect, the present invention provides a computer readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the sub-pixel rendering method of an RGB-Delta type display panel as described in the first aspect.
In a fourth aspect, the present invention provides a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the sub-pixel rendering method of an RGB-Delta type display panel as described in the first aspect.
The sub-pixel rendering method and the sub-pixel rendering system of the RGB-Delta type display panel can reduce the loss of image information displayed on the display panel and the edge blurring degree of the display panel.
Drawings
The invention is described with the aid of the following figures:
FIG. 1 is a flow chart of a sub-pixel rendering method of an RGB-Delta display panel of embodiment 1 of the present invention;
FIG. 2 is a flowchart of Step100 in the sub-pixel rendering method of the RGB-Delta type display panel of the embodiment 1 of the present invention;
FIG. 3 is a schematic view of a source image in the sub-pixel rendering method of the RGB-Delta display panel of the embodiment 1 of the present invention;
FIG. 4 is a schematic diagram of a target image in the sub-pixel rendering method of the RGB-Delta display panel of the embodiment 1 of the present invention;
FIG. 5 is a schematic diagram of mapping relation in the sub-pixel rendering method of the RGB-Delta display panel of the embodiment 1 of the present invention;
FIG. 6 is a flowchart of Step200 in the sub-pixel rendering method of the RGB-Delta type display panel of embodiment 1 of the present invention;
FIG. 7 is a flowchart of Step210 in the sub-pixel rendering method of the RGB-Delta type display panel of embodiment 1 of the present invention;
FIG. 8 is a schematic diagram of a sub-pixel borrowing method in the RGB-Delta type display panel of the embodiment 1 of the present invention;
FIG. 9 is a flowchart of Step220 in the sub-pixel rendering method of the RGB-Delta type display panel of embodiment 1 of the present invention;
FIG. 10 is a schematic diagram of source pixels in even lines or odd lines in a sub-pixel rendering method of an RGB-Delta display panel according to embodiment 1 of the present invention;
FIG. 11 is a schematic diagram of source pixels corresponding to 9 types of edge codes in the sub-pixel rendering method of the RGB-Delta type display panel of the embodiment 1 of the present invention;
FIG. 12 is a flowchart of Step230 in the sub-pixel rendering method of the RGB-Delta type display panel of embodiment 1 of the present invention;
FIG. 13 is another specific flowchart of Step200 in the sub-pixel rendering method of the RGB-Delta type display panel of the embodiment 1 of the present invention;
fig. 14 is a schematic diagram of a sub-pixel rendering system of an RGB-Delta display panel of embodiment 2 of the present invention.
Reference numerals:
a 10-rendering unit; 11-source image; 12-source pixels; 13-target image; 14-target pixels; 15-target image subpixels; 16-source image subpixels; 17-a source image window; 18-a target image window; 19-a first rendered pixel region; 20-a second rendered pixel area; 21-a third rendered pixel region; 22-fourth rendered pixel regions; 23-fifth rendering pixel areas; 24-sixth rendered pixel regions; a 30-mapping module; 40-a first calculation module; 50-a second calculation module; r-red channel; g-green channel; b-blue channel.
Detailed Description
For a better understanding of the technical solutions of the present application, embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Example 1
The embodiment 1 of the invention discloses a sub-pixel rendering method of an RGB-Delta display panel, which is used for solving the problems of image information loss and image boundary blurring caused by triangular arrangement of RGB three color channels in an AMOLED display panel with an RGB-Delta structure, and reducing the blurring degree of the image boundary by supplementing the missing image information through rendering sub-pixels, so that the image display quality of the AMOLED display panel is improved.
Referring to fig. 1, the sub-pixel rendering method of the present embodiment 1 includes:
step100: establishing a mapping relation between a source pixel of a source image and a target pixel 14 of a target image 13 on an RGB-Delta type display panel through a rendering unit;
step200: calculating a weighting factor in an interpolation algorithm formula established based on the mapping relation;
step300: and weighting and calculating the target sub-pixel value of each target image sub-pixel in the target pixel through an interpolation algorithm formula according to the weighting factors.
Specifically, in Step100 to Step300, the total number of pixels of the source image 11 and the target image 13 is the same, but since the target image sub-pixels 15 of the red, green and blue 3 color channels R, G and B of each target pixel 14 in the target image 13 are arranged in a triangle, the total number of the target image sub-pixels 15 is 1/3 less than the total number of the source image sub-pixels 16 of each source pixel 12 in the source image 11, and the total number of the target pixels 14 is 1/3 less than the total number of the source pixels 12. Here, the target pixel 14 is not an actual pixel used for display on the target image 13, but the target image sub-pixels 15 of the red, green, and blue 3 color channels R, G, B arranged in a triangle are artificially divided together, thereby forming one complete target pixel 14. The manner of pixel division is the same in both the source image 11 and the target image 13. In the rendering unit 10, the number of target pixels 14 is 1/3 less than the number of source pixels 12, so that a mapping relationship needs to be established between the source pixels 12 and the target pixels 14, so that the information of the source pixels 12 can be linked with the information of the target pixels 14 through the mapping relationship, to reduce the loss of image information in the source pixels 12. Through the mapping relationship, the mathematical relationship between the target image sub-pixel 15 of the target pixel 14 in the target image 13 and the source image sub-pixel 16 of the source pixel 12 in the source image 11 is an interpolation algorithm formula to calculate the target sub-pixel values of the target image sub-pixels 15 of the red, green and blue 3 color channels R, G and B respectively. The source image sub-pixels 16 of the red, green and blue 3 color channels R, G and B in the source pixel 12 generate different texture information due to different original sub-pixel values, so that whether the source image 11 has larger pixel value difference can be represented, different assignment modes are adopted for the condition of large pixel value difference and the condition of small pixel value difference, weighting factors corresponding to the target sub-pixel values of the target image sub-pixels 15 of the color channels R, G and B in the target pixel 14 are assigned, color edge effects in the target image 13 are reduced, and the boundary blurring degree is reduced.
Referring to fig. 2, in the subpixel rendering method of embodiment 1, step100 specifically includes:
step110: acquiring a source image and a target image 13 of an RGB-Delta type display panel;
step120: establishing a rendering unit, namely selecting a source image window 17 from a source image and a target image window 18 from a target image 13;
step130: establishing a mapping relation between the source pixel and the target pixel 14 according to the quantity ratio of the source pixel and the target pixel 14 in the rendering unit;
step140: acquiring a source pixel starting coordinate positioned at a starting position in a source image window 17 and original coordinates of other source pixels;
step150: and obtaining the starting coordinates of the target pixels 14 positioned at the starting positions in the target image window 18 and the mapping coordinates of other target pixels 14 according to the mapping relation, the starting coordinates of the source pixels and the original coordinates.
Specifically, the sub-pixel rendering method of the present embodiment 1 is directed to an RGB-Delta type display panel, and renders the image information of the source image 11 into the target image 13 by means of sub-pixel rendering, as shown in fig. 3 and 4, the source image 11 includes a plurality of source pixels 12, each source pixel 12 includes a source image sub-pixel 16 of red, green and blue 3 color channels R, G, B, the target image 13 includes a plurality of target pixels 14, and each target pixel 14 includes a target image sub-pixel 15 of red, green and blue 3 color channels R, G, B. In the concrete flow of Step100, sub-pixel rendering is performed stepwise by dividing the source image 11 and the target image 13 into a plurality of areas, which are the rendering units 10, by selecting a plurality of source pixels 12 in the source image 11 and a plurality of target pixels 14 in the target image 13, a source image window 17 and a target image window 18 having the same size are created as minimum units of sub-pixel rendering, and since the number of target pixels 14 included in the target image 13 is 1/3 smaller than the number of source pixels 12 included in the source image window 17 in the RGB-Delta type display panel, the number of target pixels 14 included in the target image 13 is also 1/3 smaller than the number of source pixels 12 included in the source image window 17, as shown in fig. 3 and 4, the source image window 17 includes 3×2 source pixels 12, and the target image window 18 includes 2×2 target pixels 14. Because the number of source pixels 12 is different from the number of target pixels 14, a mapping relationship needs to be established to map the original coordinates of the source pixels 12 representing the locations of the values of the respective source image sub-pixels 16 into the respective target image sub-pixels 15 in the target pixels 14. Referring to fig. 5, the source pixels 12 located on the even and odd lines 2j and 2j+1 are mapped to the target pixels 14 also located on the even and odd lines 2j and 2j+1, respectively, 3 source pixels 12 are located in the source image window 17 and 2 target pixels 14 are located in the target image window 18 on the same even or odd line 2j+1, so that the mapping coordinate of the target pixels 14 is equal to 2/3 of the original coordinate of the source pixels 12 as the mapping coordinate between the source pixels 12 and the target pixels 14. The source pixel 12 located at the upper left corner of the source image window 17 is defined as a start position, and its coordinates are the source pixel start coordinates (3 i,2 j), and the target pixel 14 located at the upper left corner of the target image window 18 is the corresponding target pixel 14, and the coordinates of the target pixel 14 are the target pixel start coordinates (2 i,2 j) according to the above-mentioned mapping relation. By analogy, based on the original coordinates (3i, 2j), (3i+1, 2j), (3i+2, 2j), (3i, 2j+1), (3i+1, 2j+1), (3i+2, 2j+1) of the 6 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 4 target pixels 14 in the target image window 18 can be obtained through the mapping relationship. By establishing the mapping relationship between the source pixel 12 and the target pixel 14 in Step100, the association relationship between the target pixel 14 and the source pixel 12 can be characterized, so as to facilitate calculation of the target subpixel values of the target image subpixels 15 of the red, green and blue 3 color channels R, G and B in the target pixel 14.
Referring to fig. 6, in the subpixel rendering method of the present embodiment 1, step200 specifically includes:
step210: based on the mapping relation, establishing an interpolation algorithm formula in a sub-pixel borrowing mode to obtain a weighting factor;
step220: obtaining texture information corresponding to the source pixels by calculating edge codes of the source pixels in the horizontal direction;
step230: the weighting factor is calculated based on the type of edge code.
In contrast to fig. 3 and fig. 4, in the rendering unit 10, one source image window 17 originally includes 6 source pixels 12 and 18 source image sub-pixels 16, and the corresponding target image window 18 includes only 4 target pixels 14 and 12 target image sub-pixels 15, but as mentioned above, the target pixel 14 is not the pixel actually used for displaying an image in the target image 13, and includes only 2 target image sub-pixels 15 at the corresponding position of each source pixel 12, and compared with 3 source image sub-pixels 16 included in each source pixel 12 in the source image window 17, 1 color channel is reduced in number, so that a complete pixel needs to be formed by using the target image sub-pixels 15 at the corresponding position of the adjacent source pixel 12, for example, only the target image sub-pixels 15 of the red-green 2 color channels R and G need to be used, and the target image sub-pixels 15 of the blue color channel B need to be used, and the pixel of the target image window 18 is complemented by the pixel of the missing target image sub-pixel 15 of the 3 channels corresponding to the source pixel 12 in the target image window 18; the borrowed target sub-pixel value of the target image sub-pixel 15 is calculated 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 red, green and blue 3 color channels R, G and B respectively through an interpolation algorithm formula, and the weighting factors corresponding to the target sub-pixel values of the red, green and blue 3 color channels R, G and B are obtained by weighting each original sub-pixel value in the interpolation algorithm formula. As shown in fig. 5, in the even-numbered or odd-numbered lines of the source image 11, the difference between 3 adjacent source pixels 12 generates different patterns, and when the patterns are combined together, the image information included is texture information, the texture information is represented by edge codes, the edge codes are obtained by calculating pixel values of the 3 adjacent source pixels 12, and the respective edge codes are calculated according to the red, green and blue 3 color channels R, G and B, respectively, so as to obtain texture information, and the texture information shows gray jump variation between the 3 adjacent source pixels 12. Therefore, by analyzing the type of the edge code, the magnitude of the pixel value difference and the case of the gradation jump deterioration are analyzed to calculate the weighting factor in each case. The weighting factors calculated in steps Step210 to Step230 can prevent the problem of information loss in the image displayed on the display panel and reduce or eliminate the edge blurring.
Referring to fig. 7, in the subpixel rendering method of the present embodiment 1, step210 specifically includes:
step211: obtaining an original sub-pixel value representation corresponding to the original sub-pixel value of each source image sub-pixel 16 in the source pixel according to the source pixel starting coordinate and the original coordinate;
step212: obtaining target sub-pixel value expressions corresponding to target sub-pixel values of all target image sub-pixels 15 in the target pixel 14 according to the initial coordinates and the mapping coordinates of the target pixel 14;
step213: based on the original sub-pixel value expression and the target sub-pixel value expression, establishing 3×2 rendered pixel areas corresponding to the source pixels in the target image window 18, each rendered pixel area including two target image sub-pixels 15, respectively;
step214: for even lines and odd lines of the target image window 18, determining target image sub-pixels 15 to be borrowed for each rendering pixel area according to a sub-pixel borrowing mode;
step215: for the red, green and blue 3 color channels, establishing an interpolation algorithm formula for rendering the source image sub-pixel 16 to the target image sub-pixel 15 according to the source image sub-pixel 16, the target image sub-pixel 15 and the borrowed target image sub-pixel 15;
Step216: and extracting weighting factors for calculating the borrowed color channel sub-pixels according to an interpolation algorithm formula.
Specifically, based on the mapping coordinates of each target pixel 14 obtained in steps Step110 to Step150, the target subpixel value expression corresponding to the target subpixel value of the target image subpixel 15 of red, green, and blue 3 color channels R, G, and B in each target pixel 14 can be obtained. As shown in fig. 5 and 8, in one source image window 17, 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 raw subpixel 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 ) The method comprises the steps of carrying out a first treatment on the surface of the In one 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 'respectively' 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 ). In fig. 8, the target image window 18 is divided by two vertical dashed lines into 6 areas in even and odd rows, the 6 areas corresponding to the source pixels 12 in the source image window 17 as rendering pixel areas 19,20,21,22,23,24 within the target image window 18, two target image sub-pixels 15 being included in each rendering pixel area 19,20,21,22,23, 24. The first, second and third rendering pixel regions 19,20 and 21 are sequentially provided in the horizontal right direction of the even-numbered rows of the target image window 18, the first rendering pixel region 19 including a first red target image subpixel R' 2i,2j And a first green target image subpixel G' 2i,2j The second rendered pixel region 20 includes a first blue target image subpixel B' 2i,2j And a second red target image subpixel R' 2i+1,2j The third rendered pixel region 21 includes a second green target image subpixel G' 2i+1,2j And a second blue target image subpixel B' 2i+1,2j The method comprises the steps of carrying out a first treatment on the surface of the A fourth rendering pixel region 22, a fifth rendering pixel region 23, and a sixth rendering pixel region 24 are sequentially provided in the horizontal right direction of the odd numbered rows of the target image window 18, the fourth rendering pixel region 22 including a third blue target image sub-pixel B' 2i,2j+1 And a third green target image subpixel G' 2i,2j+1 Fifth renderingThe pixel region 23 includes a third red target image subpixel R' 2i,2j+1 And a fourth blue target image subpixel B' 2i+1,2j+1 The sixth rendered pixel region 24 includes a fourth red target image subpixel R' 2i+1,2j+1 And a fourth green target image subpixel G' 2i+1,2j+1 The method comprises the steps of carrying out a first treatment on the surface of the Based on the sub-pixel borrowing manner, the first rendering pixel region 19 borrows the first blue target image sub-pixel B' 2i,2j The second rendered pixel region 20 borrows the second green target image subpixel G' 2i+1,2j The third rendered pixel region 21 borrows the second red target image subpixel R' 2i+1,2j The fourth rendered pixel region 22 borrows the third red target image subpixel R' 2i,2j+1 The fifth rendered pixel region 23 borrows the third green target image subpixel G' 2i,2j+1 The sixth rendered pixel region 24 borrows the fourth blue target image subpixel B' 2i+1,2j+1 . The 6 target image sub-pixels 15 to be interpolated according to the borrowing relation are required to be obtained by weighting and calculating the original sub-pixel values of the source image sub-pixels 16 in the source image 11 and the source pixels 12 adjacent to the source pixel 12 respectively, thereby establishing an interpolation algorithm formula. The interpolation algorithm formula includes a first conversion formula corresponding to the even numbered lines of the target image window 18 and a second conversion formula corresponding to the odd numbered lines of the target image window 18.
Wherein, the first conversion formula is:
R(G)′ 2i,2j =R(G) 3i,2j
B′ 2i,2j =α 1 B 3i,2j +(1-α 1 )B 3i+1,2j
R(G)′ 2i+1,2j =α 2 R(G) 3i+1,2j +(1-α 2 )R(G) 3i+2,2j
B′ 2i+1,2j =B 3i+2,2j
the second conversion formula is:
B′ 2i,2j+1 =B 3i,2j+1
R(G)′ 2i,2j+1 =β 1 R(G) 3i,2j+1 +(1-β 1 )R(G) 3i+1,2j+1
B′ 2i+1,2j+1 =β 2 B 3i+1,2j+1 +(1-β 2 )B 3i+2,2j+1
R(G)′ 2i+1,2j+1 =R(G) 3i+2,2j+1
alpha in the first conversion formula 1 And alpha 2 Beta in the second conversion formula 1 And beta 2 I.e. the weighting factor. The steps Step211 to Step216 complement the missing image information of the RGB-Delta display panel due to the reduction of the factor pixels.
Referring to fig. 9, in the subpixel rendering method of the present embodiment 1, step220 specifically includes:
step221: acquiring original sub-pixel values of source image sub-pixels in three source pixels of odd lines or even lines in a source image window;
Step222: establishing a judging function, and setting a preset threshold value and an edge code;
step223: for the red, green and blue 3 color channels, respectively calculating pixel value differences of original sub-pixel values between the source image sub-pixels positioned in the middle and the source image sub-pixels positioned on the left and right sides in the same odd line or even line;
step224: calculating a judging result of a judging function according to the magnitude relation between the pixel value difference and a preset threshold value;
step225: and obtaining an edge code according to the judging result.
Specifically, in Step221 to Step225, the texture information in the odd or even rows in the source pixel 12 corresponds to the texture information in the rendering unit 10, that is, the 3 source image sub-pixels 16 represent one texture information, and if a frequent jump of the pixel value occurs in a certain area of the source image 11, the texture information representing the area is relatively complex, and otherwise, the texture information representing the area is relatively smooth. For example, the original subpixel values of 3 source image subpixels 16 in a region are 255, and 0, respectively, then the texture information for that region is represented as (255,255,0). The region of 3 source image subpixels 16 can be represented in 9 forms, usingEdge code. Referring to fig. 10, in the source image window 17, 3 consecutive source pixels a, B, c of even or odd lines are arranged in the horizontal direction, and since texture information can characterize the gray scale jump difference between two adjacent source pixels, a judgment function is established to judge the magnitude of the pixel value difference between the source pixels a, B, c for the red, green, and blue 3 color channels R, G, B, respectively, and calculate the pixel value difference corresponding to the source pixels a, B, c. In calculating the judgment function, the original sub-pixel values of the source pixels a, b and c are obtained by using V a 、V b 、V c The judgment function is f (V a -V b )、f(V c -V b )、f(V b –V a )、f(V b –V c ) The 4 judgment functions together form a code string, which is an edge code, expressed 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, which is used for evaluating the difference of the pixel values, is a value determined according to the specific application scene of the RGB-Delta type display panel, if the difference of the pixel values is greater than the preset threshold, the judgment result of the judgment function is output as 1, and if the difference of the pixel values is not greater than the preset threshold, the judgment result of the judgment function is output as 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 ) When = -90 < th=50, 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 ) The edge code is represented by hexadecimal number H (1, 0) =0xc. In this example, gray value jumps exist between the source pixel a and the source pixel b and between the source pixel c and the source pixel b, and in the RGB-Delta display panel, the actual situation is far more than this example, and there are other 8 situations, and these 8 situations can also obtain the corresponding edge code according to this example, which is not described herein again. As shown in the figure11, the types of the edge codes are totally 9 kinds, and the corresponding edge codes are respectively 0x0, 0x1, 0x2, 0x3, 0x4, 0x8, 0xC, 0x6 and 0x9, wherein the dark pattern box represents a low level, the white pattern box represents a high level, and the gray pattern box is between the low level and the high level. Through steps 221-225, the texture information and the color difference of 3 source pixels a, b and c in the same even row or odd row in the source image window 17 are intuitively presented by adopting edge codes, so that the weighting factors of the original sub-pixel values corresponding to the target sub-pixel values of different color channels are conveniently distributed when the target sub-pixel values are calculated, and the image information complemented by the rendering pixel areas 19,20,21,22,23 and 24 in the target image window 18 is more complete and the image information loss is reduced.
Referring to fig. 12, in the subpixel rendering method of the present embodiment 1, step230 specifically includes:
step231: judging the type of the edge code;
step232: when the edge codes belong to the first class, obtaining a weighting factor through a square error minimization algorithm 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;
step233: when the edge code belongs to the second class, the weighting factors are obtained through an assignment mode based on the original sub-pixel values of the source image sub-pixels and the target sub-pixel values of the target image sub-pixels.
In steps 231 to Step233, the obtained 9 types of edge codes are classified into two types, namely, the edge codes with small pixel value differences and the edge codes with large pixel value differences in the rendering unit 10 are classified into a first type, wherein 3 types, namely, the edge codes with small pixel value differences are 0x0, 0x6 and 0x9, and 6 types, namely, the edge codes with large pixel value differences are 0x1, 0x2, 0x3, 0x4, 0x8 and 0xC, belong to a second type.
For the first type of edge code, since it indicates that the difference of pixel values between the source pixels 12 is not large, a Square Error (SE) algorithm is used to indicate the difference of images between the source image 11 and the rendered target image 13, and if SE is smaller, it indicates that the difference of brightness between the rendered target image 13 and the source image 11 is smaller, and then the loss of image information is smaller. The formula of the square error minimization algorithm is as follows:
Figure BDA0003938564940000181
The first partial differentiation of SE to each weighting factor is calculated by the formula of the square error minimization algorithm to obtain the optimal value of the weighting factor, namely +.>
Figure BDA0003938564940000182
Figure BDA0003938564940000183
Weighting factor alpha in interpolation algorithm formula 1 、α 2 、β 1 And beta 2 Substitution calculation is available, alpha 1 =α 2 =β 1 =β 2 =0.5。
For the second type of edge code, since it represents a large difference in pixel values between the source pixels 12, the weighting factor α is determined by direct assignment 1 、α 2 、β 1 And beta 2 Is of a size of (a) and (b). For example, when the pixel values of the source pixels a, b, and c are (255 ), and (0, 0), respectively, the texture information of the target pixel 14 after interpolation rendering is (255 ), and (128,128,0), respectively, this situation corresponds to blurring two pixels at the edges during rendering, and if the source pixels a, b, c are not interpolated, the pixel value of the target pixel 14 is (255 ), (0, 0), blurring only one pixel at the edges. Thus, to mitigate edge blurring, especially font edge blurring, the weighting factor α is directly applied 1 、α 2 、β 1 And beta 2 And performing assignment. For edge codes of the 0x1 and 0x4 types, the weighting factor of the even row is assigned alpha 1 =0.5,α 2 =1, odd row weighting factor assigned β 1 =0.5,β 2 =1. For edge codes of the 0x2 and 0x8 types, the weighting factor of the even row is assigned alpha 1 =1,α 2 =0.5, the weighting factor of the odd row is assigned β 1 =1,β 2 =0.5. For other types of edge codes, the weighting factor of the even row is assigned an alpha value 1 =0.5,α 2 =0.5, the weighting factor of the odd row is assigned β 1 =0.5,β 2 =0.5。
Through steps 231-Step 233, weighting factors are calculated and assigned according to different types of edge codes, so that color edge effects are attenuated, edge blurring is reduced, and image details are rendered better.
In the sub-pixel rendering method of this embodiment 1, the weighting factor determined by the above-mentioned flow calculation may further be corrected by determining the magnitude relation between the gray value deviation between two adjacent target pixels 14 and the preset threshold condition. Referring to fig. 13, step200 further includes:
step240: obtaining target sub-pixel values of all target image sub-pixels in the target pixels according to an interpolation algorithm formula based on the weighting factors;
step250: obtaining a temporary gray value of the target pixel through a gray value formula based on the target sub-pixel value;
step260: respectively calculating gray value deviation of temporary gray values of two adjacent target pixels in the same odd line or even line;
step270: and judging the magnitude relation between the gray value deviation and the upper limit value and the lower limit value of the preset threshold value condition. When the gray value deviation is greater than the upper limit value or less than the lower limit value, executing Step280; when the gray value deviation is not greater than the upper limit value and not less than the lower limit value, step290 is performed;
Step280: adjusting the size of the weighting factor and assigning 1;
step290: the size of the weighting factor is not adjusted.
Specifically, the gray value deviation still exists between the gray values of the target pixel 14 calculated by the weighting factors calculated by the steps Step210 to Step230 and substituted into the interpolation algorithm formula, and the color deviation between the display picture and the original picture and the brightness value of the display picture information are easily and directly affected due to the uncertainty of the gray value deviation, and the rendering is considered in the sub-pixelsIn the dyeing process, the sub-pixel borrowing condition exists only between two adjacent target pixels 14 in the horizontal direction, so the weighting factor alpha obtained by the calculation is needed 1 、α 2 、β 1 And beta 2 And correcting to eliminate the problem that the display picture quality is easily affected by larger gray value deviation. First, the weighting factor alpha obtained above is used 1 、α 2 、β 1 And beta 2 Is substituted into the interpolation algorithm formula to obtain the target subpixel value (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 ) And based on the target sub-pixel values, respectively calculating temporary gray values of 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 through a gray value formula, wherein each rendering pixel region corresponds to an actual display pixel, and the gray value formula is as follows: gray_p=0.299×r+0.578×g+0.114×b. Taking any pair of two target pixels a and b adjacent in the horizontal direction in the target image window 18 shown in fig. 4 as an example, in the target pixels a and b in fig. 10, the temporary gray value of the target pixel a is gray_a, the temporary gray value of the target pixel b is gray_b, the gray value deviation of the target pixel a and the target pixel b is abs (gray_a-gray_b), and the gray value deviation is kept positive because it represents only the degree of brightness change between the adjacent two target pixels a and b. 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 Can be set according to actual requirements, such as setting an upper limit value th up =230, lower limit th low =20. The gray value deviation exceeds the upper limit th up Indicating that the black-and-white variation or the brightness variation between the adjacent two target pixels a and b is relatively large, forming a region with large brightness deviation in the display image, and the adjacent two target imagesInterpolation between the elements a and b causes the problem of blurring of the edges, in which case the weighting factor alpha is directly applied 1 、α 2 、β 1 And beta 2 By assigning values, i.e. when abs (grayA-grayB) > th up When alpha is 1 =α 2 =β 1 =β 2 =1.0. The gray value deviation is lower than the lower limit value th low Representing that the black-and-white change or the brightness change between the two adjacent target pixels a and b is smaller, the image is smoother, a region with smaller brightness deviation is formed in the display image, the image information loss is not caused even if interpolation calculation is not carried out between the two adjacent target pixels a and b, most of the region of the display image is a smooth region, the sub-pixel rendering speed can be improved to a certain extent, and the weighting factor alpha is directly applied to the region 1 、α 2 、β 1 And beta 2 By assigning values, i.e. when abs (grad_a-grad_b) < th low When alpha is 1 =α 2 =β 1 =β 2 =1.0. And the gray value deviation is between the upper limit value th up And lower limit value th low When the pixel value is in the middle, the black-and-white change or the brightness change between the two adjacent target pixels a and b is obvious, but interpolation calculation does not lead to edge blurring, but interpolation calculation does not lead to information loss, and the weighting factor alpha is not adjusted 1 、α 2 、β 1 And beta 2 Directly interpolating the gray values of the target pixels a and b using the values of the weighting factors calculated from the texture information in Step 200.
According to the sub-pixel rendering method of the embodiment 1, aiming at the RGB-delta specific arrangement mode, through the sharing principle of the sub-pixels on the display panel, according to the minimization of gray level square errors of the source image and the target image before and after rendering, the weighting factor used for interpolation rendering is calculated, the image information loss is reduced, and the color edge effect is also attenuated to a certain extent. And by judging the texture information of each source pixel in the horizontal direction in the source image, the direct assignment mode is adopted for the edge blurring phenomenon, so that blurring caused by the interpolation rendering calculation process is reduced, and image details are rendered better.
Example 2
The embodiment 2 of the invention discloses a sub-pixel rendering system of an RGB-Delta type display panel, which is used for solving the problems of image information loss and image boundary blurring caused by triangular arrangement of RGB three color channels in an AMOLED display panel with an RGB-Delta structure by adopting the sub-pixel rendering method of the RGB-Delta type display panel disclosed in the embodiment 1, and supplementing the missing image information by rendering the sub-pixels, so that the blurring degree of the image boundary is reduced, and the image display quality of the AMOLED display panel is improved.
Referring to fig. 14, the sub-pixel rendering system of the present embodiment 2 includes a mapping module 30, a first calculating module 40, and a second calculating module 50 connected to each other. The mapping module 30 is configured to establish, by the rendering unit, a mapping relationship between a source pixel of a source image and a target pixel of a target image on the RGB-Delta type display panel. The first calculation module 40 is configured to calculate a weighting factor in an interpolation algorithm formula established based on the mapping relationship. The second calculating module 50 is configured to calculate the target subpixel values of the respective target image subpixels in the target pixel by weighting them through an interpolation algorithm formula according to the weighting factors.
Specifically, in the pixel rendering process of the sub-pixel rendering system of this embodiment 2, the total number of pixels of the source image and the target image is the same, but since the target image sub-pixels of the red, green and blue 3 color channels of each target pixel in the target image are arranged in a triangle, compared with the source image sub-pixels of each source pixel in the source image, the total number of the target image sub-pixels is less than 1/3, and the total number of the target pixels is also less than 1/3. The target pixel is not an actual pixel on the target image for display, but target image sub-pixels of the red, green and blue 3 color channels arranged in a triangle are artificially divided together to form a complete target pixel. The manner of pixel division 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 the source pixels, so the mapping module 30 is required 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, so as to reduce the loss of image information in the source pixels. Through the mapping relationship, 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, which is an interpolation algorithm formula, and the target sub-pixel values of the target image sub-pixels of the red, green and blue 3 color channels are respectively calculated through the first calculation module 40. The source image sub-pixels of the red, green and blue 3 color channels in the source pixel can generate different texture information due to different original sub-pixel values, the texture information of each source pixel is combined together to represent whether the source image has larger pixel value difference, the second calculation module 50 adopts different assignment modes aiming at the condition that the pixel value difference is large and the condition that the pixel value difference is small, assigns the weighting factors corresponding to the target sub-pixel values of the target image sub-pixels of all the color channels in the target pixel, reduces the color edge effect in the target image, and reduces the boundary blurring degree.
Example 3
Embodiment 3 of the present invention discloses a computer-readable storage medium in which a computer program is stored which, when run on a computer, causes the computer to perform a sub-pixel rendering method of an RGB-Delta type display panel as disclosed in embodiment 1.
Example 4
Embodiment 4 of the present invention discloses a computer program product comprising a computer program which, when run on a computer, causes the computer to perform a sub-pixel rendering method of an RGB-Delta type display panel as disclosed in embodiment 1.
The sub-pixel rendering method and the sub-pixel rendering system of the RGB-Delta type display panel can reduce the loss of image information displayed on the display panel and the edge blurring degree of the display panel.
It should be understood that the above description of the specific embodiments of the present invention is only for illustrating the technical route and features of the present invention, and is for enabling those skilled in the art to understand the present invention and implement it accordingly, but the present invention is not limited to the above-described specific embodiments. All changes or modifications that come within the scope of the appended claims are intended to be embraced therein.

Claims (11)

1. A method for sub-pixel rendering of an RGB-Delta display panel, the method comprising: establishing a mapping relation between a source pixel of a source image and a target pixel of a target image on an RGB-Delta type display panel through a rendering unit;
calculating a weighting factor in an interpolation algorithm formula established based on the mapping relation;
and according to the weighting factors, weighting and calculating the target sub-pixel value of each target image sub-pixel in the target pixel through the interpolation algorithm formula.
2. The method for sub-pixel rendering of an RGB-Delta type display panel according to claim 1, wherein the mapping relationship between the source pixel of the source image and the target pixel of the target image on the RGB-Delta type display panel is established by the rendering unit, specifically comprising:
acquiring a source image and a target image of an RGB-Delta type display panel, wherein the source image comprises a plurality of source pixels, each source pixel comprises source image sub-pixels of red, green and blue 3 color channels, the target image comprises a plurality of target pixels, and each target pixel comprises target image sub-pixels of the red, green and blue 3 color channels; a rendering unit is established, a source image window is selected from the source image and a target image window is selected from the target image, the source image window comprises 3 multiplied by 2 source pixels, and the target image window comprises 2 multiplied by 2 target pixels;
Establishing a mapping relation between the source pixel and the target pixel according to the quantity ratio of the source pixel to the target pixel in the rendering unit;
acquiring a source pixel initial coordinate positioned at an initial position and original coordinates of other source pixels in the source image window;
and obtaining the initial coordinates of the target pixels and the mapping coordinates of other target pixels positioned at the initial position in the target image window according to the mapping relation, the initial coordinates of the source pixels and the original coordinates.
3. The method for sub-pixel rendering of an RGB-Delta display panel according to claim 2, wherein calculating the weighting factor in the interpolation algorithm formula established based on the mapping relation specifically comprises:
based on the mapping relation, establishing an interpolation algorithm formula in a sub-pixel borrowing mode to obtain a weighting factor;
obtaining texture information corresponding to the source pixel by calculating an edge code of the source pixel in the horizontal direction;
and calculating the weighting factor according to the type of the edge code.
4. The method for rendering sub-pixels of an RGB-Delta display panel according to claim 3, wherein in establishing an interpolation algorithm formula in a sub-pixel borrowing manner based on the mapping relationship, the method for rendering sub-pixels of the RGB-Delta display panel specifically comprises:
Obtaining an original sub-pixel value expression corresponding to an original sub-pixel value of each source image sub-pixel in the source pixel according to the source pixel starting coordinate and the original coordinate;
obtaining target sub-pixel value expressions corresponding to target sub-pixel values of all target image sub-pixels in the target pixel according to the target pixel starting coordinates and the mapping coordinates;
establishing 3×2 rendering pixel areas corresponding to the source pixels in the target image window based on the original subpixel value expression and the target subpixel value expression, wherein each rendering pixel area comprises two target image subpixels;
determining target image sub-pixels to be borrowed for each rendering pixel area according to a sub-pixel borrowing mode aiming at even lines and odd lines of the target image window;
establishing an interpolation algorithm formula for rendering the source image sub-pixel to the target image sub-pixel according to the source image sub-pixel, the target image sub-pixel and the borrowed target image sub-pixel aiming at the red, green and blue 3 color channels;
and extracting weighting factors for calculating the borrowed color channel sub-pixels according to the interpolation algorithm formula.
5. The method for sub-pixel rendering of an RGB-Delta display panel according to claim 4,
a first rendering pixel area, a second rendering pixel area and a third rendering pixel area are sequentially arranged in the horizontal right direction of the even lines of the target image window, wherein the first rendering pixel area comprises a first red target image sub-pixel R '' 2i,2j And a first green target image subpixel G' 2i,2j The second rendering pixel region includes a first blue target image sub-pixel B' 2i,2j And a second red target image subpixel R' 2i+1,2j The third rendered pixel region includes a second green target image subpixel G' 2i+1,2j And a second blue target image subpixel B' 2i+1,2j
A fourth rendering pixel area, a fifth rendering pixel area and a sixth rendering pixel area are sequentially arranged in the horizontal right direction of the odd-numbered lines of the target image window, wherein the fourth rendering pixel area comprises a third blue target image sub-pixel B '' 2i,2j+1 And a third green target image subpixel G' 2i,2j+1 The fifth rendered pixel region includes a third red target image subpixel R' 2i,2j+1 And a fourth blue target image subpixel B' 2i+1,2j+1 The sixth rendered pixel region includes a fourth red target image subpixel R' 2i+1,2j+1 And a fourth green target image subpixel G' 2i+1,2j+1
Based on a sub-pixel borrowing mode, the first rendering pixel region borrows a first blue target image sub-pixel B' 2i,2j The second rendering pixel region borrows a second green target image sub-pixel G' 2i+1,2j The third rendering pixel area borrows the third rendering pixel areaTwo red target image sub-pixels R' 2i+1,2j The fourth rendering pixel region borrows the third red target image sub-pixel R' 2i,2j+1 The fifth rendering pixel region borrows the third green target image sub-pixel G' 2i,2j+1 The sixth rendering pixel region borrows the fourth blue target image sub-pixel B' 2i+1,2j+1
6. The method of sub-pixel rendering of an RGB-Delta type display panel according to claim 3 or 4, wherein in the interpolation algorithm formula, even lines of the target image window correspond to a first conversion formula, and odd lines of the target image window correspond to a second conversion formula.
7. A sub-pixel rendering method of an RGB-Delta display panel according to claim 3, wherein obtaining texture information corresponding to the source pixel by calculating an edge code of the source pixel in a horizontal direction specifically includes:
acquiring original sub-pixel values of source image sub-pixels in three source pixels of odd lines or even lines in the source image window;
Establishing a judging function, and setting a preset threshold value and an edge code;
for the red, green and blue 3 color channels, respectively calculating pixel value differences of original sub-pixel values between the source image sub-pixels positioned in the middle and the source image sub-pixels positioned on the left and right sides in the same odd line or even line; calculating a judging result of the judging function according to the magnitude relation between the pixel value difference and a preset threshold value; and obtaining the edge code according to the judging result.
8. A sub-pixel rendering method of an RGB-Delta display panel according to claim 3, wherein in calculating the weighting factor according to the type of the edge code, specifically comprising:
judging the type of the edge code;
when the edge codes belong to the first class, obtaining the weighting factors through a square error minimization algorithm based on the original sub-pixel values of the source image sub-pixels and the target sub-pixel values of the target image sub-pixels; and when the edge code belongs to the second class, the weighting factors are obtained through an assignment mode based on the original sub-pixel values of the source image sub-pixels and the target sub-pixel values of the target image sub-pixels.
9. A sub-pixel rendering system of an RGB-Delta display panel, which is characterized by comprising a mapping module, a first calculation module and a second calculation module which are connected with each other;
the mapping module is used for establishing a mapping relation between a source pixel of a source image and a target pixel of a target image on the RGB-Delta type display panel through the rendering unit;
the first calculation module is used for calculating a weighting factor in an interpolation algorithm formula established based on the mapping relation;
and the second calculation module is used for calculating the target sub-pixel value of each target image sub-pixel in the target pixel in a weighting mode through the interpolation algorithm formula according to the weighting factors.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the sub-pixel rendering method of an RGB-Delta type display panel according to any one of claims 1 to 8.
11. A computer program product, characterized in that the computer program product comprises a computer program which, when run on a computer, causes the computer to perform the sub-pixel rendering method of an RGB-Delta type display panel as claimed in any one of claims 1 to 8.
CN202211411091.9A 2022-11-11 2022-11-11 Sub-pixel rendering method and system of RGB-Delta type display panel Pending CN116095399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211411091.9A CN116095399A (en) 2022-11-11 2022-11-11 Sub-pixel rendering method and system of RGB-Delta type display panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211411091.9A CN116095399A (en) 2022-11-11 2022-11-11 Sub-pixel rendering method and system of RGB-Delta type display panel

Publications (1)

Publication Number Publication Date
CN116095399A true CN116095399A (en) 2023-05-09

Family

ID=86199835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211411091.9A Pending CN116095399A (en) 2022-11-11 2022-11-11 Sub-pixel rendering method and system of RGB-Delta type display panel

Country Status (1)

Country Link
CN (1) CN116095399A (en)

Similar Documents

Publication Publication Date Title
US11037523B2 (en) Display method of display panel that uses different display algorithms for different display areas, display panel and display device
CN103903524B (en) Display packing
TWI515710B (en) Method for driving display
CN109147644B (en) Display panel and display method
JP6347958B2 (en) Data processing apparatus and display system having the same
US20160027359A1 (en) Display method and display device
US20160027369A1 (en) Display method and display device
CN107331341B (en) Sub-pixel rendering method and system
US9491446B2 (en) Image processing device, image display device, image processing method, and image processing program
CN110992867B (en) Image processing method and display device
CN104835444A (en) Display method and display device
CN101471063B (en) Color signal generating device
CN109461400B (en) Sub-pixel rendering method and device for converting RGB (red, green and blue) image into RGBW (red, green and blue) image
TWI686787B (en) Image display device
CN105185352A (en) Method and device for image rim modification
CN109313878B (en) Display device and display device control method
KR102265774B1 (en) Display panel driving method and driving device
EP3073478A1 (en) Image display method and display apparatus
CA2879462A1 (en) Compensation for color variation in emissive devices
CN109727573B (en) Display method and display device
US10290252B2 (en) Image display method, image display apparatus and delta pixel arrangement display device
US10013908B2 (en) Display devices and displaying methods
WO2020124898A1 (en) Image display method and display
CN116095399A (en) Sub-pixel rendering method and system of RGB-Delta type display panel
CN113936614B (en) Driving method and driving device for display panel, display device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: 201203, 11th Floor, Building 3, No. 889 Bibo Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai

Applicant after: Granfei Intelligent Technology Co.,Ltd.

Address before: Room 201, No. 2557, Jinke Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203

Applicant before: Gryfield Intelligent Technology Co.,Ltd.

Country or region before: China