CN114067721A - Subpixel rendering method for RGBW-Pentile arrangement - Google Patents
Subpixel rendering method for RGBW-Pentile arrangement Download PDFInfo
- Publication number
- CN114067721A CN114067721A CN202111536592.5A CN202111536592A CN114067721A CN 114067721 A CN114067721 A CN 114067721A CN 202111536592 A CN202111536592 A CN 202111536592A CN 114067721 A CN114067721 A CN 114067721A
- Authority
- CN
- China
- Prior art keywords
- sub
- pixel
- pixel data
- data
- pixels
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/02—Improving the quality of display appearance
- G09G2320/0242—Compensation of deficiencies in the appearance of colours
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0666—Adjustment of display parameters for control of colour parameters, e.g. colour temperature
Abstract
The invention discloses a sub-pixel rendering method for RGBW-Pentile arrangement, which comprises the following steps: the method comprises the steps of obtaining RGBW sub-pixel data of an RGBW image and dividing sub-pixels into two groups according to a pixel arrangement mode of an RGBW-Pentile display panel, wherein each group of sub-pixels only comprises two sub-pixels; respectively comparing the sub-pixel data of each pixel with a corresponding set threshold value, and judging whether a graph formed by the current pixel and upper, lower, left and right adjacent pixels thereof is a special graph or not; and calculating the sub-pixel data displayed by the current pixel according to the data rendering algorithm selected for the special graph or not and the position of the current pixel. When the RGBW-Pentile arrangement display is applied to displaying special graphs such as stripes, oblique lines, dot matrixes and the like, the brightness and the color characteristics of the display can be well maintained, and the phenomenon that one piece is blurred due to the reduction of the number of sub-pixels and a rendering algorithm is avoided.
Description
Technical Field
The invention belongs to the technical field of microelectronics and display, and particularly relates to a sub-pixel rendering method for RGBW-Pentile arrangement.
Background
RGBW is a display technology that converts to a four primary display by adding a white sub-pixel on the basis of the conventional RGB display technology. In the RGBW display, since the white sub-pixel does not need a color filter, the transmittance is improved, and the display brightness can be increased while the power consumption level of the display is kept unchanged. Due to the addition of the white sub-pixel, if the size of the sub-pixel is kept unchanged, the display resolution under the same display area is reduced, and for this purpose, an RGBW-pentale arrangement is proposed, which achieves the same display resolution as the striped RGBW arrangement by using a sub-pixel rendering technology under the condition that the number of the sub-pixels is reduced by 1/2 compared with the striped RGBW arrangement. Due to the pixel sharing, the method often causes the display to lose the brightness and color characteristics when displaying characteristic patterns such as dot matrixes, oblique lines and the like, and the image is blurred.
Disclosure of Invention
The purpose of the invention is as follows: aiming at the problems in the prior art, the invention discloses a sub-pixel rendering method for RGBW-Pentile arrangement, so that the RGBW-Pentile arrangement display applying the method can still better keep the brightness and color characteristics when displaying special graphs such as stripes, oblique lines, dot matrixes and the like, and cannot blur one piece due to the reduction of the number of sub-pixels and the rendering algorithm.
The technical scheme is as follows: in order to achieve the purpose, the invention adopts the following technical scheme:
a method of subpixel rendering for an RGBW-Pentile arrangement, comprising the steps of:
s1: obtaining sub-pixel data
Converting an RGB image into an RGBW image, reading data of a first sub-pixel, a second sub-pixel, a third sub-pixel and a fourth sub-pixel of each pixel in the RGBW image, wherein the first sub-pixel, the second sub-pixel, the third sub-pixel and the fourth sub-pixel are respectively one of an R sub-pixel, a G sub-pixel, a B sub-pixel and a W sub-pixel, the sub-pixels are divided into two groups according to a pixel arrangement mode of an RGBW-Pentile display panel, the first group of sub-pixels comprise the first sub-pixel and the second sub-pixel, the second group of sub-pixels comprise the third sub-pixel and the fourth sub-pixel, pixels positioned in odd-row odd-column and even-row column on the RGBW-Pentile display panel, only display the first group of sub-pixels, and pixels positioned in odd-row column and even-row odd column only display the second group of sub-pixels;
s2: judging whether the image is a special image or not according to the obtained sub-pixel data
Respectively comparing the sub-pixel data of each pixel in the RGBW image with the set threshold of the corresponding sub-pixel, and judging whether the graph formed by the current pixel and the upper, lower, left and right adjacent pixels thereof is a special graph;
s3: selecting a data rendering algorithm for rendering
And selecting a data rendering algorithm according to whether a graph formed by the current pixel and upper, lower, left and right adjacent pixels thereof is a special graph or not, and calculating sub-pixel data displayed by the current pixel by combining the position of the current pixel, wherein if the current pixel is the special graph, a first data rendering algorithm is selected, and if the current pixel is not the special graph, a second data rendering algorithm is selected.
Preferably, step S2 includes:
for pixels P located in odd or even columns of odd or even rowsi,jIf the pixel Pi,jThe third sub-pixel data is larger than the set threshold of the third sub-pixel and the fourth sub-pixel data is larger than the set threshold of the fourth sub-pixel, and the pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The third sub-pixel data is less than or equal to the set threshold of the third sub-pixel and the fourth sub-pixel data is less than or equal to the set threshold of the fourth sub-pixel, then the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jIf the pixel Pi,jThe first sub-pixel data is larger than the set threshold of the first sub-pixel, the second sub-pixel data is larger than the set threshold of the second sub-pixel, and the pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The first sub-pixel data is less than or equal to the set threshold of the first sub-pixel, and the second sub-pixel data is less than or equal to the second sub-pixelSetting threshold values of two sub-pixels, pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure.
Preferably, if there are less than four pixels adjacent to the current pixel, the pixel having 0 of the first sub-pixel data, the second sub-pixel data, the third sub-pixel data and the fourth sub-pixel data is filled in the vacant position.
Preferably, in step S3, the first data rendering algorithm is:
for pixels P located in odd or even columns of odd or even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, and simultaneously making W sub-pixel data be 0;
pixel Pi,jAnd the third sub-pixel data and the fourth sub-pixel data are superimposed on the pixel Pi,j+1The third sub-pixel data and the fourth sub-pixel data;
pixel Pi,jThe display device is used for displaying the first sub-pixel and the second sub-pixel;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, and simultaneously making W sub-pixel data be 0;
pixel Pi,jAnd the first sub-pixel data and the second sub-pixel data are superimposed on the pixel Pi,j+1The first sub-pixel data and the second sub-pixel data;
pixel Pi,jFor displaying the third sub-pixel and the fourth sub-pixel.
Preferably, in step S3, the second data rendering algorithm is:
for pixels P located in odd or even columns of odd or even rowsi,jDirectly discarding the third sub-pixel data and the fourth sub-pixel data, pixel Pi,jThe display device is used for displaying the first sub-pixel and the second sub-pixel;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jDirectly discarding the first sub-pixel data and the second sub-pixel data, pixel Pi,jFor displaying the third sub-pixel and the fourth sub-pixel.
Preferably, in step S1, the RGB image is converted into an RGBW image by an RGB-RGBW mapping algorithm.
Preferably, the RGB-RGBW mapping algorithm is:
Lw=Lmin
wherein L isr、Lg、LbR sub-pixel data, G sub-pixel data, and B sub-pixel data respectively representing pixels in an RGB image; l isR、LG、LB、LWRespectively representing R sub-pixel data, G sub-pixel data, B sub-pixel data and W sub-pixel data of corresponding pixels in the RGBW image; l ismin=min{Lr,Lg,Lb},Lmax=max{Lr,Lg,Lb}。
Has the advantages that: compared with the prior art, the invention has the following beneficial effects:
the RGBW-Pentile arrangement display can still better keep the brightness and color characteristics when displaying special graphs such as stripes, oblique lines, dot matrixes and the like, and can not blur a piece due to the reduction of the number of sub-pixels and a rendering algorithm: according to the pixel division of the invention, the colors of sub-pixels contained by any pixel and four adjacent pixels of the pixel, up, down, left and right, are different, so that for any pixel which emits light, if one pixel of the four adjacent pixels emits light, the colors of the adjacent pixels can be used for compensating the missing sub-pixel colors, such as most images of horizontal stripes, vertical stripes, double dot matrixes and the like; in particular, if no pixel emits light in four adjacent pixels, namely, upper, lower, left and right adjacent pixels, the rendering method of the invention can superimpose the missing color of the current pixel on a small partial image such as a diagonal line, a single-point dot matrix and the like, and can prevent the loss of image characteristics such as dot matrix and the like caused by simultaneous light emission of two adjacent pixels after pixel rendering by superimposing the pixel data of the W sub-pixel on R, G, B sub-pixel data.
Drawings
FIG. 1 is a flow chart of the method of the present invention described in example 1;
FIG. 2 shows a pixel division example of the RGBW-Pentile arrangement according to example 2 of the present invention;
fig. 3 is an example of input special patterns of pixels located in odd-numbered columns of odd-numbered rows or even-numbered columns and pixels adjacent to the pixels in the upper, lower, left and right directions according to embodiment 2 of the present invention;
fig. 4 is an example of input special patterns of pixels located in even-numbered columns of odd-numbered rows or odd-numbered columns of even-numbered rows and pixels adjacent to the pixels in the upper, lower, left and right directions according to embodiment 2 of the present invention;
FIG. 5 is an embodiment of a first data rendering algorithm according to embodiment 2 of the present invention;
FIG. 6 is an embodiment of a second data rendering algorithm according to embodiment 2 of the present invention;
FIG. 7 is a diagram of the horizontal stripe display effect of the present invention;
FIG. 8 is a graph of the vertical bar display effect of the present invention;
FIG. 9 is a diagram of the effect of the oblique line display according to the present invention;
FIG. 10 is a diagram showing the effect of the dot matrix according to the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings.
Example 1:
the embodiment discloses a sub-pixel rendering method for RGBW-Pentile arrangement, which comprises the following steps as shown in FIG. 1:
s1: obtaining sub-pixel data
Converting an RGB image into an RGBW image, reading data of a first sub-pixel, a second sub-pixel, a third sub-pixel and a fourth sub-pixel of each pixel in the RGBW image, wherein the first sub-pixel, the second sub-pixel, the third sub-pixel and the fourth sub-pixel are respectively one of an R sub-pixel, a G sub-pixel, a B sub-pixel and a W sub-pixel, the sub-pixels are divided into two groups according to a pixel arrangement mode of an RGBW-Pentile display panel, the first group of sub-pixels comprise the first sub-pixel and the second sub-pixel, the second group of sub-pixels comprise the third sub-pixel and the fourth sub-pixel, pixels positioned in odd-row odd-column and even-row column on the RGBW-Pentile display panel, only display the first group of sub-pixels, and pixels positioned in odd-row column and even-row odd column only display the second group of sub-pixels;
s2: judging whether the image is a special image or not according to the obtained sub-pixel data
Respectively comparing the sub-pixel data of each pixel in the RGBW image with the set threshold of the corresponding sub-pixel, and judging whether the graph formed by the current pixel and the upper, lower, left and right adjacent pixels thereof is a special graph;
s3: selecting a data rendering algorithm for rendering
And selecting a data rendering algorithm according to whether a graph formed by the current pixel and upper, lower, left and right adjacent pixels thereof is a special graph or not, and calculating sub-pixel data displayed by the current pixel by combining the position of the current pixel, wherein if the current pixel is the special graph, a first data rendering algorithm is selected, and if the current pixel is not the special graph, a second data rendering algorithm is selected.
Preferably, step S2 includes:
for pixels P located in odd or even columns of odd or even rowsi,jIf the pixel Pi,jThe third sub-pixel data is larger than the set threshold of the third sub-pixel and the fourth sub-pixel data is larger than the set threshold of the fourth sub-pixel, and the pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The third sub-pixel data is less than or equal to the set threshold of the third sub-pixel and the fourth sub-pixel data is less than or equal to the set threshold of the fourth sub-pixel, then the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jIf the pixel Pi,jThe first sub-pixel data is larger than the set threshold of the first sub-pixel and the second sub-pixel data is larger than the second sub-pixelA set threshold value of the pixel, and a pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The first sub-pixel data is less than or equal to the set threshold of the first sub-pixel and the second sub-pixel data is less than or equal to the set threshold of the second sub-pixel, then the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure.
Preferably, if there are less than four pixels adjacent to the current pixel, the pixel having 0 of the first sub-pixel data, the second sub-pixel data, the third sub-pixel data and the fourth sub-pixel data is filled in the vacant position.
Preferably, in step S3, the first data rendering algorithm is:
for pixels P located in odd or even columns of odd or even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, and simultaneously making W sub-pixel data be 0;
pixel Pi,jAnd the third sub-pixel data and the fourth sub-pixel data are superimposed on the pixel Pi,j+1The third sub-pixel data and the fourth sub-pixel data;
pixel Pi,jThe display device is used for displaying the first sub-pixel and the second sub-pixel;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, and simultaneously making W sub-pixel data be 0;
pixel Pi,jAnd the first sub-pixel data and the second sub-pixel data are superimposed on the pixel Pi,j+1The first sub-pixel data and the second sub-pixel data;
pixel Pi,jFor displaying the third sub-pixel and the fourth sub-pixel.
Preferably, in step S3, the second data rendering algorithm is:
for pixels P located in odd or even columns of odd or even rowsi,jDirectly discarding the third sub-pixel data and the fourth sub-pixel dataPixel data, pixel Pi,jThe display device is used for displaying the first sub-pixel and the second sub-pixel;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jDirectly discarding the first sub-pixel data and the second sub-pixel data, pixel Pi,jFor displaying the third sub-pixel and the fourth sub-pixel.
Preferably, in step S1, the RGB image is converted into an RGBW image by an RGB-RGBW mapping algorithm.
Preferably, the RGB-RGBW mapping algorithm is:
Lw=Lmin
wherein L isr、Lg、LbR sub-pixel data, G sub-pixel data, and B sub-pixel data respectively representing pixels in an RGB image; l isR、LG、LB、LWRespectively representing R sub-pixel data, G sub-pixel data, B sub-pixel data and W sub-pixel data of corresponding pixels in the RGBW image; l ismin=min{Lr,Lg,Lb},Lmax=max{Lr,Lg,Lb}。
Example 2:
the embodiment discloses a sub-pixel rendering method for RGBW-Pentile arrangement, which comprises the following steps:
step S1: obtaining RGBW sub-pixel data of an image
Firstly, an input RGB image with the resolution of M multiplied by N is converted into an RGBW image through an RGB-RGBW mapping algorithm. The RGB-RGBW mapping algorithm is not limited to any one RGB-RGBW mapping algorithm, for example:
Lw=Lmin
wherein L isr、Lg、LbR sub-pixel data, G sub-pixel data, and B sub-pixel data respectively representing pixels in an RGB image; l isR、LG、LB、LWRespectively representing R sub-pixel data, G sub-pixel data, B sub-pixel data and W sub-pixel data of corresponding pixels in the RGBW image; l ismin、LmaxRespectively represent min { L }r,Lg,LbAnd max { L }r,Lg,LbMin represents taking the minimum value, and max represents taking the maximum value.
RGBW sub-pixel data of each pixel in the RGBW image is read, the RGBW sub-pixel data including R sub-pixel data, G sub-pixel data, B sub-pixel data, and W sub-pixel data. The RGBW sub-pixels are divided into two groups of sub-pixels according to pixel division of the display panel based on the RGBW-Pentile arrangement, wherein the first group of sub-pixels comprises a first sub-pixel and a second sub-pixel, the second group of sub-pixels comprises a third sub-pixel and a fourth sub-pixel, and the first sub-pixel, the second sub-pixel, the third sub-pixel and the fourth sub-pixel are respectively one of an R sub-pixel, a G sub-pixel, a B sub-pixel and a W sub-pixel. Therefore, the pixels on the display panel located in the odd-numbered rows and the even-numbered rows and the odd-numbered columns only include the first group of sub-pixels, and the pixels located in the odd-numbered rows and the even-numbered rows and the odd-numbered columns only include the second group of sub-pixels.
For example, fig. 2 shows a pixel division embodiment based on the RGBW-pentale arrangement of the present embodiment, the pixel division of the display panel is: the pixels located in the odd-row odd-column and the even-row even-column only include RG sub-pixels, the RG sub-pixels include R sub-pixels and G sub-pixels, the pixels located in the odd-row even-column and the even-row odd-column only include BW sub-pixels, the BW sub-pixels include B sub-pixels and W sub-pixels, and then the pixel grouping here can perform corresponding operations, that is: the R sub-pixel and the G sub-pixel are respectively used as a first sub-pixel and a second sub-pixel and are divided into a first group of sub-pixels; the B sub-pixel and the W sub-pixel are respectively taken as a third sub-pixel and a fourth sub-pixel and are divided into a second group of sub-pixels.
In this embodiment, a three-chip dual-port Static Random Access Memory (SRAM) is used as the line buffer (Li)ne Buffer) for performing three-Line pixel data caching on the RGBW image with the resolution of M × N, wherein the depth of the Line Buffer is determined by the pixel data amount of one Line of the input RGBW image, and the bit width of the Line Buffer is determined by the pixel data bit width of the RGBW image. The three-line pixel data caching means that three lines of pixel data of an input RGBW image are respectively stored in three pieces of memories, RGBW sub-pixel data of each pixel are stored together, and when the three lines are fully stored, pixel data of a subsequent line can update the pixel data in the current memory; for example, the pixel data of the 1 st, 2 nd, and 3 rd rows are sequentially stored in the memory A, B, C, and then the 4 th row of data is transferred to the memory a, so that the pixel data of the 1 st row is covered. For each frame of input image, sequentially reading pixels P in ith row and jth column of image in Line Buffer from a certain moment when all the pixel data in 1 st row are stored in the memory and all the pixel data in 2 nd row are not stored in the memoryi,jAnd four adjacent pixels P up, down, left and righti-1,j、Pi+1,j、Pi,j-1、Pi,j+1RGBW subpixel data of (1).
Step S2: detecting the input pattern to determine whether it is a special pattern
For pixel P of ith row and jth column of imagei,jAnd four adjacent pixels P up, down, left and righti-1,j、Pi+1,j、Pi,j-1、Pi,j+1Judging the pixel P according to the RGBW sub-pixel data of each pixeli,jAnd whether the graph formed by the upper, lower, left and right adjacent pixels belongs to a special graph. Specifically, for the pixel at the image boundary, if there are less than four adjacent pixels, the pixel with RGBW subpixel data of 0 is padded in the vacant position, that is, R subpixel data, G subpixel data, B subpixel data, and W subpixel data of the padded pixel are all 0.
The judgment process is as follows:
for pixels P located in odd or even columns of odd or even rowsi,jAnd its upper, lower, left and right adjacent pixels, if pixel Pi,jIs greater than the set threshold, i.e., the B sub-pixel data is greater than the set threshold of the B sub-pixel and the W sub-pixel data is greater than the set threshold of the W sub-pixelValue, which can be considered as pixel Pi,jThe B and W sub-pixels of (1) visually appear to be in a "bright" state, and the pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The second group of sub-pixel data is less than or equal to the set threshold, that is, the B sub-pixel data is less than or equal to the set threshold of the B sub-pixel and the W sub-pixel data is less than or equal to the set threshold of the W sub-pixel, the pixel P can be considered asi,jThe B sub-pixel and the W sub-pixel of the upper, lower, left and right adjacent pixels of (1) visually represent a "dark" state, and the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure. As shown in fig. 3, a white solid-line box indicates that the B and W sub-pixels are "bright", a black solid-line box indicates that the B and W sub-pixels are "dark", and a white dotted-line box indicates that the bright-dark state of the R and G sub-pixels is uncertain.
For pixels P located in even columns of odd rows or odd columns of even rowsi,jAnd its upper, lower, left and right adjacent pixels, if pixel Pi,jThe first group of sub-pixel data is larger than the set threshold, that is, the R sub-pixel data is larger than the set threshold of the R sub-pixel and the G sub-pixel data is larger than the set threshold of the G sub-pixel, the pixel P can be considered asi,jThe R and G sub-pixels of (1) visually appear as "bright" states, and the pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The first group of sub-pixel data is less than or equal to the set threshold, that is, the R sub-pixel data is less than or equal to the set threshold of the R sub-pixel and the G sub-pixel data is less than or equal to the set threshold of the G sub-pixel, the pixel P can be considered asi,jThe R sub-pixel and the G sub-pixel of the upper, lower, left and right adjacent pixels of (1) visually represent a "dark" state, and the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure. As shown in fig. 4, a white solid-line box indicates that the R and G sub-pixels are "bright", a black solid-line box indicates that the R and G sub-pixels are "dark", and a white dotted-line box indicates that the bright-dark state of the B and W sub-pixels is uncertain.
Step S3: selecting a data rendering algorithm based on whether the image is a special image
The pixel P obtained according to the step S2i,jWhether a graph formed by upper, lower, left and right adjacent pixels is a special graph or not is judged, and if the graph is the special graph, a first data rendering algorithm is selected; if not, a second data rendering algorithm is selected.
The specific method of the first data rendering algorithm is as follows:
for pixels P located in odd or even columns of odd or even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, namely superposing the R sub-pixel data, the G sub-pixel data and the B sub-pixel data which are respectively equal to the R sub-pixel data, the G sub-pixel data and the B sub-pixel data before superposition plus the W sub-pixel data, then setting the W sub-pixel data to be 0, and setting the pixel P to bei,jSuperposing the superposed B sub-pixel data and W sub-pixel data to a pixel Pi,j+1B sub-pixel data and W sub-pixel data. Pixel Pi,jOnly for displaying the R and G sub-pixels. One specific embodiment is shown in fig. 5. The Data1 superimposed on the Data2 indicates that the superimposed Data2 is equal to the Data2 before the superimposition plus the Data1, and the Data superimposition here adds an overflow judgment that is uniformly set to the maximum value when the superimposed sub-pixel Data exceeds the range of pixel Data values (for example, the range of 8-bit Data values is 0 to 255).
For pixels P located in even columns of odd rows or odd columns of even rowsi,jSuperposing W sub-pixel data thereof to R sub-pixel data, G sub-pixel data and B sub-pixel data, then making W sub-pixel data 0, and making pixel Pi,jSuperposing the superposed R sub-pixel data and G sub-pixel data to a pixel Pi,j+1R sub-pixel data and G sub-pixel data. Pixel Pi,jOnly for displaying the B and W sub-pixels.
The specific process of the second data rendering algorithm is as follows:
for pixels P located in odd or even columns of odd or even rowsi,jDirectly discarding the B sub-pixel data and the W sub-pixel data, pixel Pi,jFor displaying only the R sub-imageA pixel and a G sub-pixel. One specific embodiment is shown in fig. 6.
For pixels P located in even columns of odd rows or odd columns of even rowsi,jDirectly discarding R sub-pixel data and G sub-pixel data, pixel Pi,jOnly for displaying the B and W sub-pixels.
Fig. 7-10 are schematic diagrams showing the display effect of the invention on stripes, oblique lines and dot matrix. It can be seen that the RGBW-Pentile arrangement display applying the invention can still better maintain the brightness and color characteristics when displaying special patterns such as stripes, oblique lines, dot matrixes and the like, and can not blur a piece due to the reduction of the number of sub-pixels and rendering algorithm. Specifically, according to the pixel division of the present invention, the colors of the sub-pixels included in any one pixel and the four adjacent pixels of the pixel that are adjacent to the pixel are different, and if one pixel of the four adjacent pixels that are adjacent to the pixel emits light, the colors of the adjacent pixels can be used to compensate the missing sub-pixel colors, such as the horizontal stripe, the vertical stripe, the double dot matrix, and other most images (fig. 7-8); in particular, if no pixel emits light in four adjacent pixels, up, down, left and right, by the rendering method of the present invention, the missing color of the current pixel can be superimposed on the small partial image of the adjacent pixel, such as oblique line, single dot matrix, etc., and by superimposing the pixel data of the W sub-pixel into R, G, B sub-pixel data, making the W sub-pixel emit no light can avoid the loss of image characteristics such as dot matrix, etc., caused by the simultaneous emission of two adjacent pixels after pixel rendering (fig. 9-10); therefore, the RGBW-Pentile arrangement display applying the sub-pixel rendering method of the invention can still better maintain the brightness and color characteristics when displaying special graphs such as stripes, oblique lines, dot matrixes and the like.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.
Claims (7)
1. A method of subpixel rendering for an RGBW-Pentile arrangement, comprising the steps of:
s1: obtaining sub-pixel data
Converting an RGB image into an RGBW image, reading data of a first sub-pixel, a second sub-pixel, a third sub-pixel and a fourth sub-pixel of each pixel in the RGBW image, wherein the first sub-pixel, the second sub-pixel, the third sub-pixel and the fourth sub-pixel are respectively one of an R sub-pixel, a G sub-pixel, a B sub-pixel and a W sub-pixel, the sub-pixels are divided into two groups according to a pixel arrangement mode of an RGBW-Pentile display panel, the first group of sub-pixels comprise the first sub-pixel and the second sub-pixel, the second group of sub-pixels comprise the third sub-pixel and the fourth sub-pixel, pixels positioned in odd-row odd-column and even-row column on the RGBW-Pentile display panel, only display the first group of sub-pixels, and pixels positioned in odd-row column and even-row odd column only display the second group of sub-pixels;
s2: judging whether the image is a special image or not according to the obtained sub-pixel data
Respectively comparing the sub-pixel data of each pixel in the RGBW image with the set threshold of the corresponding sub-pixel, and judging whether the graph formed by the current pixel and the upper, lower, left and right adjacent pixels thereof is a special graph;
s3: selecting a data rendering algorithm for rendering
And selecting a data rendering algorithm according to whether a graph formed by the current pixel and upper, lower, left and right adjacent pixels thereof is a special graph or not, and calculating sub-pixel data displayed by the current pixel by combining the position of the current pixel, wherein if the current pixel is the special graph, a first data rendering algorithm is selected, and if the current pixel is not the special graph, a second data rendering algorithm is selected.
2. The method for rendering subpixels of RGBW-Pentile arrangement as recited in claim 1, wherein step S2 comprises:
for pixels P located in odd or even columns of odd or even rowsi,jIf the pixel Pi,jThe third sub-pixel data is larger than the set threshold of the third sub-pixel and the fourth sub-pixel data is larger than the fourth sub-pixelA set threshold value of the pixel, and a pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The third sub-pixel data is less than or equal to the set threshold of the third sub-pixel and the fourth sub-pixel data is less than or equal to the set threshold of the fourth sub-pixel, then the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jIf the pixel Pi,jThe first sub-pixel data is larger than the set threshold of the first sub-pixel, the second sub-pixel data is larger than the set threshold of the second sub-pixel, and the pixel Pi,jUp, down, left and right adjacent pixels Pi-1,j、Pi+1,j、Pi,j-1、Pi,j+1The first sub-pixel data is less than or equal to the set threshold of the first sub-pixel and the second sub-pixel data is less than or equal to the set threshold of the second sub-pixel, then the pixel Pi,jAnd the figure formed by the upper, lower, left and right adjacent pixels belongs to a special figure.
3. The method of claim 2, wherein if there are less than four pixels adjacent to the current pixel, the pixels having 0 in the first sub-pixel data, the second sub-pixel data, the third sub-pixel data and the fourth sub-pixel data are filled in the empty positions.
4. The method for rendering subpixels in an RGBW-Pentile arrangement as recited in claim 1, wherein in step S3, the first data rendering algorithm is:
for pixels P located in odd or even columns of odd or even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, and simultaneously making W sub-pixel data be 0;
pixel Pi,jAnd the third sub-pixel data and the fourth sub-pixel data are superimposed on the pixel Pi,j+1Third sub-pixel data and fourth sub-pixel numberAccording to the specification;
pixel Pi,jThe display device is used for displaying the first sub-pixel and the second sub-pixel;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jSuperposing W sub-pixel data to R sub-pixel data, G sub-pixel data and B sub-pixel data, and simultaneously making W sub-pixel data be 0;
pixel Pi,jAnd the first sub-pixel data and the second sub-pixel data are superimposed on the pixel Pi,j+1The first sub-pixel data and the second sub-pixel data;
pixel Pi,jFor displaying the third sub-pixel and the fourth sub-pixel.
5. The method for rendering subpixels in an RGBW-Pentile arrangement as recited in claim 1, wherein in step S3, the second data rendering algorithm is:
for pixels P located in odd or even columns of odd or even rowsi,jDirectly discarding the third sub-pixel data and the fourth sub-pixel data, pixel Pi,jThe display device is used for displaying the first sub-pixel and the second sub-pixel;
for pixels P located in even columns of odd rows or odd columns of even rowsi,jDirectly discarding the first sub-pixel data and the second sub-pixel data, pixel Pi,jFor displaying the third sub-pixel and the fourth sub-pixel.
6. The method for rendering subpixels of RGBW-Pentile arrangement as recited in claim 1, wherein in step S1, the RGB image is converted into an RGBW image by an RGB-RGBW mapping algorithm.
7. The method of subpixel rendering for RGBW-Pentile arrangement of claim 6, wherein the RGB-RGBW mapping algorithm is:
Lw=Lmin
wherein L isr、Lg、LbR sub-pixel data, G sub-pixel data, and B sub-pixel data respectively representing pixels in an RGB image; l isR、LG、LB、LWRespectively representing R sub-pixel data, G sub-pixel data, B sub-pixel data and W sub-pixel data of corresponding pixels in the RGBW image; l ismin=min{Lr,Lg,Lb},Lmax=max{Lr,Lg,Lb}。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111536592.5A CN114067721B (en) | 2021-12-15 | 2021-12-15 | Subpixel rendering method for RGBW-Pentile arrangement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111536592.5A CN114067721B (en) | 2021-12-15 | 2021-12-15 | Subpixel rendering method for RGBW-Pentile arrangement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114067721A true CN114067721A (en) | 2022-02-18 |
CN114067721B CN114067721B (en) | 2023-03-24 |
Family
ID=80229550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111536592.5A Active CN114067721B (en) | 2021-12-15 | 2021-12-15 | Subpixel rendering method for RGBW-Pentile arrangement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114067721B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949885A (en) * | 2005-10-13 | 2007-04-18 | 胜华科技股份有限公司 | Multi-colour data processing method and display pixel layout therefor |
CN102682724A (en) * | 2011-06-10 | 2012-09-19 | 京东方科技集团股份有限公司 | Red, green, blue and white (RGBW) display method and RGBW display device |
US20160104412A1 (en) * | 2014-10-14 | 2016-04-14 | Au Optronics Corporation | Displaying method and display with subpixel rendering |
CN105575348A (en) * | 2014-10-31 | 2016-05-11 | 三星显示有限公司 | Display apparatus having improved sub-pixel rendering capability |
CN106409266A (en) * | 2016-12-14 | 2017-02-15 | Tcl集团股份有限公司 | Sub-pixel rendering and rendering device |
CN109461400A (en) * | 2018-12-17 | 2019-03-12 | 青岛海信电器股份有限公司 | Sub-pixel rendering method and device for the conversion of RGB to RGBW image |
-
2021
- 2021-12-15 CN CN202111536592.5A patent/CN114067721B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949885A (en) * | 2005-10-13 | 2007-04-18 | 胜华科技股份有限公司 | Multi-colour data processing method and display pixel layout therefor |
CN102682724A (en) * | 2011-06-10 | 2012-09-19 | 京东方科技集团股份有限公司 | Red, green, blue and white (RGBW) display method and RGBW display device |
US20160104412A1 (en) * | 2014-10-14 | 2016-04-14 | Au Optronics Corporation | Displaying method and display with subpixel rendering |
CN105575348A (en) * | 2014-10-31 | 2016-05-11 | 三星显示有限公司 | Display apparatus having improved sub-pixel rendering capability |
CN106409266A (en) * | 2016-12-14 | 2017-02-15 | Tcl集团股份有限公司 | Sub-pixel rendering and rendering device |
CN109461400A (en) * | 2018-12-17 | 2019-03-12 | 青岛海信电器股份有限公司 | Sub-pixel rendering method and device for the conversion of RGB to RGBW image |
Also Published As
Publication number | Publication date |
---|---|
CN114067721B (en) | 2023-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11069286B2 (en) | Color compensation method, compensation device, and display device | |
KR102118576B1 (en) | Display device, data processing apparatus and method thereof | |
US7965305B2 (en) | Color display system with improved apparent resolution | |
JP5795821B2 (en) | Pixel array, display and method for displaying an image on a display | |
CN103886808B (en) | Display packing and display device | |
JP5070204B2 (en) | Multiple primary color sub-pixel rendering with metamer filtering | |
CN102254504B (en) | Image processing method and display device using the same | |
CN109147644B (en) | Display panel and display method | |
CN104751767B (en) | Display panel, display method of display panel and display device | |
CN107331341B (en) | Sub-pixel rendering method and system | |
JP2006309244A (en) | Defect mitigation in display panel | |
US9483971B2 (en) | Display method of display panel | |
KR20140104624A (en) | Display device, data processing apparatus and method thereof | |
CN110992867B (en) | Image processing method and display device | |
CN110599962B (en) | Rendering method of Delta type sub-pixel display panel with different color sequences | |
CN110379370B (en) | RGB-Delta type display panel sub-pixel rendering method based on threshold comparison | |
WO2011129376A1 (en) | Liquid crystal display device and method for displaying fonts on liquid crystal display device | |
EP3073478B1 (en) | Image display method and display apparatus | |
CN108428435A (en) | A kind of verification display methods that Delta types arrangement sub-pixel renders | |
CN109313878B (en) | Display device and display device control method | |
CN114067721B (en) | Subpixel rendering method for RGBW-Pentile arrangement | |
CN111899690A (en) | Method and device for improving low-brightness Mura | |
TW201336291A (en) | Image display apparatus, method of driving image display apparatus, grayscale conversion program, and grayscale conversion apparatus | |
CN108154848A (en) | Display methods, device and the display equipment of pixel arrangement | |
CN114203089B (en) | Sub-pixel rendering method for RGB-Delta arrangement |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |