CN107358904B - Method and device for displaying RGB image on RGBW panel - Google Patents

Method and device for displaying RGB image on RGBW panel Download PDF

Info

Publication number
CN107358904B
CN107358904B CN201710612864.2A CN201710612864A CN107358904B CN 107358904 B CN107358904 B CN 107358904B CN 201710612864 A CN201710612864 A CN 201710612864A CN 107358904 B CN107358904 B CN 107358904B
Authority
CN
China
Prior art keywords
pixel
component
rgb
components
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.)
Active
Application number
CN201710612864.2A
Other languages
Chinese (zh)
Other versions
CN107358904A (en
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.)
Shanghai Shunjiu Electronic Technology Co ltd
Original Assignee
Shanghai Shunjiu Electronic Technology 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 Shanghai Shunjiu Electronic Technology Co ltd filed Critical Shanghai Shunjiu Electronic Technology Co ltd
Priority to CN201710612864.2A priority Critical patent/CN107358904B/en
Publication of CN107358904A publication Critical patent/CN107358904A/en
Application granted granted Critical
Publication of CN107358904B publication Critical patent/CN107358904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control 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
    • G09G3/2003Display of colours

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the invention provides a method and a device for displaying an RGB image on an RGBW panel, relates to the technical field of display, and aims to reduce the distortion degree caused by large pixel value change of sub-pixels in the image before and after compression when the RGB image is displayed on the RGBW panel with the same size as the RGB panel. The scheme comprises the following steps: converting an original RGB component of an image into an RGBW component; arranging the first, second, third and fourth components of each pixel in the following order: r, G, B, W, or G, B, W, R, or B, W, R, G, or W, R, G, B; for the first component of each pixel, rendering according to the value of the first component in the pixel, the adjacent pixel on the left side of the pixel and the first pixel; the fourth component of the pixel is the same as the first component of the adjacent pixel to the right of the pixel; and outputting the value of the first component and the values of the second and third components after the rendering.

Description

Method and device for displaying RGB image on RGBW panel
Technical Field
The invention relates to the technical field of display, in particular to a method and a device for displaying an RGB image on an RGBW panel with the same size as an RGB panel.
Background
An RGB type Display panel (as shown in fig. 1), such as an LCD (Liquid Crystal Display, chinese paraphrase: thin film transistor Liquid Crystal Display), displays an image by filtering a white backlight through a red/green/blue filter to obtain a pixel composed of a red (R), a green (G) and a blue (B) sub-pixels, and controlling a pixel value (e.g., a gray scale value) of the sub-pixel in each pixel to Display a desired color image. However, since only one third of the brightness of the white backlight passing through the filter passes through, two thirds of the brightness is lost, i.e., the light emitting efficiency of the RGB type LCD is low. As the resolution of the LCD panel is increased, the power consumption of the LCD panel is increased to achieve sufficient brightness.
In order to solve the above problem, an RGBW type display panel (as shown in fig. 2), such as an RGBW type LCD panel, is proposed, that is, on the basis of pixels of the RGB type LCD panel, a white sub-pixel (W) is added to improve the luminous efficiency of the RGB type LCD panel, so as to improve the display brightness of the panel without increasing the power consumption of the LCD. Further, since the pixels of the RGBW type LCD panel are composed of 4 sub-pixels, the RGB type LCD panel is composed of three sub-pixels. Therefore, if the same resolution is maintained, the size of the RGBW type LCD panel becomes large compared to the size of the RGB type LCD panel; if the RGBW type LCD panel is maintained to be the same size as the RGB type LCD panel, the resolution of the RGBW type LCD panel may be reduced. Generally, in order to enable an RGBW four-channel image obtained by RGB three-channel image conversion to be displayed on a panel with a constant number of sub-pixels, a down-sampling algorithm is required to be adopted, that is, four sub-pixels of RGBW are compressed; the down-sampling algorithm may be selective subtraction of sub-pixels (1/4 is subtracted, and the subtracted sub-pixels are filled by sub-pixels of the same color in another pixel), or an integer pixel level 3/4 interpolation down-sampling method (i.e., a group of two adjacent pixels in four pixels are compressed into one pixel, for example, R, G, B and W of the first pixel are weighted and summed with R, G, B and W of the second pixel to obtain compressed R ', G ', B ', and W ', R, G, B and W of the second pixel are weighted and summed with R, G, B and W of the third pixel to obtain compressed R ', G ', B ', and W ', R, G, B and W of the third pixel are weighted and summed with R ', B ', W ', R, W ', and W ', respectively, G. And weighting and summing the pixel values of B and W to obtain compressed R ', G', B 'and W').
However, in the above-mentioned compression process, i.e. the process of reducing the resolution, the pixel value of the sub-pixel in the compressed image finally displayed by the LCD panel is greatly changed from the pixel value of the sub-pixel in the image before compression, for example, selectively deleting the sub-pixel may use the pixel value of the same sub-pixel in other pixels to replace the pixel value of the deleted sub-pixel, and the correlation between the pixel value of the same sub-pixel in other pixels and the deleted sub-pixel is poor; and the downsampling method is interpolated using the integer pixel level 3/4, resulting in a change in the pixel values of the sub-pixels in the compressed image. Further, the LCD panel finally displays a compressed image in which the pixel value of the sub-pixel is changed more than the pixel value of the sub-pixel in the image before compression. Resulting in a large degree of distortion of the image display result. For example, there are image detail loss problems such as jaggies at the edges, cross-color in white lines, discontinuity in font lines, and the like.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying an RGB image on an RGBW panel, which are used for reducing the distortion degree caused by large pixel value change of sub-pixels in the image before and after compression when the RGB image is displayed on the RGBW panel with the same size as the RGB panel.
In order to achieve the purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for displaying an RGB image on an RGBW panel having the same size as the RGB panel is provided, including:
converting an original RGB component of an image into an RGBW component;
arranging the first, second, third and fourth components of each pixel in the following order: r, G, B, W, or G, B, W, R, or B, W, R, G, or W, R, G, B;
for the first component of each pixel, rendering according to the value of the first component in the pixel, the adjacent pixel on the left side of the pixel and the first pixel; the fourth component of the pixel is the same as the first component of the adjacent pixel to the right of the pixel;
wherein, the first pixel is: calculating a pixel with the most similar color to the pixel in the pixel neighborhood according to the original RGB components;
and outputting the value of the first component and the values of the second and third components after the rendering.
In a second aspect, there is provided an apparatus for displaying an RGB image on an RGBW panel having the same size as an RGB panel, comprising: comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement a program corresponding to the method for displaying an RGB image on an RGBW panel having the same size as the RGB panel provided in the first aspect.
In a third aspect, a computer storage medium is provided, on which computer software instructions are stored, the computer software instructions being operative to cause a computer to perform the method for displaying RGB images on RGBW panels having the same RGB panel size as that provided in the first aspect.
In the scheme provided by the application, in order to display the RGB image on the RGBW panel with the same size as the RGB panel, after the RGB components are converted into the RGBW components, the value of the first component of each pixel is rendered by the value of the first component in the pixel, the pixel left side adjacent pixel and the first pixel, the value of the second component and the value of the third component are kept unchanged, and the fourth component is used for rendering the first component of the pixel right side adjacent pixel. According to the scheme provided by the application, when each pixel is rendered, three components are finally output, including the value of the rendered first component and the values of the second component and the third component which are kept unchanged, so that the RGBW four components are compressed into three components, and further, the RGB image is displayed on an RGBW panel with the same size (namely, the same sub-pixels) as the RGB panel. For each pixel in the image finally displayed on the RGBW panel, the pixel is formed by combining four components, specifically including a first component, a second component, and a third component rendered in the pixel, and a first component rendered in an adjacent pixel on the right side of the pixel. And the first component in the finally displayed pixel fuses the correlation of the fourth component in the adjacent pixel at the left side of the pixel; the finally displayed fourth component in the pixel (i.e. the rendered first component in the pixel adjacent to the right of the pixel) fuses the correlation of the first component in the pixel adjacent to the right of the pixel. Therefore, the values of the four components in each pixel in the finally displayed image respectively change less than the values of the four components in the image after each pixel is sorted.
For the selectively truncated sub-pixels in the prior art, there is no correlation between replacing the pixels with the truncated sub-pixels and replacing the pixels with the truncated sub-pixels. And for the integer pixel level 3/4 downsampling interpolation method in the prior art, the sub-pixel value of each pixel changes. Therefore, compared with the prior art, the scheme provided by the application has the advantages that the pixel value of the sub-pixel in the compressed image finally displayed on the LCD panel is smaller than the pixel value of the sub-pixel in the image before compression. Furthermore, compared with the prior art, the scheme provided by the application effectively reduces the distortion degree of the image display result.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a conventional RGB display panel;
FIG. 2 is a schematic structural diagram of a conventional RGBW-type display panel;
FIG. 3 is a schematic diagram of RGB type panel and RGBW type panel display pixels with the same number of sub-pixels according to the present embodiment;
FIG. 4 is a schematic diagram of a method for displaying an RGB image on an RGBW panel having the same size as the RGB panel according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an arrangement sequence of pixel components according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating pixel locations within a neighborhood of a target pixel according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating a method for displaying 4 adjacent pixels according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating an arrangement of odd-line pixel components after being displayed by using the method provided by the present embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating an arrangement of even rows of pixel components after being displayed by a method according to the present disclosure;
FIG. 10 is a schematic diagram of another method for displaying an RGB image on an RGBW panel having the same size as the RGB panel according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of another method for displaying an RGB image on an RGBW panel having the same size as the RGB panel according to an embodiment of the present invention;
FIG. 12 is a schematic diagram showing the results of an experiment using the prior art;
FIG. 13 is a schematic diagram showing experimental results using the protocol provided herein according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an apparatus for displaying an RGB image on an RGBW panel having the same size as the RGB panel according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments in the present application, belong to the protection scope of the present application.
It should be noted that the terms "first", "second", and the like, herein are used for distinguishing identical items or similar items having substantially the same functions and actions, and those skilled in the art will understand that the terms "first", "second", and the like do not limit the quantity and execution order.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the embodiments of the present invention, "of", "corresponding" and "corresponding" may be mixed, and it should be noted that the intended meaning is consistent when the difference is not emphasized.
The execution subject of the method for displaying an RGB image on an RGBW panel having the same size as the RGB panel provided in the embodiment of the present invention is a pixel display device, and the pixel display device may be an electronic device including an RGBW display screen, such as a computer, a mobile phone, a tablet computer, a display, and a product having a display function, which executes the method, or may be a hardware module and/or a software module applicable to the electronic device, such as a Central Processing Unit (CPU) in the electronic device.
Referring to fig. 3, a schematic diagram of pixels of an RGB display panel and an RGBW display panel with the same number of sub-pixels is shown, in this embodiment, it is assumed that the number of pixels of the RGBW display panel is M rows × 3/4N columns, and each pixel in each row includes 4 sub-pixels (RGBW), that is, the number of sub-pixels of the display panel is M rows × 3N columns. In order to display an RGB three-channel image (the number of sub-pixels is M rows × 3N columns, and the number of pixels is M rows × N columns) with the same number of sub-pixels on the RGBW display panel, an embodiment of the present application provides a method for displaying an RGB image on an RGBW panel with the same size as the RGB panel, as shown in fig. 4, the method includes the following steps:
101. the original RGB components of the image are converted to RGBW components.
For example, in order to better distinguish the original RGB components of each pixel of the input image from the converted RGBW components of each pixel, the original RGB components in the present embodiment are expressed as: rin, Gin, Bin, representing the RGBW components of each pixel in the converted image as Ro, Go, Bo, and Wo. Based on this, the converting the original RGB components of the image into RGBW components in step 101 may include the following steps:
the first step is as follows: scaling the original RGB components of the image, specifically, the scaled components are represented as:
R1(i,j)=a*Rin(i,j);
G1(i,j)=b*Gin(i,j);
B1(i,j)=c*Bin(i,j)。
wherein, the above R1, G1, B1 respectively represent scaled Rin, Gin, Bin components; the above (i, j) represents position information of a pixel, where i represents a row number where the pixel is located, and j represents a column number where the pixel is located, and it should be noted that position information of each component in the same pixel is the same; if the resolution of the image is M x N, i is more than or equal to 1 and less than or equal to M, and j is more than or equal to 1 and less than or equal to N; the a, b and c are scaling factors, and the values of the a, b and c are respectively greater than 0; it should be noted that the values of a, b, and c are determined according to the actual display effect to meet different requirements.
The second step is that: the W component is calculated from the scaled RGB components.
Optionally, the second step of calculating the W component according to the scaled RGB components may be implemented by taking a minimum value or a maximum value of the scaled RGB components as the W component. Specifically, the following are shown: w1(i, j) ═ max (R1(i, j), G1(i, j), B1(i, j)).
The above calculation formula of W1 is merely a preferable example, and W1 is obtained from R1, G1, B1 and other calculation formulas, for example, W1(i, j) ═ min (R1(i, j), G1(i, j), B1(i, j)). The present invention is not limited thereto, and will not be described herein again.
The third step: and scaling the W component, and taking the scaled W component as the W component in the RGBW component.
Illustratively, the scaling process for the W component is specifically as follows:
Wo(i,j)=β*f(W1(i,j))。
where f is a function for regulating the white component W, and in particular, in the present embodiment,
Figure BDA0001359932250000075
β is in the range of [0, 1]]. It should be noted that the display effect pairs can be adjusted according to actual display effects
Figure BDA0001359932250000074
And β to meet different requirements.
The fourth step: RGB components in the RGBW components are calculated from the scaled RGB components and the scaled W component.
Specifically, the method comprises the following steps:
Ro(i,j)=K*R1(i,j)-Wo(i,j);
Go(i,j)=K*G1(i,j)-Wo(i,j);
Bo(i,j)=K*B1(i,j)-Wo(i,j)。
wherein the content of the first and second substances,
Figure BDA0001359932250000071
dmax (i, j) is the maximum value of R1(i, j), G1(i, j), B1(i, j).
It should be noted that the above-mentioned conversion method from RGB components to RGBW components is only an example, and those skilled in the art may select other existing methods to perform the conversion.
102. Arranging the first, second, third and fourth components of each pixel in the following order: r, G, B, W, or G, B, W, R, or B, W, R, G, or W, R, G, B.
103. For the first component of each pixel, rendering according to the value of the first component in the pixel, the adjacent pixel on the left side of the pixel and the first pixel; the fourth component of the pixel is the same as the first component of the adjacent pixel to the right of the pixel.
Wherein, the first pixel is: and calculating the pixel with the most similar color to the pixel in the pixel neighborhood according to the original RGB components.
Illustratively, based on the arrangement order in step 102 and the fact that the fourth component of the pixel in step 103 is the same as the first component of the pixel adjacent to the right side of the pixel, as shown in fig. 5, 4 pixels in the order of R, G, B, W in the arrangement order are sorted in the order described in step 102 to obtain: r, G, B, W, W, R, G, B, B, W, R, G, G, B, W, R are provided. Based on this, the arrangement order of the pixels in the converted image is R, G, B, W, W, R, G, B, B, W, R, G, G, B, W, R in a loop.
Illustratively, for clearly distinguishing each pixel, the pixel in step 103, i.e. the pixel to be rendered, is referred to as the target pixel. Based on this, before step 103, determining a first pixel of the target pixel is further included. The specific determination method comprises the following steps:
and A1, performing color gamut conversion on the original RGB components of each pixel in the image to obtain two chrominance components of each pixel.
For example, the chrominance components may be Y, Cb, and Cr obtained by performing color gamut conversion according to a conversion formula of YCbCr and RGB, or may be chrominance components obtained by performing color gamut conversion according to another method, such as Y, U, V obtained by performing color gamut conversion according to a conversion formula of YUV and RGB. Specifically, how to perform the color gamut conversion to obtain the chrominance component is not limited herein.
The purpose of extracting the chrominance component of a pixel is to separate the luminance and chrominance of the pixel and extract color information relating to color.
In one example, the chrominance components Cb and Cr obtained by performing color gamut conversion according to the conversion formula of YCbCr and RGB are specifically:
the chrominance component of each pixel is represented as: cb ═ 0.1687R-0.3313G +0.5B + 128; Cr-0.5R-0.4187G-0.0813B + 128. According to the method for determining Cb and Cr and the original RGB components of each pixel, the chrominance components of each pixel can be obtained.
And A2, calculating the pixel with the most similar color to the target pixel in the neighborhood of the target pixel according to the chrominance component of each pixel.
For example, the target pixel neighborhood refers to a set of pixels centered on the target pixel, that is, a target pixel neighborhood formed by pixels included in a range having a radius of a preset value (usually 1) and centered on the target pixel. It will be appreciated by those skilled in the art that for edge region pixels, their pixel neighborhood is incomplete. Such as the schematic of the pixel locations in the neighborhood of any of the target pixels shown in fig. 6. In fig. 6, the solid dots represent the target pixels, and the hollow dots represent pixels excluding the target pixels in the neighborhood of the target pixels (also referred to as pixels in the truncated neighborhood of the target pixels). Note that the neighborhood of any pixel is as shown in fig. 6.
Optionally, the two chrominance components of each pixel in the neighborhood of the target pixel are respectively subtracted from the two chrominance components of the target pixel to obtain Cbd and Crd, and then the Cbd and the Crd are summed. The pixel with the smallest sum of the two differences is taken as the pixel with the most similar color to the pixel, namely the first pixel, and the position of the first pixel is noted as (sx, sy).
It should be noted that, when determining the first pixel of the target pixel, the average value may also be obtained according to the difference values Cbd and Crd between the chrominance components Cb and Cr of the target pixel and the chrominance components Cb and Cr of the pixels in the neighborhood of the target pixel, respectively, and the pixel in the neighborhood of the target pixel corresponding to the minimum average value may be regarded as the first pixel of the target pixel.
Illustratively, it will be understood by those skilled in the art that for each pixel in the image, there are pixels that do not have a left side neighbor, e.g., pixels at the left edge of the image do not have a left side neighbor; while some pixels have two-sided neighboring pixels. Therefore, according to the situation that the pixel has the adjacent pixel, the following two schemes are adopted for pixel rendering:
in the scheme A, aiming at pixels with two adjacent sides, the rendering method comprises the following steps:
aiming at the first component of each pixel, rendering according to the value of the first component in the target pixel, the adjacent pixel on the left side of the target pixel and the first pixel; the fourth component of the target pixel is the same as the first component of the neighboring pixel to the right of the pixel.
In the scheme B, aiming at the pixels without left side neighbors, the rendering method comprises the following steps: for the first component of each pixel, rendering according to the values of the first components in both the target pixel and the first pixel; the fourth component of the target pixel is the same as the first component of the neighboring pixel to the right of the pixel.
Optionally, the LCD panel used in a large number of experiments is used to perform rendering with different methods on the W component and the non-W component (i.e., the R component, or the G component, or the B component), so that the finally displayed image can be distorted to a smaller extent, based on which the component rendering in the scheme a specifically includes:
and A3, when the first component of the target pixel is the W component, carrying out weighted summation on the values of the W component in the target pixel, the left adjacent pixel of the target pixel and the first pixel.
Illustratively, the W component is rendered as follows:
Pw(i,j)=beta*(c0*Wo(i,j)+c1*Wo(i,j-1)+c2*Ws(sx,sy));
wherein Pw is a rendered W component; beta, c0, c1, c2 are adjustment factors of the components; beta value range [0,1 ]; c0, c1 and c2 are all different from 0, and c0+ c1+ c2 is 1. According to a lot of experiments, preferably, beta is 1, c0 is c1 is c2 is 1/3. (sx, sy) is position information of the first pixel, and Ws is a value of a component corresponding to the W component in the first pixel of which the position information is (sx, sy) in the image. It should be noted that the ordinate of three adjacent sub-pixels in each row of the rendered image is considered to be the same.
It should be noted that, when the weighting coefficients in the above weighted sums are 1/3, that is, when the W component in the target pixel, the W component in the left adjacent pixel of the target pixel, and the W component in the first pixel are averaged, the display effect is not distorted to the maximum extent, which is obtained through a large number of experiments.
And A4, when the first component of the target pixel is the R component, the G component or the B component, calculating the maximum value, the minimum value or the median value of the values of the target pixel, the left adjacent pixel of the target pixel and the first component of the first pixel.
Preferably, the R component, or the G component, or the B component is rendered as follows:
Pr(i,j)=max(Ro(i,j),Ro(i,j-1),Rs(sx,sy));
Pg(i,j)=max(Go(i,j),Go(i,j-1),Gs(sx,sy);
Pb(i,j)=max(Bo(i,j),Bo(i,j-1),Bs(sx,sy));
wherein, Pr, Pg, Pb are R, G, B components after rendering respectively. Rs, Gs, Bs are component values of R, G, B components in the first pixel of the image whose positional information is (sx, sy), respectively.
It should be noted that the rendering of the W component may also be implemented according to a rendering method for a non-W component, but this is not a preferred method. The rendering of the non-W component can be performed in different manners according to the actual display effect.
It should be noted that the method adopted in the above-mentioned scheme B is the same as the method adopted in the above-mentioned scheme a, and is not described herein again. Further, in the above-described scheme B, for the target pixel where there is no left-side neighboring pixel, when rendering is performed on the W component in the target pixel, in step a 3: pw (i, j) ═ beta (c0 × Wo (i, j) + c1 × Wo (i, j-1) + c2 × Ws (sx, sy)), instead: pw (i, j) ═ beta (d0 × Wo (i, j) + d1 × Ws (sx, sy)); wherein beta, c0, c1 and c2 are adjustment factors of the components; the value range of beta is 0 to 1; d0 and d1 are not 0, d0+ d1 is 1, and d0 is preferably d1 is preferably 1/2. When the above-mentioned one component is a non-W component, the rendering on the non-W component is performed such that Pr (i, j) becomes max (Ro (i, j), Ro (i, j-1), Rs (sx, sy)), Pg (i, j) becomes max (Go (i, j), Go (i, j-1), Gs (sx, sy)), Pb (i, j) becomes max (Bo (i, j), Bo (i, j-1), Bs (sx, sy)) in step a4 is replaced with: pr (i, j) max (Ro (i, j), Rs (sx, sy)), Pg (i, j) max (Go (i, j), Gs (sx, sy)), Pb (i, j) max (Bo (i, j), Bs (sx, sy)).
It should be noted that, as will be understood by those skilled in the art, for a target pixel without a left-side neighboring pixel, it is within the scope of the present application to keep the first component of the target pixel unchanged when rendering the target pixel.
104. And outputting the value of the first component and the values of the second and third components after the rendering.
In one example, the order of the pixels in the converted image is cyclic R, G, B, W, W, R, G, B, B, W, R, G, G, B, W, R based on the description of FIG. 5. Therefore, taking 4 pixels (when every 4 pixels are in one group, z represents the number of pixel groups in one row, and z is greater than or equal to 1) of the 4 th (z-1) +1, 4 th (z-1) +2, 4 th (z-1) +3, and 4 th (z-1) +4 of each row as an example, as shown in fig. 7, taking the first component in the scheme a as R as an example, for three pixels after rendering, every 4 adjacent pixels in the same row in the converted image are sequentially arranged according to the pixel arrangement sequence shown in fig. 7. It should be noted that, since the first component of the odd line of the conventional RGBW LCD panel is R and the first component of the even line is B, when the display is performed according to the above-mentioned example of fig. 7, the obtained odd line and even line are respectively arranged as shown in fig. 8 and 9 after the display is performed by using the method provided by the present embodiment. In addition, corresponding adjustment needs to be performed for other types of panels, which is not described herein again.
In another example, the embodiment of the present invention as shown in fig. 10 provides a schematic diagram of another method for displaying an RGB image on an RGBW panel having the same size as the RGB panel. Specifically, scaling an original RGB component of an image, and firstly extracting a W component; zooming the W component to obtain the W component in the converted image; calculating RGB components in the converted image according to the scaled RGB and the scaled W component; rendering the first component to be rendered according to the RGBW component in the converted image and by utilizing the pixel value of the first pixel of the pixel in each converted image; and finally, displaying the rendered components and the components which are kept unchanged in the LCD panel according to the component arrangement sequence in the LCD panel.
In yet another example, the arrangement order of the pixels in the converted image is cyclic R, G, B, W, W, R, G, B, B, W, R, G, G, B, W, R based on what is described in fig. 5. Therefore, taking 4 pixels (when every 4 pixels are in one group, z represents the number of pixel groups in one row, and z is greater than or equal to 1) of the 4 th (z-1) +1, 4(z-1) +2, 4(z-1) +3, and 4(z-1) +4 of each row as an example, fig. 11 shows yet another pixel rendering method provided by the embodiment of the present invention. Specifically, when the original RGB components of 4 consecutive pixels in a certain line in the image (the image indicated by a in the figure) are R, G, B, the converted RGB components corresponding to the 4 pixels in the converted image (the image indicated by b in the figure) obtained after conversion are Ro, Go, Bo, and Wo, respectively. When rendering is performed according to the first component R on the left side, the pixels rendered by the consecutive 4 pixels in the rendered image (the image indicated by c in the figure) are Pr, Go, Bo, Pw, Ro, Go, Pb, Wo, Ro, Pg, Bo, Wo.
In the scheme provided by the application, in order to display the RGB image on the RGBW panel with the same size as the RGB panel, after the RGB components are converted into the RGBW components, the value of the first component of each pixel is rendered by the value of the first component in the pixel, the pixel left side adjacent pixel and the first pixel, the value of the second component and the value of the third component are kept unchanged, and the fourth component is used for rendering the first component of the pixel right side adjacent pixel. According to the scheme provided by the application, when each pixel is rendered, three components are finally output, including the value of the rendered first component and the values of the second component and the third component which are kept unchanged, so that the RGBW four components are compressed into three components, and further, the RGB image is displayed on an RGBW panel with the same size (namely, the same sub-pixels) as the RGB panel. For each pixel in the image finally displayed on the RGBW panel, the pixel is formed by combining four components, specifically including a first component after rendering in the pixel, a second component, a third component, and a first component after rendering in an adjacent pixel on the right side of the pixel. And the first component in the finally displayed pixel fuses the correlation of the fourth component in the adjacent pixel at the left side of the pixel; the finally displayed fourth component in the pixel (i.e. the rendered first component in the pixel adjacent to the right of the pixel) fuses the correlation of the first component in the pixel adjacent to the right of the pixel. Therefore, the values of the four components in each pixel in the finally displayed image respectively change less than the values of the four components in the image after each pixel is sorted.
For the selectively truncated sub-pixels in the prior art, there is no correlation between replacing the pixels with the truncated sub-pixels and replacing the pixels with the truncated sub-pixels. And for the integer pixel level 3/4 downsampling interpolation method in the prior art, the sub-pixel value of each pixel changes. Therefore, compared with the prior art, the scheme provided by the application has the advantages that the pixel value of the sub-pixel in the compressed image finally displayed on the LCD panel is smaller than the pixel value of the sub-pixel in the image before compression. Furthermore, compared with the prior art, the scheme provided by the application effectively reduces the distortion degree of the image display result. In addition, as shown in the schematic diagram of the experimental result of the rendering using the prior art shown in fig. 12 and the schematic diagram of the experimental result of the rendering using the scheme provided in the present application shown in fig. 13, it can be observed that the distortion degree of the image displayed according to the scheme provided in the present invention is lower than that of the image displayed according to the prior art.
An embodiment of the present invention provides an apparatus for displaying an RGB image on an RGBW panel having the same size as an RGB panel, as shown in fig. 14, the apparatus including: a conversion module 21, a sorting module 22, a rendering module 23, and an output module 24, wherein:
a conversion module 21 for converting the original RGB components of the image into RGBW components.
A sorting module 22, configured to arrange the first, second, third, and fourth components of each pixel converted by the conversion module 21 in the following order: r, G, B, W, or G, B, W, R, or B, W, R, G, or W, R, G, B.
A rendering module 23, configured to render, according to the value of the first component among the pixel, the left-side neighboring pixel of the pixel, and the first pixel, the first component sorted by the sorting module 22; the fourth component of the pixel is the same as the first component of the adjacent pixel to the right of the pixel.
Wherein, the first pixel is: and calculating the pixel with the most similar color to the pixel in the pixel neighborhood according to the original RGB components.
And an output module 24, configured to output the value of the first component and the values of the second and third components rendered by the rendering module 23.
Optionally, if the first component of the pixel is a W component, the rendering module 23 is configured to: and carrying out weighted summation on the values of the W component in the pixel, the adjacent pixel at the left side of the pixel and the first pixel.
Optionally, if the first component of the pixel is an R, G, or B component, the rendering module 23 is configured to: the maximum value, the minimum value or the median value of the values of the first component of the pixel, the left adjacent pixel of the pixel and the first pixel is obtained.
Optionally, the apparatus further includes a calculating module 25, where the calculating module 25 is configured to:
performing color gamut conversion on an original RGB component of each pixel in the image to obtain two chrominance components of each pixel;
and calculating the pixel with the most similar color to the pixel in the neighborhood of the pixel according to the two chrominance components of each pixel.
Optionally, the calculating module 25 is further configured to: subtracting the two chrominance components of each pixel in the pixel neighborhood from the two chrominance components of the pixel respectively;
and taking the pixel with the minimum sum of the two difference values as the pixel with the most similar color to the pixel.
Optionally, the conversion module 21 is specifically configured to:
scaling the original RGB components of each pixel in the image;
calculating a W component according to the scaled RGB components;
carrying out scaling processing on the W component, and taking the scaled W component as the W component in the RGBW component;
RGB components in the RGBW components are calculated from the scaled RGB components and the scaled W component.
Optionally, the conversion module 21 is further configured to:
and taking the minimum value or the maximum value in the RGB components after scaling as the W component.
In the scheme provided by the application, in order to display the RGB image on the RGBW panel with the same size as the RGB panel, after the RGB components are converted into the RGBW components, the value of the first component of each pixel is rendered by the value of the first component in the pixel, the pixel left side adjacent pixel and the first pixel, the value of the second component and the value of the third component are kept unchanged, and the fourth component is used for rendering the first component of the pixel right side adjacent pixel. According to the scheme provided by the application, when each pixel is rendered, three components are finally output, including the value of the rendered first component and the values of the second component and the third component which are kept unchanged, so that the RGBW four components are compressed into three components, and further, the RGB image is displayed on an RGBW panel with the same size (namely, the same sub-pixels) as the RGB panel. For each pixel in the image finally displayed on the RGBW panel, the pixel is formed by combining four components, specifically including a first component after rendering in the pixel, a second component, a third component, and a first component after rendering in an adjacent pixel on the right side of the pixel. And the first component in the finally displayed pixel fuses the correlation of the fourth component in the adjacent pixel at the left side of the pixel; the finally displayed fourth component in the pixel (i.e. the rendered first component in the pixel adjacent to the right of the pixel) fuses the correlation of the first component in the pixel adjacent to the right of the pixel. Therefore, the values of the four components in each pixel in the finally displayed image respectively change less than the values of the four components in the image after each pixel is sorted.
For the selectively truncated sub-pixels in the prior art, there is no correlation between replacing the pixels with the truncated sub-pixels and replacing the pixels with the truncated sub-pixels. And for the integer pixel level 3/4 downsampling interpolation method in the prior art, the sub-pixel value of each pixel changes. Therefore, compared with the prior art, the scheme provided by the application has the advantages that the pixel value of the sub-pixel in the compressed image finally displayed on the LCD panel is smaller than the pixel value of the sub-pixel in the image before compression. Furthermore, compared with the prior art, the scheme provided by the application effectively reduces the distortion degree of the image display result.
It should be noted that, in a specific implementation process, each step performed by the method for displaying an RGB image on an RGBW panel having the same size as the RGB panel as shown in fig. 4 may be implemented by a processor in a hardware form executing a computer execution instruction in a software form stored in a memory, and is not described herein again to avoid repetition. The program corresponding to the actions performed by the method for displaying the RGB image on the RGBW panel with the same size as the RGB panel can be stored in the form of software in the memory implemented by the method for displaying the RGB image on the RGBW panel with the same size as the RGB panel, so that the processor can call and execute the operations corresponding to the above modules.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the modules described above may refer to the corresponding process in the foregoing method embodiments, and is not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A method of displaying an RGB image on an RGBW panel having the same size as the RGB panel, comprising:
converting an original RGB component of an image into an RGBW component;
arranging the first, second, third and fourth components of each pixel in the following order: r, G, B, W, or G, B, W, R, or B, W, R, G, or W, R, G, B;
for the first component of each pixel, rendering according to the value of the first component in the pixel, the adjacent pixel on the left side of the pixel and the first pixel; the fourth component of the pixel is the same as the first component of the adjacent pixel to the right of the pixel;
wherein, the first pixel is: calculating a pixel with the most similar color to the pixel in the pixel neighborhood according to the original RGB components;
outputting the value of the rendered first component and the values of the second and third components;
wherein converting the original RGB components of the image into RGBW components comprises: scaling the original RGB components of each pixel in the image; calculating a W component according to the scaled RGB components; scaling the W component, and taking the scaled W component as a W component in an RGBW component; calculating an RGB component in the RGBW component according to the scaled RGB component and the scaled W component;
calculating the pixel with the most similar color to the pixel in the pixel neighborhood according to the original RGB components specifically includes: performing color gamut conversion on the original RGB components of each pixel in the image to obtain two chrominance components of each pixel; and calculating the pixel with the most similar color to the pixel in the neighborhood of the pixel according to the two chrominance components of each pixel.
2. The method of claim 1, wherein if the first component of the pixel is a W component, the rendering according to the values of the first component of the pixel, a left neighboring pixel of the pixel, and the first pixel comprises:
and carrying out weighted summation on the values of the W component in the pixel, the adjacent pixel at the left side of the pixel and the first pixel.
3. The method of claim 1, wherein if the first component of the pixel is an R, G, or B component, the rendering according to the value of the first component of the pixel, the left neighboring pixel of the pixel, and the first pixel comprises:
the maximum value, the minimum value or the median value of the values of the first component of the pixel, the left adjacent pixel of the pixel and the first pixel is obtained.
4. The method of claim 1, wherein calculating a pixel in the neighborhood of the pixel that is most similar to the color of the pixel based on the two chrominance components of each pixel comprises:
subtracting the two chrominance components of each pixel in the pixel neighborhood from the two chrominance components of the pixel respectively;
and taking the pixel with the minimum sum of the two difference values as the pixel with the most similar color to the pixel.
5. The method of claim 1, the computing the W component from the scaled RGB components, comprising:
and taking the minimum value or the maximum value in the scaled RGB components as a W component.
6. An apparatus for displaying an RGB image on an RGBW panel having the same size as the RGB panel, comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is adapted to execute the computer program to implement the method of any of claims 1-5.
7. A computer storage medium having stored thereon computer software instructions that, when executed, cause a computer to perform the method of any of claims 1 to 5.
CN201710612864.2A 2017-07-25 2017-07-25 Method and device for displaying RGB image on RGBW panel Active CN107358904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612864.2A CN107358904B (en) 2017-07-25 2017-07-25 Method and device for displaying RGB image on RGBW panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612864.2A CN107358904B (en) 2017-07-25 2017-07-25 Method and device for displaying RGB image on RGBW panel

Publications (2)

Publication Number Publication Date
CN107358904A CN107358904A (en) 2017-11-17
CN107358904B true CN107358904B (en) 2020-06-02

Family

ID=60284649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612864.2A Active CN107358904B (en) 2017-07-25 2017-07-25 Method and device for displaying RGB image on RGBW panel

Country Status (1)

Country Link
CN (1) CN107358904B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461400B (en) * 2018-12-17 2022-02-08 海信视像科技股份有限公司 Sub-pixel rendering method and device for converting RGB (red, green and blue) image into RGBW (red, green and blue) image
CN110491325A (en) * 2019-08-23 2019-11-22 京东方科技集团股份有限公司 Rendering method, device and the computer readable storage medium of RGB to RGBW

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105336288B (en) * 2014-08-15 2018-02-16 Tcl集团股份有限公司 A kind of rgb signal is to the conversion method of RGBW signals, device and TV
CN105070270B (en) * 2015-09-14 2017-10-17 深圳市华星光电技术有限公司 The compensation method of RGBW panel sub-pixels and device
CN105261321A (en) * 2015-09-18 2016-01-20 深圳市华星光电技术有限公司 Pixel rendering method, pixel rendering device and display
CN105609033A (en) * 2015-12-18 2016-05-25 武汉华星光电技术有限公司 Pixel rendering method, pixel rendering device and display device
CN106409266B (en) * 2016-12-14 2019-09-17 Tcl集团股份有限公司 One sub-pixel rendering method and rendering device

Also Published As

Publication number Publication date
CN107358904A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US11120726B2 (en) Method and device for driving display panel, and display apparatus
US11037523B2 (en) Display method of display panel that uses different display algorithms for different display areas, display panel and display device
RU2660628C1 (en) Liquid crystal panel and control method for such panel
CN107092684B (en) Image processing method and device, storage medium
CN107068035B (en) Display method and display device
US9886882B2 (en) Grayscale compensation method
US20170256193A1 (en) Pixel arranging method, pixel rendering method and image display device
US10783837B2 (en) Driving method and driving device of display device, and related device
US8063913B2 (en) Method and apparatus for displaying image signal
CN104867471B (en) A kind of RGB turns the method, apparatus and RGBW display equipment of RGBW
CN101727659B (en) Method and system for enhancing image edge
KR20060109451A (en) Smart clipper for mobile displays
CN108596828B (en) Image floodlight processing method and device, electronic equipment and storage medium
CN109461400B (en) Sub-pixel rendering method and device for converting RGB (red, green and blue) image into RGBW (red, green and blue) image
US20160267685A1 (en) Image processing method of a display for reducing color shift
CN106560880B (en) The image rendering method of display device and the display device
CN107358904B (en) Method and device for displaying RGB image on RGBW panel
EP2847998A1 (en) Systems, methods, and computer program products for compound image demosaicing and warping
CN110490838B (en) Method and device for processing boundaries of areas with different resolutions of display panel
KR102407932B1 (en) Image processor, display device having the same, and method of driving display device
CN100476946C (en) Four color data transformation method and apparatus therefor
US10210826B2 (en) Sub-pixel rendering method for delta RGBW panel and delta RGBW panel with sub-pixel rendering function
CN112884661A (en) Image processing apparatus, display apparatus, computer-readable storage medium, and image processing method
CN113658559A (en) Display driving device and driving method
CN109461419B (en) Display data processing method and system and display device

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