[go: up one dir, main page]

CN106409266A - Sub-pixel rendering and rendering device - Google Patents

Sub-pixel rendering and rendering device Download PDF

Info

Publication number
CN106409266A
CN106409266A CN201611153760.1A CN201611153760A CN106409266A CN 106409266 A CN106409266 A CN 106409266A CN 201611153760 A CN201611153760 A CN 201611153760A CN 106409266 A CN106409266 A CN 106409266A
Authority
CN
China
Prior art keywords
pixel
component
making
grey decision
compensation
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
Application number
CN201611153760.1A
Other languages
Chinese (zh)
Other versions
CN106409266B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201611153760.1A priority Critical patent/CN106409266B/en
Publication of CN106409266A publication Critical patent/CN106409266A/en
Application granted granted Critical
Publication of CN106409266B publication Critical patent/CN106409266B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/34Control 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 by control of light from an independent source
    • G09G3/36Control 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 by control of light from an independent source using liquid crystals
    • G09G3/3607Control 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 by control of light from an independent source using liquid crystals for displaying colours or for displaying grey scales with a specific pixel layout, e.g. using sub-pixels

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明适用于显示技术领域,提供了一种子像素渲染方法及装置,包括:获取原始图像中第一像素分别在三基色分量中的第一灰阶值;获取第一补偿像素分别在四色分量中的第二灰阶值;根据第二灰阶值,计算第二补偿像素分别在三基色分量以及第一白色分量中的第三灰阶值,并将第一补偿像素在白色分量中的第二灰阶值输出为第二补偿像素在第二白色分量中的第三灰阶值;对各个第三灰阶值进行融合,并将融合结果输出为目标图像中第二像素的RGB子像素的灰阶值;将第二补偿像素在第二白色分量中的第三灰阶值输出为第二像素的W子像素的灰阶值。本发明保留了原始图像数据中的高频部分,避免了图像的边沿锐利度骤降,保证了渲染完成后得到更为清晰的图像显示效果。

The present invention is applicable to the field of display technology, and provides a sub-pixel rendering method and device, including: obtaining the first grayscale values of the first pixels in the original image respectively in the three primary color components; obtaining the first compensation pixels in the four color components respectively According to the second grayscale value, calculate the third grayscale value of the second compensation pixel in the three primary color components and the first white component respectively, and calculate the third grayscale value of the first compensation pixel in the white component The second grayscale value is output as the third grayscale value of the second compensation pixel in the second white component; each third grayscale value is fused, and the fusion result is output as the RGB subpixel of the second pixel in the target image Gray scale value: outputting the third gray scale value of the second compensation pixel in the second white component as the gray scale value of the W sub-pixel of the second pixel. The invention retains the high-frequency part in the original image data, avoids the sudden drop of the edge sharpness of the image, and ensures a clearer image display effect after the rendering is completed.

Description

一种子像素渲染方法及渲染装置A sub-pixel rendering method and rendering device

技术领域technical field

本发明属于显示技术领域,尤其涉及一种子像素渲染方法及渲染装置。The invention belongs to the field of display technology, and in particular relates to a sub-pixel rendering method and a rendering device.

背景技术Background technique

随着液晶面板分辨率的不断提高,面板的透过率变得越来越低,每个子像素的面积也随之变得越来越小,因此,液晶面板的良率受到了极大的影响。随着科技的进步,产生了一种四色型的基于Pentile像素排列的RGBW面板。RGBW面板的像素排列中,每个像素仅由两个子像素构成,且在原有RGB面板的红色、绿色和蓝色三个子像素的基础上增加了W白色子像素,因而大幅度地提升了液晶面板的透光率,在显示相同亮度的画面时,还具有更低的耗电量,因而RGBW面板在液晶市场中占据了重要的地位。With the continuous improvement of the resolution of the LCD panel, the transmittance of the panel becomes lower and lower, and the area of each sub-pixel becomes smaller and smaller. Therefore, the yield rate of the LCD panel is greatly affected. . With the advancement of technology, a four-color RGBW panel based on Pentile pixel arrangement has been produced. In the pixel arrangement of the RGBW panel, each pixel is only composed of two sub-pixels, and the W white sub-pixel is added on the basis of the red, green and blue three sub-pixels of the original RGB panel, thus greatly improving the performance of the LCD panel. Excellent light transmittance and lower power consumption when displaying images with the same brightness, so RGBW panels occupy an important position in the LCD market.

由于目前的图像数据主要还是针对RGB格式的图像数据,因此,需要利用子像素渲染方法来实现RGB子像素到RGBW子像素的映射及转换。然而,利用现有的子像素渲染方法获取RGBW面板中各个子像素的数据,会导致原始图像数据中的高频信息部分丢失,降低了RGBW面板中显示的图像的边沿锐利度。Since the current image data is mainly for image data in RGB format, it is necessary to use a sub-pixel rendering method to realize the mapping and conversion from RGB sub-pixels to RGBW sub-pixels. However, using the existing sub-pixel rendering method to obtain the data of each sub-pixel in the RGBW panel will cause part of the high-frequency information in the original image data to be lost, reducing the edge sharpness of the image displayed on the RGBW panel.

发明内容Contents of the invention

本发明实施例的目的在于提供一种子像素渲染方法及渲染装置,旨在解决现有技术使得原始图像数据中的高频信息部分丢失以及降低了RGBW面板中图像的边沿锐利度的问题。The purpose of the embodiments of the present invention is to provide a sub-pixel rendering method and a rendering device, aiming to solve the problems in the prior art that the high-frequency information in the original image data is partially lost and the edge sharpness of the image in the RGBW panel is reduced.

本发明实施例是这样实现的,一种子像素渲染方法,包括:The embodiment of the present invention is implemented in this way, a sub-pixel rendering method, comprising:

获取原始图像中第一像素分别在三基色分量中的第一灰阶值,所述三基色分量包括红色分量、绿色分量以及蓝色分量;Acquiring the first grayscale values of the first pixel in the original image respectively in three primary color components, the three primary color components including red component, green component and blue component;

对所述第一灰阶值进行色域转换处理,以获取第一补偿像素分别在四色分量中的第二灰阶值,所述四色分量包括所述三基色分量以及白色分量;Performing color gamut conversion processing on the first grayscale value to obtain second grayscale values of the first compensation pixel in four color components respectively, the four color components including the three primary color components and a white component;

根据所述第二灰阶值,计算第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值,并将所述第一补偿像素在白色分量中的第二灰阶值输出为所述第二补偿像素在第二白色分量中的第三灰阶值;According to the second grayscale value, calculate the third grayscale value of the second compensation pixel in the three primary color components and the first white component, and calculate the second grayscale value of the first compensation pixel in the white component The scale value output is the third gray scale value of the second compensation pixel in the second white component;

对所述第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值进行融合,并将融合结果输出为目标图像中第二像素的RGB子像素的灰阶值;Fusing the third grayscale values of the second compensation pixel in the three primary color components and the first white component respectively, and outputting the fusion result as the grayscale value of the RGB sub-pixel of the second pixel in the target image;

将所述第二补偿像素在所述第二白色分量中的所述第二灰阶值输出为所述第二像素的W子像素的灰阶值。outputting the second gray scale value of the second compensation pixel in the second white component as the gray scale value of the W sub-pixel of the second pixel.

本发明实施例的另一目的在于提供一种子像素渲染装置,包括:Another object of the embodiments of the present invention is to provide a sub-pixel rendering device, including:

第一获取单元,用于获取原始图像中第一像素分别在三基色分量中的第一灰阶值,所述三基色分量包括红色分量、绿色分量以及蓝色分量;The first acquiring unit is configured to acquire the first grayscale values of the first pixel in the original image respectively in three primary color components, the three primary color components including red component, green component and blue component;

转换单元,用于对所述第一灰阶值进行色域转换处理,以获取第一补偿像素分别在四色分量中的第二灰阶值,所述四色分量包括所述三基色分量以及白色分量;a conversion unit, configured to perform color gamut conversion processing on the first grayscale value, so as to obtain second grayscale values of the first compensation pixel respectively in four color components, the four color components including the three primary color components and white component;

计算单元,用于根据所述第二灰阶值,计算第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值,并将所述第一补偿像素在白色分量中的第二灰阶值输出为所述第二补偿像素在第二白色分量中的第三灰阶值;The calculation unit is used to calculate the third gray scale value of the second compensation pixel respectively in the three primary color components and the first white component according to the second gray scale value, and calculate the third gray scale value of the first compensation pixel in the white component The output of the second grayscale value in is the third grayscale value of the second compensation pixel in the second white component;

融合单元,用于对所述第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值进行融合,并将融合结果输出为目标图像中第二像素的RGB子像素的灰阶值;A fusion unit, configured to fuse the third grayscale values of the second compensation pixel in the three primary color components and the first white component respectively, and output the fusion result as the RGB sub-pixel of the second pixel in the target image grayscale value;

输出单元,用于将所述第二补偿像素在所述第二白色分量中的所述第二灰阶值输出为所述第二像素的W子像素的灰阶值。An output unit, configured to output the second grayscale value of the second compensation pixel in the second white component as the grayscale value of the W subpixel of the second pixel.

本发明实施例通过对原始图像中第一像素在三基色分量中的各个第一灰阶值进行多重转换以及重新融合处理,从而能够根据直接采样得到的数据,计算出目标图像中第二像素的各个子像素的灰阶值,避免经过低通滤波处理的步骤,由此保留了原始图像数据中的高频信息部分,避免了RGBW面板中图像的边沿锐利度骤降,因而保证了像素渲染完成后能够得到更为清晰的图像显示效果。In the embodiment of the present invention, multiple conversion and re-fusion processing are performed on the first grayscale values of the first pixel in the three primary color components in the original image, so that the grayscale value of the second pixel in the target image can be calculated based on the data obtained by direct sampling. The grayscale value of each sub-pixel avoids the steps of low-pass filtering, thereby retaining the high-frequency information in the original image data, avoiding the sharp drop of the edge sharpness of the image in the RGBW panel, thus ensuring the completion of pixel rendering After that, a clearer image display effect can be obtained.

附图说明Description of drawings

图1是本发明实施例提供的子像素渲染方法的实现流程图;FIG. 1 is an implementation flow chart of a sub-pixel rendering method provided by an embodiment of the present invention;

图2是本发明实施例提供的子像素渲染方法S102的具体实现流程图;FIG. 2 is a specific implementation flowchart of the sub-pixel rendering method S102 provided by the embodiment of the present invention;

图3是本发明实施例提供的子像素渲染方法S103的具体实现流程图;FIG. 3 is a specific implementation flowchart of the sub-pixel rendering method S103 provided by the embodiment of the present invention;

图4是本发明另一实施例提供的子像素渲染方法的实现流程图;Fig. 4 is an implementation flowchart of a sub-pixel rendering method provided by another embodiment of the present invention;

图5是本发明实施例提供的在一种子像素共用方式下的第一补偿图像中的像素阵列;Fig. 5 is a pixel array in the first compensated image in a sub-pixel sharing mode provided by an embodiment of the present invention;

图6是本发明实施例提供的子像素渲染方法S104的具体实现流程图;FIG. 6 is a specific implementation flowchart of the sub-pixel rendering method S104 provided by the embodiment of the present invention;

图7是本发明实施例提供的子像素渲染方法的流程示意图;FIG. 7 is a schematic flowchart of a sub-pixel rendering method provided by an embodiment of the present invention;

图8是本发明实施例提供的子像素渲染装置的结构框图。Fig. 8 is a structural block diagram of a sub-pixel rendering device provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例通过对原始图像中第一像素在三基色分量中的各个第一灰阶值进行多重转换以及重新融合处理,从而能够根据直接采样得到的数据,计算出目标图像中第二像素的各个子像素的灰阶值,避免经过低通滤波处理的步骤,由此保留了原始图像数据中的高频信息部分,避免了RGBW面板中图像的边沿锐利度骤降,因而保证了像素渲染完成后能够得到更为清晰的图像显示效果。In the embodiment of the present invention, multiple conversion and re-fusion processing are performed on the first grayscale values of the first pixel in the three primary color components in the original image, so that the grayscale value of the second pixel in the target image can be calculated based on the data obtained by direct sampling. The grayscale value of each sub-pixel avoids the steps of low-pass filtering, thereby retaining the high-frequency information in the original image data, avoiding the sharp drop of the edge sharpness of the image in the RGBW panel, thus ensuring the completion of pixel rendering After that, a clearer image display effect can be obtained.

图1示出了本发明实施例提供的子像素渲染方法的实现流程,详述如下:Figure 1 shows the implementation process of the sub-pixel rendering method provided by the embodiment of the present invention, which is described in detail as follows:

在S101中,获取原始图像中第一像素分别在三基色分量中的第一灰阶值,所述三基色分量包括红色分量,绿色分量以及蓝色分量。In S101, the first gray scale values of the first pixel in the original image respectively in three primary color components are acquired, and the three primary color components include a red component, a green component and a blue component.

在本实施例中,原始图像为基于RGB色彩空间的图像,其能够显示在以RGB像素排列方式的RGB面板中。每个像素由红蓝绿RGB三基色组成,每个像素上的每种颜色称为一个子像素,因此,每个像素均由红色子像素、绿色子像素以及蓝色子像素构成。In this embodiment, the original image is an image based on the RGB color space, which can be displayed on an RGB panel in which RGB pixels are arranged. Each pixel is composed of three primary colors of red, blue, green, RGB, and each color on each pixel is called a sub-pixel. Therefore, each pixel is composed of red sub-pixels, green sub-pixels and blue sub-pixels.

由于三个子像素具有不同的色彩亮度层级,因而在三个子像素的共同作用下,能够使得其共同对应的像素显示出不同的色彩。其中,色彩亮度层级的大小即为灰阶值。Since the three sub-pixels have different color brightness levels, under the joint action of the three sub-pixels, the corresponding pixels can display different colors. Wherein, the size of the color brightness level is the gray scale value.

获取原始图像中第一像素分别在三基色分量中的第一灰阶值,即,在原始图像的像素阵列中,获取指定的某行某列的第一像素在红色分量R,绿色分量G以及蓝色分量B中的灰阶值(R0,G0,B0),也即为分别获取第一像素的红色子像素、绿色子像素以及蓝色子像素的灰阶值。Obtain the first grayscale values of the first pixel in the original image in the three primary color components, that is, in the pixel array of the original image, obtain the first pixel in a specified row and column in the red component R, green component G and The gray scale values (R 0 , G 0 , B 0 ) in the blue component B are the gray scale values of the red sub-pixel, the green sub-pixel and the blue sub-pixel of the first pixel respectively.

在S102中,对所述第一灰阶值进行色域转换处理,以获取第一补偿像素分别在四色分量中的第二灰阶值,所述四色分量包括所述三基色分量以及白色分量。In S102, color gamut conversion processing is performed on the first grayscale value to obtain second grayscale values of the first compensation pixel in four color components respectively, and the four color components include the three primary color components and white portion.

因原始图像数据是RGB色彩空间下的图像数据,因而仅具有三个颜色分量。本实施例在原始图像的每个像素中加入一个补偿分量W1,从而使得每个像素能够具有四个颜色分量,该像素称为第一补偿像素。将每个原始图像中的第一像素转换为对应的第一补偿像素,并将所有的第一补偿像素依照第一像素的阵列位置排列,可构成对应于第一图像的第一补偿图像。Since the original image data is image data under the RGB color space, it has only three color components. In this embodiment, a compensation component W 1 is added to each pixel of the original image, so that each pixel can have four color components, and this pixel is called a first compensation pixel. Converting the first pixels in each original image into corresponding first compensation pixels, and arranging all the first compensation pixels according to the array positions of the first pixels can constitute a first compensation image corresponding to the first image.

由于第一补偿像素中补偿分量W1的混入,使得每个像素所拥有的总的颜色信息数据比第一像素中所拥有的总的颜色信息数据多,为了避免图像出现色彩错乱,在加入补偿分量W1的同时,调整第一补偿像素在三基色分量中的灰阶值,保证颜色信息数据的总量与原始图像中的一致。将原始图像中第一像素的三基色分量的灰阶值(R0,G0,B0)转换为第一补偿像素的三基色分量的灰阶值(R1,G1,B1)和补偿分量W1的灰阶值的过程即为色域转换过程。Due to the mixing of the compensation component W1 in the first compensation pixel, the total color information data owned by each pixel is more than the total color information data owned by the first pixel. In order to avoid color confusion in the image, add compensation At the same time as component W1, adjust the grayscale value of the first compensation pixel in the three primary color components to ensure that the total amount of color information data is consistent with that in the original image. Convert the grayscale values (R 0 , G 0 , B 0 ) of the three primary color components of the first pixel in the original image to the grayscale values (R 1 , G 1 , B 1 ) of the first compensated pixel’s three primary color components and The process of compensating the grayscale value of the component W 1 is the color gamut conversion process.

具体地,作为本发明的一个实施例,如图2所示,S102包括:Specifically, as an embodiment of the present invention, as shown in FIG. 2, S102 includes:

在S201中,获取所述三基色分量中所述第一灰阶值的最大值以及最小值。In S201, a maximum value and a minimum value of the first grayscale value in the three primary color components are acquired.

第一像素在三基色分量中的第一灰阶值有三个,分别为R0、G0、B0。三个灰阶值为具体的数值,可进行大小比较。通过判断比较后,在三个灰阶值中,选取最大的一个灰阶值以及最小的一个灰阶值。There are three first grayscale values of the first pixel in the three primary color components, namely R 0 , G 0 , and B 0 . The three grayscale values are specific numerical values, which can be compared in size. After the judgment and comparison, the largest gray-scale value and the smallest gray-scale value are selected among the three gray-scale values.

在S202中,根据预设的第一转换算法对所述第一灰阶值进行色域转换处理,所述第一转换算法包括:In S202, perform color gamut conversion processing on the first grayscale value according to a preset first conversion algorithm, where the first conversion algorithm includes:

其中,所述gain为补偿系数,所述min(R0,G0,B0)和max(R0,G0,B0)分别为所述第一灰阶值的最大值以及最小值,所述R0、G0、B0分别为所述第一像素在红色分量、绿色分量以及蓝色分量中的第一灰阶值,所述R1、G1、B1、W1分别为所述第一补偿像素在红色分量、绿色分量、蓝色分量以及白色分量中的第二灰阶值。Wherein, the gain is a compensation coefficient, and the min(R 0 , G 0 , B 0 ) and max(R 0 , G 0 , B 0 ) are respectively the maximum value and the minimum value of the first gray scale value, The R 0 , G 0 , and B 0 are respectively the first grayscale values of the first pixel in the red component, the green component, and the blue component, and the R 1 , G 1 , B 1 , and W 1 are respectively The second gray scale value of the first compensation pixel in the red component, the green component, the blue component and the white component.

将S101中采集得到的各个第一灰阶值分别代入上式中相应的参数量,根据该转换算法可计算出,色域转换后,在第一像素中加入的补偿分量W1的灰阶值以及三基色分量中减少的灰阶值。由此,得到第一像素所对应的第一补偿像素在各个颜色分量上的灰阶值,称为第二灰阶值。Substitute the first grayscale values collected in S101 into the corresponding parameters in the above formula, and calculate the grayscale value of the compensation component W1 added to the first pixel after color gamut conversion according to the conversion algorithm and reduced grayscale values in the three primary color components. Thus, the gray scale value of the first compensation pixel corresponding to the first pixel on each color component is obtained, which is referred to as the second gray scale value.

在本发明实施例中,补偿分量W1为白色分量。背光要通过滤光片才能从面板上透射出来,而三基色分量的滤光片只能透射出相应的三基色光线,其它色彩的光线将被滤光片遮挡,因此最终能通过彩色滤光片的光能量只有光线能量的25%左右,而在第一补偿像素中增加了白色分量后,可以让各种颜色的光线都顺利通过,光线几乎没有损耗,因此,有利于提升面板的透过率,从而降低背光的功率,得到了更高的亮度。In the embodiment of the present invention, the compensation component W 1 is a white component. The backlight can only be transmitted from the panel through the filter, and the filter of the three primary color components can only transmit the corresponding three primary color light, and the light of other colors will be blocked by the filter, so it can finally pass through the color filter. The light energy of the light is only about 25% of the light energy, and after adding the white component in the first compensation pixel, the light of various colors can pass through smoothly, and there is almost no loss of light, so it is beneficial to improve the transmittance of the panel , thereby reducing the power of the backlight and obtaining higher brightness.

在S103中,根据所述第二灰阶值,计算第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值,并将所述第一补偿像素在白色分量中的第二灰阶值输出为所述第二补偿像素在第二白色分量中的第三灰阶值。In S103, according to the second grayscale value, calculate the third grayscale value of the second compensation pixel in the three primary color components and the first white component respectively, and set the first compensation pixel in the white component The output of the second grayscale value of is the third grayscale value of the second compensation pixel in the second white component.

完成第一像素的色域转换后,得到对应的第一补偿像素,其包含有(R1,G1,B1,W1)四个第二灰阶值。After the color gamut conversion of the first pixel is completed, the corresponding first compensation pixel is obtained, which includes (R 1 , G 1 , B 1 , W 1 ) four second grayscale values.

此时,提取第一补偿像素在三基色分量中的第二灰阶值,即R1、G1及B1,对R1、G1及B1三个数据进行再次转换,保留第一补偿像素在白色分量中的第二灰阶值W1。从而在转换后,得到一个第二补偿像素,该像素具有五个颜色分量,分别为三基色分量以及两个白色分量。相应地,该第二补偿像素具有五个第三灰阶值(W21,R2,G2,B2,W22)。其中,W22=W1,即第二补偿像素在第二白色分量中的第三灰阶值与第一补偿像素在白色分量中的第二灰阶值相同。At this time, extract the second grayscale value of the first compensation pixel in the three primary color components, that is, R 1 , G 1 and B 1 , convert the three data of R 1 , G 1 and B 1 again, and keep the first compensation The second grayscale value W 1 of the pixel in the white component. Therefore, after conversion, a second compensation pixel is obtained, and the pixel has five color components, which are three primary color components and two white components respectively. Correspondingly, the second compensation pixel has five third gray scale values (W 21 , R 2 , G 2 , B 2 , W 22 ). Wherein, W 22 =W 1 , that is, the third grayscale value of the second compensation pixel in the second white component is the same as the second grayscale value of the first compensation pixel in the white component.

作为本发明的一个实施例,图3示出了本发明实施例提供的子像素渲染方法S103的具体实现流程图,详述如下:As an embodiment of the present invention, FIG. 3 shows a specific implementation flowchart of the sub-pixel rendering method S103 provided by the embodiment of the present invention, which is described in detail as follows:

在S301中,获取所述三基色分量中所述第二灰阶值的最小值。In S301, a minimum value of the second gray scale value among the three primary color components is acquired.

第一补偿像素在三基色分量中的第二灰阶值有三个,分别为R1、G1、B1。三个灰阶值为具体的数值,可进行大小比较。通过判断比较后,在三个灰阶值中,选取最大的一个第二灰阶值以及最小的一个第二灰阶值。There are three second grayscale values of the first compensation pixel in the three primary color components, namely R 1 , G 1 , and B 1 . The three grayscale values are specific numerical values, which can be compared in size. After the judgment and comparison, among the three gray-scale values, the largest second gray-scale value and the smallest second gray-scale value are selected.

在S302中,根据预设的第二转换算法对所述第二灰阶值进行处理,所述第二转换算法包括:In S302, the second gray scale value is processed according to a preset second conversion algorithm, and the second conversion algorithm includes:

其中,所述min(R1,G1,B1)为所述第二灰阶值的最小值,所述R1、G1、B1、W21分别为所述第二补偿像素在红色分量、绿色分量、蓝色分量以及第一白色分量中的第三灰阶值。Wherein, the min(R 1 , G 1 , B 1 ) is the minimum value of the second grayscale value, and the R 1 , G 1 , B 1 , and W 21 are respectively the red color of the second compensation pixel. component, green component, blue component, and the third grayscale value in the first white component.

图4示出了本发明另一个实施例提供的子像素渲染方法的实现流程,在S103之后,所述方法还包括:Fig. 4 shows the implementation flow of the sub-pixel rendering method provided by another embodiment of the present invention, after S103, the method further includes:

在S401中,获取所述第二补偿像素与相邻像素之间的共用子像素所对应的色彩分量,所述色彩分量为所述三基色分量中的一种。In S401, acquire a color component corresponding to a shared sub-pixel between the second compensation pixel and an adjacent pixel, where the color component is one of the three primary color components.

RGBW面板中的一个像素仅对应有两个子像素,一个RGB子像素以及一个W子像素。在一个像素中,无法单独依靠一个RGB子像素以及一个W子像素来展示出各种颜色信息,因此,通过与相邻像素共用一个RGB子像素,由此来达到以低分辨率模拟高分辨率的效果。One pixel in the RGBW panel corresponds to only two sub-pixels, one RGB sub-pixel and one W sub-pixel. In a pixel, it is impossible to rely on one RGB sub-pixel and one W sub-pixel to display various color information. Therefore, by sharing one RGB sub-pixel with adjacent pixels, it is possible to simulate high resolution at low resolution. Effect.

图5示出了在一种子像素共用方式下的第一补偿图像中的像素阵列。如图5所示,任意一个W子像素所属的第一补偿像素均需要借用相邻的各个RGB子像素,该相邻的RGB子像素为该第一补偿像素自身所不具备的一种颜色分量下的子像素。Fig. 5 shows a pixel array in a first compensated image in a sub-pixel sharing manner. As shown in Figure 5, the first compensation pixel to which any W sub-pixel belongs needs to borrow adjacent RGB sub-pixels, and the adjacent RGB sub-pixels are a color component that the first compensation pixel itself does not have. sub-pixels below.

若要获取第一补偿像素与相邻像素之间的共用子像素所对应的色彩分量,则先找出第一补偿像素在各个方向上的相邻像素,再确定其与每个相邻像素之间可以共用哪些子像素,从而再获取该共用子像素对应的色彩分量。To obtain the color components corresponding to the shared sub-pixels between the first compensation pixel and adjacent pixels, first find the adjacent pixels of the first compensation pixel in each direction, and then determine the distance between it and each adjacent pixel Which sub-pixels can be shared among them, so as to obtain the color components corresponding to the shared sub-pixels.

例如,在图5中,假设R’、G’、B’子像素所在的第一补偿像素为P(i,j),则第一补偿像素P(i,j)在各个方向上的相邻像素为:下方的相邻像素P(i+1,j)、左边的相邻像素P(i,j-1)、右边的相邻像素P(i,j+1)。从图中可看出,该第一补偿像素P(i,j)与其下方的相邻像素P(i+1,j)共用G’子像素,与其左边的相邻像素P(i,j-1)共用R’子像素,与其右边的相邻像素P(i,j+1)共用B’子像素。对于各个方向上的共用子像素R’、G’、B’,其对应的色彩分量分别为红色分量、绿色分量以及蓝色分量。For example, in Fig. 5, assuming that the first compensation pixel where R', G', and B' sub-pixels are located is P(i, j), then the adjacent compensation pixels P(i, j) in each direction The pixels are: the lower adjacent pixel P(i+1,j), the left adjacent pixel P(i,j-1), and the right adjacent pixel P(i,j+1). It can be seen from the figure that the first compensation pixel P(i,j) shares the G' sub-pixel with the adjacent pixel P(i+1,j) below it, and the adjacent pixel P(i,j- 1) Share the R' sub-pixel, and share the B' sub-pixel with its right adjacent pixel P(i,j+1). For the shared sub-pixels R', G', B' in each direction, the corresponding color components are red component, green component and blue component respectively.

在S402中,分别获取所述第二补偿像素及其相邻像素在所述色彩分量中的所述第三灰阶值,并将其中最大的所述第三灰阶值重新确定为所述第二补偿像素在所述色彩分量中的第三灰阶值。In S402, respectively acquire the third grayscale value of the second compensation pixel and its adjacent pixels in the color component, and re-determine the largest third grayscale value among them as the first grayscale value Second, compensate the third grayscale value of the pixel in the color component.

对于第二补偿像素及其共用红色子像素的相邻像素,分别获取这两个像素在红色分量中的第三灰阶值。由于第二补偿图像中的每个像素均为第二补偿像素,且第二补偿像素在三基色分量中的第三灰阶值已由S103获得。因此,对于其中的一个第二补偿像素,其相邻像素也是图像中的另一个第二补偿像素,其第三灰阶值也可通过S103获得。在本步骤中,读取该两个像素在红色分量中的第三灰阶值。在得到的两个读取值之中,选出较大的一个第三灰阶值,则将第二补偿像素在红色分量中的第三灰阶值更新为该较大的一个第三灰阶值。For the second compensation pixel and its adjacent pixels that share the red sub-pixel, the third grayscale values in the red component of these two pixels are obtained respectively. Since each pixel in the second compensated image is a second compensated pixel, and the third gray scale value of the second compensated pixel in the three primary color components has been obtained in S103. Therefore, for one of the second compensation pixels, its adjacent pixel is also another second compensation pixel in the image, and its third grayscale value can also be obtained through S103. In this step, the third grayscale values of the two pixels in the red component are read. Among the two read values obtained, if a larger third grayscale value is selected, the third grayscale value of the second compensation pixel in the red component is updated to the larger third grayscale value value.

同理,获取第二补偿像素及其共用绿色子像素的相邻像素在绿色分量中的第三灰阶值,并将其中较大的第三灰阶值重新确定为第二补偿像素在绿色分量中的第三灰阶值;获取第二补偿像素及其共用蓝色子像素的相邻像素在蓝色分量中的第三灰阶值,并将其中较大的第三灰阶值重新确定为第二补偿像素在蓝色分量中的第三灰阶值。Similarly, obtain the third grayscale value of the second compensation pixel and its adjacent pixels sharing the green sub-pixel in the green component, and re-determine the larger third grayscale value as the second compensation pixel in the green component the third grayscale value in the blue component; obtain the third grayscale value of the second compensation pixel and its adjacent pixels sharing the blue subpixel in the blue component, and re-determine the larger third grayscale value as The third grayscale value of the second compensation pixel in the blue component.

在本实施例中,将所述第一补偿像素在白色分量中的第二灰阶值输出为所述第二补偿像素在第二白色分量中的第三灰阶值。In this embodiment, the second grayscale value of the first compensation pixel in the white component is output as the third grayscale value of the second compensation pixel in the second white component.

若以参数符号来表示上述过程,则具体如下:If the above process is represented by parameter symbols, the details are as follows:

其中,R’2(i,j)、G’2(i,j)、B’2(i,j)分别表示:在第二补偿图像的像素阵列中,第i行第j列的第二补偿像素在红色分量、绿色分量以及蓝色分量中重新确定的第三灰阶值;Among them, R' 2 (i, j), G' 2 (i, j), and B' 2 (i, j) represent respectively: in the pixel array of the second compensation image, the second Compensating the third gray scale value re-determined by the pixel in the red component, the green component and the blue component;

R2、G2、B2分别表示:在第二补偿图像的像素阵列中,对应坐标下的第二补偿像素在红色分量、绿色分量以及蓝色分量中的第三灰阶值。例如,R2(i,j-1)表示在第二补偿图像的像素阵列中,第i行第j-1列的第二补偿像素在红色分量中的第三灰阶值。R 2 , G 2 , and B 2 represent respectively: in the pixel array of the second compensation image, the third gray scale values of the second compensation pixel in the red component, the green component and the blue component under the corresponding coordinates. For example, R 2 (i, j-1) represents the third grayscale value in the red component of the second compensation pixel at row i and column j-1 in the pixel array of the second compensation image.

在本实施例中,若以子插值低通滤波器原型R(i,j)=R(i-1,j)*a1+R(i,j)*a2+R(i+1,j)*a3来表示上述第二转换算法,则表示,在此滤波器中,子像素插值滤波器的系数a1=0,a2=1,a3=0,由此表明,根据直接采样得到的数据,能够直接计算出调整后的各个第三灰阶值,避免经过低通滤波处理的步骤,从而获得具有五个第三灰阶值(W21,R’2,G’2,B’2,W22)的第二补偿像素;由于每个第三灰阶值为对应坐标的第二补偿像素与相邻像素中较大的第三灰阶值,因此,保证了调整后的第二补偿像素能够显示出较好的色彩,最大限度地保留了原始图像中的颜色数据。In this embodiment, if the sub-interpolation low-pass filter prototype R(i,j)=R(i-1,j)*a 1 +R(i,j)*a 2 +R(i+1, j)*a 3 to represent the above-mentioned second conversion algorithm, it means that in this filter, the coefficients a 1 =0, a 2 =1, a 3 =0 of the sub-pixel interpolation filter, thus indicating that, according to the direct The data obtained by sampling can directly calculate the adjusted third gray-scale values, avoiding the step of low-pass filtering, so as to obtain five third gray-scale values (W 21 , R' 2 , G' 2 , B' 2 , W 22 ) of the second compensation pixel; since each third gray-scale value is the larger third gray-scale value of the second compensation pixel of the corresponding coordinates and the adjacent pixel, it is ensured that the adjusted The second compensation pixel can display better color and retain the color data in the original image to the greatest extent.

在S104中,对所述第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值进行融合,并将融合结果输出为目标图像中第二像素的RGB子像素的灰阶值。In S104, fuse the third grayscale values of the second compensation pixel in the three primary color components and the first white component respectively, and output the fusion result as the RGB sub-pixel of the second pixel in the target image grayscale value.

第二补偿像素在五个颜色分量中的第三灰阶值为(W21,R’2,G’2,B’2,W22),而RGBW面板中仅提供四个颜色分量,因此,在本实施例中,将第二补偿像素的五个第三灰阶值转换为目标图像中第二像素的四个灰阶值。The third grayscale value of the second compensation pixel in the five color components is (W 21 , R' 2 , G' 2 , B' 2 , W 22 ), and only four color components are provided in the RGBW panel, therefore, In this embodiment, the five third grayscale values of the second compensation pixel are converted into four grayscale values of the second pixel in the target image.

作为本发明的一个实施例,图6示出了本发明实施例提供的子像素渲染方法S104的具体实现流程图,详述如下:As an embodiment of the present invention, FIG. 6 shows a specific implementation flowchart of the sub-pixel rendering method S104 provided by the embodiment of the present invention, which is described in detail as follows:

在S601中,分别计算所述第二补偿像素在每一个色彩分量中的第三灰阶值与所述第二补偿像素在所述第一白色分量中的第三灰阶值的和,所述色彩分量为所述三基色分量中的一种。In S601, respectively calculate the sum of the third grayscale value of the second compensation pixel in each color component and the third grayscale value of the second compensation pixel in the first white component, the The color component is one of the three primary color components.

在本实施例中,色彩分量表示红色分量、绿色分量或蓝色分量。In this embodiment, the color component means a red component, a green component or a blue component.

对于第二补偿像素,获取该像素在红色分量中的第三灰阶值与其在第一白色分量中的第三灰阶值,将两者相加求和;获取该像素在绿色分量中的第三灰阶值与其在第一白色分量中的第三灰阶值,将两者相加求和;获取该像素在蓝色分量中的第三灰阶值与其在第一白色分量中的第三灰阶值,将两者相加求和。For the second compensation pixel, obtain the third grayscale value of the pixel in the red component and the third grayscale value in the first white component, and add and sum the two; obtain the pixel’s third grayscale value in the green component Add the three grayscale values and their third grayscale value in the first white component to the sum; get the third grayscale value of the pixel in the blue component and its third grayscale value in the first white component The grayscale value is summed by adding the two together.

在S602中,将所述计算结果输出为所述目标图像中第二像素的RGB子像素的灰阶值。In S602, the calculation result is output as the gray scale value of the RGB sub-pixel of the second pixel in the target image.

通过S601,每个第二补偿像素能够输出三个计算结果,表示上述的三个和值。将这三个和值分别赋值于第二像素中RGB子像素的灰阶值。即:Through S601, each second compensation pixel can output three calculation results, representing the above three sum values. These three sums are respectively assigned to the grayscale values of the RGB sub-pixels in the second pixel. which is:

其中,R2(i,j)、G2(i,j)、B2(i,j)、W21(i,j)分别表示:在第二补偿图像的像素阵列中,第i行第j列的第二补偿像素在红色分量、绿色分量、蓝色分量以及第一白色分量中的第三灰阶值;Among them, R 2 (i,j), G 2 (i,j), B 2 (i,j), W 21 (i,j) represent respectively: in the pixel array of the second compensation image, the i-th row The third grayscale value of the second compensation pixel in the j column in the red component, the green component, the blue component and the first white component;

Rout(i,j)、Gout(i,j)、Bout(i,j)分别表示:在目标图像的像素阵列中,第i行第j列的第二像素在红色分量、绿色分量以及蓝色分量中的灰阶值。R out (i, j), G out (i, j), B out (i, j) respectively represent: in the pixel array of the target image, the second pixel in the i-th row and the j-th column is in the red component, the green component and grayscale values in the blue component.

若第二补偿像素在红色分量、绿色分量、蓝色分量以及第一白色分量中的第三灰阶值为经过S402调整后的灰阶值,则上述过程表示为:If the third grayscale value of the second compensation pixel in the red component, the green component, the blue component and the first white component is the grayscale value adjusted in S402, the above process is expressed as:

式中各参数代表的意义与上述实施例中相同,因此不重复赘述。The meanings represented by the parameters in the formula are the same as those in the above-mentioned embodiments, so the details are not repeated.

在S105中,将所述第二补偿像素在所述第二白色分量中的所述第二灰阶值输出为所述第二像素的W子像素的灰阶值,即Wout(i,j)=W22In S105, output the second grayscale value of the second compensation pixel in the second white component as the grayscale value of the W subpixel of the second pixel, that is, W out (i, j ) = W 22 .

根据各个子像素的灰阶值,调整第二像素中RGB子像素以及W子像素的亮度,以在第二图像中渲染各个子像素,使得第二像素能够显示于RGBW面板的第二图像中。According to the grayscale value of each sub-pixel, the brightness of the RGB sub-pixel and the W sub-pixel in the second pixel is adjusted to render each sub-pixel in the second image, so that the second pixel can be displayed in the second image of the RGBW panel.

本发明实施例使得最终输出的目标图像中的第二像素仅具有四个颜色分量,维持了原始图像中的颜色信息数据,并且保留了原始图像数据中的高频信息部分,避免RGBW面板中出现了图像的边沿锐利度骤降的缺陷,因而在图像的各个子像素渲染完成后,能够得到更为清晰的图像显示效果。The embodiment of the present invention makes the second pixel in the final output target image have only four color components, maintains the color information data in the original image, and retains the high-frequency information part in the original image data, avoiding the occurrence of This eliminates the defect of sudden drop in the edge sharpness of the image, so after the rendering of each sub-pixel of the image is completed, a clearer image display effect can be obtained.

图7示出了本发明实施例提供的子像素渲染方法的流程示意图。如图7所示,原始图像中每个第一像素由三个颜色分量组成,经过色域转换后,每个第一像素转换为由四个颜色分量组成的第一补偿像素,且加入了白色分量。此后,根据第一补偿像素中在三基色分量中的第二灰阶值,计算出第二补偿图像中第二补偿像素在三基色分量以及第一白色分量上的第三灰阶值,其在第二白色分量上的第三灰阶值与第一补偿像素在白色分量中的第二灰阶值相同。最后,将第二补偿像素中的五个第三灰阶值融合,输出为最终目标图像中第二像素的各个子像素的灰阶值,从而能够基于原始图像中的RGB格式数据,实现在RGBW面板中渲染出各个子像素的效果。Fig. 7 shows a schematic flowchart of a sub-pixel rendering method provided by an embodiment of the present invention. As shown in Figure 7, each first pixel in the original image is composed of three color components. After color gamut conversion, each first pixel is converted into a first compensation pixel composed of four color components, and white portion. Thereafter, according to the second grayscale value of the first compensation pixel in the three primary color components, the third grayscale value of the second compensation pixel in the three primary color components and the first white component in the second compensation image is calculated, which is The third grayscale value on the second white component is the same as the second grayscale value of the first compensation pixel in the white component. Finally, the five third grayscale values in the second compensation pixel are fused, and output as the grayscale value of each sub-pixel of the second pixel in the final target image, so that based on the RGB format data in the original image, the RGBW The effect of each sub-pixel is rendered in the panel.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

对应于本发明实施例所提供的子像素渲染方法,图8示出了本发明实施例提供的子像素渲染装置的结构框图,该装置可以运行于具有显示屏的终端设备之中,例如智能手机、平板、PDA、照相机,等等。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the sub-pixel rendering method provided by the embodiment of the present invention, FIG. 8 shows a structural block diagram of a sub-pixel rendering device provided by an embodiment of the present invention, which can run in a terminal device with a display screen, such as a smart phone , tablet, PDA, camera, etc. For ease of description, only the parts related to this embodiment are shown.

参照图8,该装置包括:Referring to Figure 8, the device includes:

第一获取单元81,用于获取原始图像中第一像素分别在三基色分量中的第一灰阶值,所述三基色分量包括红色分量、绿色分量以及蓝色分量。The first acquiring unit 81 is configured to acquire the first gray scale values of the first pixel in the original image respectively in three primary color components, and the three primary color components include a red component, a green component and a blue component.

转换单元82,用于对所述第一灰阶值进行色域转换处理,以获取第一补偿像素分别在四色分量中的第二灰阶值,所述四色分量包括所述三基色分量以及白色分量。A conversion unit 82, configured to perform color gamut conversion processing on the first grayscale value, so as to obtain second grayscale values of the first compensation pixel respectively in four color components, the four color components including the three primary color components and the white component.

计算单元83,用于根据所述第二灰阶值,计算第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值,并将所述第一补偿像素在白色分量中的第二灰阶值输出为所述第二补偿像素在第二白色分量中的第三灰阶值。The calculation unit 83 is configured to calculate the third gray scale value of the second compensation pixel in the three primary color components and the first white component respectively according to the second gray scale value, and calculate the third gray scale value of the first compensation pixel in the white color component. The second grayscale value in the component is output as the third grayscale value of the second compensation pixel in the second white component.

融合单元84,用于对所述第二补偿像素分别在所述三基色分量以及第一白色分量中的第三灰阶值进行融合,并将融合结果输出为目标图像中第二像素的RGB子像素的灰阶值。A fusion unit 84, configured to fuse the third grayscale values of the second compensation pixel in the three primary color components and the first white component, and output the fusion result as the RGB sub-value of the second pixel in the target image. The grayscale value of the pixel.

输出单元85,用于将所述第二补偿像素在所述第二白色分量中的所述第三灰阶值输出为所述第二像素的W子像素的灰阶值。An output unit 85, configured to output the third grayscale value of the second compensation pixel in the second white component as the grayscale value of the W subpixel of the second pixel.

可选地,所述转换单元82包括:Optionally, the conversion unit 82 includes:

第一获取子单元,用于获取所述三基色分量中所述第一灰阶值的最大值以及最小值。The first acquiring subunit is configured to acquire the maximum value and the minimum value of the first gray scale value in the three primary color components.

第一转换子单元,用于根据预设的第一转换算法对所述第一灰阶值进行色域转换处理,所述第一转换算法包括:The first conversion subunit is configured to perform color gamut conversion processing on the first grayscale value according to a preset first conversion algorithm, the first conversion algorithm comprising:

其中,所述gain为补偿系数,所述min(R0,G0,B0)和max(R0,G0,B0)分别为所述第一灰阶值的最大值以及最小值,所述R0、G0、B0分别为所述第一像素在红色分量、绿色分量以及蓝色分量中的第一灰阶值,所述R1、G1、B1、W1分别为所述第一补偿像素在红色分量、绿色分量、蓝色分量以及白色分量中的第二灰阶值。Wherein, the gain is a compensation coefficient, and the min(R 0 , G 0 , B 0 ) and max(R 0 , G 0 , B 0 ) are respectively the maximum value and the minimum value of the first gray scale value, The R 0 , G 0 , and B 0 are respectively the first grayscale values of the first pixel in the red component, the green component, and the blue component, and the R 1 , G 1 , B 1 , and W 1 are respectively The second gray scale value of the first compensation pixel in the red component, the green component, the blue component and the white component.

可选地,所述计算单元83包括:Optionally, the computing unit 83 includes:

第二获取子单元,用于获取所述三基色分量中所述第二灰阶值的最小值。The second acquiring subunit is configured to acquire the minimum value of the second grayscale value in the three primary color components.

第二转换子单元,用于根据预设的第二转换算法对所述第二灰阶值进行处理,所述第二转换算法包括:The second conversion subunit is configured to process the second grayscale value according to a preset second conversion algorithm, and the second conversion algorithm includes:

其中,所述min(R1,G1,B1)为所述第二灰阶值的最小值,所述R1、G1、B1、W21分别为所述第二补偿像素在红色分量、绿色分量、蓝色分量以及第一白色分量中的第三灰阶值。Wherein, the min(R 1 , G 1 , B 1 ) is the minimum value of the second grayscale value, and the R 1 , G 1 , B 1 , and W 21 are respectively the red color of the second compensation pixel. component, green component, blue component, and the third grayscale value in the first white component.

可选地,所述装置还包括:Optionally, the device also includes:

第二获取单元,用于获取所述第二补偿像素与相邻像素之间的共用子像素所对应的色彩分量,所述色彩分量为所述三基色分量中的一种。The second acquiring unit is configured to acquire a color component corresponding to a shared sub-pixel between the second compensation pixel and an adjacent pixel, where the color component is one of the three primary color components.

调整单元,用于分别获取所述第二补偿像素及其相邻像素在所述色彩分量中的所述第三灰阶值,并将其中最大的所述第三灰阶值重新确定为所述第二补偿像素在所述色彩分量中的第三灰阶值。an adjusting unit, configured to respectively obtain the third grayscale value of the second compensation pixel and its adjacent pixels in the color component, and re-determine the largest third grayscale value among them as the The third grayscale value of the second compensation pixel in the color component.

可选地,所述融合单元84包括:Optionally, the fusion unit 84 includes:

计算子单元,用于分别计算所述第二补偿像素在每一个色彩分量中的第三灰阶值与所述第二补偿像素在所述第一白色分量中的第三灰阶值的和,所述色彩分量为所述三基色分量中的一种。a calculation subunit, configured to separately calculate the sum of the third grayscale value of the second compensation pixel in each color component and the third grayscale value of the second compensation pixel in the first white component, The color component is one of the three primary color components.

第二输出子单元,用于将所述计算结果输出为所述目标图像中第二像素的RGB子像素的灰阶值。The second output subunit is configured to output the calculation result as the gray scale value of the RGB sub-pixel of the second pixel in the target image.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1. a sub-pixel rendering intent is it is characterised in that include:
Obtain the first pixel the first grey decision-making in three primary colours component respectively in original image, described three primary colours component includes red Colouring component, green component and blue component;
Color gamut conversion process is carried out to described first grey decision-making, to obtain the first compensation pixel respectively in four colouring components second Grey decision-making, described four colouring components include described three primary colours component and white color component;
According to described second grey decision-making, calculate the second compensation pixel respectively in described three primary colours component and the first white color component The 3rd grey decision-making, and the second grey decision-making in white color component is output as described second retrieved image by described first compensation pixel 3rd grey decision-making in the second white color component for the element;
To described second compensation pixel, the 3rd grey decision-making in described three primary colours component and the first white color component is carried out respectively Merge, and fusion results are output as the grey decision-making of the RGB sub-pixel of the second pixel in target image;
Described second grey decision-making in described second white color component for described second compensation pixel is output as described second pixel W sub-pixel grey decision-making.
2. the method for claim 1 is it is characterised in that described carry out color gamut conversion process to described first grey decision-making, Included with obtaining the second grey decision-making respectively in four colouring components for first compensation pixel:
Obtain the maximum of the first grey decision-making and minimum of a value described in described three primary colours component;
Color gamut conversion process, described first transfer algorithm bag are carried out according to default first transfer algorithm to described first grey decision-making Include:
g a i n = 1 + m i n ( R 0 , G 0 , B 0 ) / m a x ( R 0 , G 0 , B 0 ) W 1 = m i n ( R 0 , G 0 , B 0 ) R 1 = g a i n * R 0 - W 1 G 1 = g a i n * G 0 - W 1 B 1 = g a i n * B 0 - W 1
Wherein, described gain is penalty coefficient, described min (R0,G0,B0) and max (R0,G0,B0) it is respectively described first GTG The maximum of value and minimum of a value, described R0、G0、B0It is respectively described first pixel in red component, green component and blueness The first grey decision-making in component, described R1、G1、B1、W1It is respectively described first compensation pixel in red component, green component, indigo plant The second grey decision-making in colouring component and white color component.
3. method as claimed in claim 2 it is characterised in that described according to described second grey decision-making, calculate the second retrieved image The 3rd grey decision-making in described three primary colours component and the first white color component includes element respectively:
Obtain the minimum of a value of the second grey decision-making described in described three primary colours component;
According to default second transfer algorithm, described second grey decision-making is processed, described second transfer algorithm includes:
W 21 = m i n ( R 1 , G 1 , B 1 ) R 2 = R 1 - W 21 G 2 = G 1 - W 21 B 2 = B 1 - W 21
Wherein, described min (R1,G1,B1) be described second grey decision-making minimum of a value, described R1、G1、B1、W21It is respectively described the 3rd grey decision-making in red component, green component, blue component and the first white color component for two compensation pixels.
4. the method as described in any one of claims 1 to 3 is it is characterised in that in the second grey decision-making as described in described basis, calculate , respectively after the 3rd grey decision-making in described three primary colours component and the first white color component, methods described is also for second compensation pixel Including:
Obtain the color component corresponding to shared sub-pixel between described second compensation pixel and neighbor, described color divides Measure as one of described three primary colours component;
Obtain described second compensation pixel and its neighbor described 3rd grey decision-making in described color component respectively, and will Described in maximum of which, the 3rd grey decision-making redefines the 3rd GTG for described second compensation pixel in described color component Value.
5. method as claimed in claim 4 it is characterised in that described to described second compensation pixel respectively in described three primary colours The 3rd grey decision-making in component and the first white color component is merged, and fusion results are output as the second picture in target image The grey decision-making of the RGB sub-pixel of element includes:
Calculate the 3rd grey decision-making in each color component for described second compensation pixel and described second compensation pixel respectively The sum of the 3rd grey decision-making in described first white color component, described color component is one of described three primary colours component;
Described result of calculation is output as the grey decision-making of the RGB sub-pixel of the second pixel in described target image.
6. a sub-pixel rendering device is it is characterised in that include:
First acquisition unit, for obtaining the first pixel the first grey decision-making in three primary colours component respectively, institute in original image State three primary colours component and include red component, green component and blue component;
Converting unit, for carrying out color gamut conversion process to described first grey decision-making, to obtain the first compensation pixel respectively four The second grey decision-making in colouring component, described four colouring components include described three primary colours component and white color component;
Computing unit, for according to described second grey decision-making, calculate the second compensation pixel respectively in described three primary colours component and The 3rd grey decision-making in first white color component, and the second grey decision-making in white color component is output as by described first compensation pixel 3rd grey decision-making in the second white color component for described second compensation pixel;
Integrated unit, for described second compensation pixel respectively in described three primary colours component and the first white color component Three grey decision-making are merged, and fusion results are output as the grey decision-making of the RGB sub-pixel of the second pixel in target image;
Output unit, is output as described 3rd grey decision-making in described second white color component by described second compensation pixel The grey decision-making of the W sub-pixel of described second pixel.
7. device as claimed in claim 6 is it is characterised in that described converting unit includes:
First acquisition subelement, for obtaining the maximum of the first grey decision-making and minimum of a value described in described three primary colours component;
First conversion subunit, for carrying out at color gamut conversion to described first grey decision-making according to default first transfer algorithm Reason, described first transfer algorithm includes:
g a i n = 1 + m i n ( R 0 , G 0 , B 0 ) / m a x ( R 0 , G 0 , B 0 ) W 1 = m i n ( R 0 , G 0 , B 0 ) R 1 = g a i n * R 0 - W 1 G 1 = g a i n * G 0 - W 1 B 1 = g a i n * B 0 - W 1
Wherein, described gain is penalty coefficient, described min (R0,G0,B0) and max (R0,G0,B0) it is respectively described first GTG The maximum of value and minimum of a value, described R0、G0、B0It is respectively described first pixel in red component, green component and blueness The first grey decision-making in component, described R1、G1、B1、W1It is respectively described first compensation pixel in red component, green component, indigo plant The second grey decision-making in colouring component and white color component.
8. device as claimed in claim 7 is it is characterised in that described computing unit includes:
Second acquisition subelement, for obtaining the minimum of a value of the second grey decision-making described in described three primary colours component;
Second conversion subunit, for being processed to described second grey decision-making according to default second transfer algorithm, described Two transfer algorithms include:
W 21 = m i n ( R 1 , G 1 , B 1 ) R 2 = R 1 - W 21 G 2 = G 1 - W 21 B 2 = B 1 - W 21
Wherein, described min (R1,G1,B1) be described second grey decision-making minimum of a value, described R1、G1、B1、W21It is respectively described the 3rd grey decision-making in red component, green component, blue component and the first white color component for two compensation pixels.
9. the device as described in any one of claim 6 to 8 is it is characterised in that described device also includes:
Second acquisition unit, for obtaining the color corresponding to the shared sub-pixel between described second compensation pixel and neighbor Color component, described color component is one of described three primary colours component;
Adjustment unit, for obtaining described second compensation pixel and its neighbor in described color component described respectively Three grey decision-making, and the 3rd grey decision-making described in maximum of which is redefined as described second compensation pixel in described color component In the 3rd grey decision-making.
10. device as claimed in claim 9 is it is characterised in that described integrated unit includes:
Computation subunit, for calculating the 3rd grey decision-making in each color component for described second compensation pixel and institute respectively State the sum of the 3rd grey decision-making in described first white color component for second compensation pixel, described color component divides for described three primary colours One of amount;
Second output subelement, for being output as the RGB sub-pixel of the second pixel in described target image by described result of calculation Grey decision-making.
CN201611153760.1A 2016-12-14 2016-12-14 One sub-pixel rendering method and rendering device Expired - Fee Related CN106409266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611153760.1A CN106409266B (en) 2016-12-14 2016-12-14 One sub-pixel rendering method and rendering device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611153760.1A CN106409266B (en) 2016-12-14 2016-12-14 One sub-pixel rendering method and rendering device

Publications (2)

Publication Number Publication Date
CN106409266A true CN106409266A (en) 2017-02-15
CN106409266B CN106409266B (en) 2019-09-17

Family

ID=58087672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611153760.1A Expired - Fee Related CN106409266B (en) 2016-12-14 2016-12-14 One sub-pixel rendering method and rendering device

Country Status (1)

Country Link
CN (1) CN106409266B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106952626A (en) * 2017-05-02 2017-07-14 深圳市华星光电技术有限公司 Mura compensation deals method, device and the liquid crystal display of RGBW pixel arrangement panels
CN107358904A (en) * 2017-07-25 2017-11-17 上海顺久电子科技有限公司 RGB image is included into the method and device on RGBW panels
WO2018196086A1 (en) * 2017-04-28 2018-11-01 武汉华星光电技术有限公司 Drive method and drive device for display panel
CN108877617A (en) * 2017-05-10 2018-11-23 联咏科技股份有限公司 Image processing apparatus and display data generation method of display panel
CN109754382A (en) * 2017-11-03 2019-05-14 锐准医光股份有限公司 Synthesis method of H&E-like image and optical system using the method
CN110070819A (en) * 2019-04-18 2019-07-30 深圳市华星光电技术有限公司 A kind of gamut conversion method and device
WO2020093619A1 (en) * 2018-11-09 2020-05-14 深圳市华星光电半导体显示技术有限公司 Method and device for detecting high-frequency component in image on display device
CN111710279A (en) * 2020-06-30 2020-09-25 京东方科技集团股份有限公司 Image rendering method and device, display device, storage medium and electronic device
CN113658549A (en) * 2021-08-17 2021-11-16 晟合微电子(肇庆)有限公司 Subpixel rendering method, display device and storage medium
CN114067721A (en) * 2021-12-15 2022-02-18 南京国兆光电科技有限公司 Subpixel rendering method for RGBW-Pentile arrangement
CN116095399A (en) * 2022-11-11 2023-05-09 格兰菲智能科技有限公司 Sub-pixel rendering method and system of RGB-Delta type display panel
CN120032593A (en) * 2025-02-27 2025-05-23 武汉华星光电半导体显示技术有限公司 A pixel rendering method, system and display panel

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090135207A1 (en) * 2007-11-22 2009-05-28 Sheng-Pin Tseng Display device and driving method thereof
CN101452671A (en) * 2007-11-28 2009-06-10 瀚宇彩晶股份有限公司 Display and driving method thereof
US20110292087A1 (en) * 2010-05-27 2011-12-01 Homin Lim Organic light emitting diode display and method for compensating chromaticity coordinates thereof
CN104410849A (en) * 2014-10-21 2015-03-11 深圳市华星光电技术有限公司 Image data processing method and device
CN104867471A (en) * 2015-06-15 2015-08-26 Tcl集团股份有限公司 Method and device for converting RGB into RGBW as well as RGBW display equipment
CN105336288A (en) * 2014-08-15 2016-02-17 Tcl集团股份有限公司 Method and device for converting RGB signals into RGBW signals and television
CN105931605A (en) * 2016-05-12 2016-09-07 深圳市华星光电技术有限公司 Image display method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090135207A1 (en) * 2007-11-22 2009-05-28 Sheng-Pin Tseng Display device and driving method thereof
CN101452671A (en) * 2007-11-28 2009-06-10 瀚宇彩晶股份有限公司 Display and driving method thereof
US20110292087A1 (en) * 2010-05-27 2011-12-01 Homin Lim Organic light emitting diode display and method for compensating chromaticity coordinates thereof
CN105336288A (en) * 2014-08-15 2016-02-17 Tcl集团股份有限公司 Method and device for converting RGB signals into RGBW signals and television
CN104410849A (en) * 2014-10-21 2015-03-11 深圳市华星光电技术有限公司 Image data processing method and device
CN104867471A (en) * 2015-06-15 2015-08-26 Tcl集团股份有限公司 Method and device for converting RGB into RGBW as well as RGBW display equipment
CN105931605A (en) * 2016-05-12 2016-09-07 深圳市华星光电技术有限公司 Image display method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018196086A1 (en) * 2017-04-28 2018-11-01 武汉华星光电技术有限公司 Drive method and drive device for display panel
CN106952626B (en) * 2017-05-02 2019-05-31 深圳市华星光电技术有限公司 The mura compensation deals method, apparatus and liquid crystal display of RGBW pixel arrangement panel
CN106952626A (en) * 2017-05-02 2017-07-14 深圳市华星光电技术有限公司 Mura compensation deals method, device and the liquid crystal display of RGBW pixel arrangement panels
CN108877617A (en) * 2017-05-10 2018-11-23 联咏科技股份有限公司 Image processing apparatus and display data generation method of display panel
CN108877617B (en) * 2017-05-10 2021-08-06 联咏科技股份有限公司 Image processing device and display data generation method of display panel
CN107358904A (en) * 2017-07-25 2017-11-17 上海顺久电子科技有限公司 RGB image is included into the method and device on RGBW panels
CN109754382B (en) * 2017-11-03 2023-11-21 锐准医光股份有限公司 H & E-like image synthesizing method and optical system adopting same
CN109754382A (en) * 2017-11-03 2019-05-14 锐准医光股份有限公司 Synthesis method of H&E-like image and optical system using the method
WO2020093619A1 (en) * 2018-11-09 2020-05-14 深圳市华星光电半导体显示技术有限公司 Method and device for detecting high-frequency component in image on display device
CN110070819A (en) * 2019-04-18 2019-07-30 深圳市华星光电技术有限公司 A kind of gamut conversion method and device
CN111710279A (en) * 2020-06-30 2020-09-25 京东方科技集团股份有限公司 Image rendering method and device, display device, storage medium and electronic device
CN111710279B (en) * 2020-06-30 2023-07-04 京东方科技集团股份有限公司 Image rendering method and device, display device, storage medium and electronic device
CN113658549A (en) * 2021-08-17 2021-11-16 晟合微电子(肇庆)有限公司 Subpixel rendering method, display device and storage medium
CN114067721A (en) * 2021-12-15 2022-02-18 南京国兆光电科技有限公司 Subpixel rendering method for RGBW-Pentile arrangement
CN116095399A (en) * 2022-11-11 2023-05-09 格兰菲智能科技有限公司 Sub-pixel rendering method and system of RGB-Delta type display panel
CN120032593A (en) * 2025-02-27 2025-05-23 武汉华星光电半导体显示技术有限公司 A pixel rendering method, system and display panel

Also Published As

Publication number Publication date
CN106409266B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN106409266B (en) One sub-pixel rendering method and rendering device
US10970600B2 (en) Method and apparatus for training neural network model used for image processing, and storage medium
CN110134353B (en) Color compensation method, compensation device, and display device
US8379976B2 (en) Image processing apparatus and method and a computer-readable recording medium on which an image processing program is stored
JP4705917B2 (en) Method and apparatus for converting from a source color space to a target color space
US20100090929A1 (en) Image processing system, image processing apparatus, aberration correction method, and computer-readable storage medium
CN104461440B (en) Rendering intent, rendering device and display device
CN106910224B (en) Calibration Method of Image Sensor Array in Wide Field of View and High Resolution Microscopic Imaging
KR20120021149A (en) Image correcting apparatus, correction image generating method, correction table generating apparatus, correction table generating method, computer readable recording medium storing a correction table generating program, computer readable recording medium storing a correction image generating program
CN109255760A (en) Distorted image correction method and device
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
KR20150142562A (en) Method, apparatus and storage medium for compensating for defect pixel of display
CN107341763A (en) Image processing method and device, electronic equipment and storage medium
JP5555101B2 (en) Image correction apparatus, corrected image generation method, and corrected image generation program
CN110392243A (en) The method and apparatus of Color Gamut Mapping
CN112200719B (en) Image processing method, electronic device, and readable storage medium
CN107886465B (en) Image processor
CN103686110A (en) Method and device for converting RGB (Red, Green and Blue) into RGBW (Red, Green, Blue and White)
CN104639924A (en) Method for reducing degree of dependence on device pixel to improve color value precision
CN112884661A (en) Image processing apparatus, display apparatus, computer-readable storage medium, and image processing method
CN107358904B (en) Method and device for displaying RGB image on RGBW panel
CN114512094B (en) Screen color adjusting method, device, terminal and computer readable storage medium
CN118101854A (en) Image processing method, device, electronic device and computer readable storage medium
JP4212430B2 (en) Multiple image creation apparatus, multiple image creation method, multiple image creation program, and program recording medium
CN117315159A (en) Image processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190917