CN104867471A - Method and device for converting RGB into RGBW as well as RGBW display equipment - Google Patents
Method and device for converting RGB into RGBW as well as RGBW display equipment Download PDFInfo
- Publication number
- CN104867471A CN104867471A CN201510329228.XA CN201510329228A CN104867471A CN 104867471 A CN104867471 A CN 104867471A CN 201510329228 A CN201510329228 A CN 201510329228A CN 104867471 A CN104867471 A CN 104867471A
- Authority
- CN
- China
- Prior art keywords
- current pixel
- value
- formula
- backlight
- theoretical
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
本发明适用于显示技术领域,提供了一种RGB转RGBW的方法、装置及RGBW显示设备,所述方法包括:根据当前像素的饱和度值计算当前像素的理论背光值,所述理论背光值随所述饱和度值的增大而增大;根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,所述实际背光值随所述饱和度值的平均值的增大而增大;根据当前像素的理论增益以及所述理论背光值与所述实际背光值的比值计算当前像素的实际增益;根据所述实际增益、当前像素的RGB分量值以及所述RGB分量值中的最小值计算当前像素的RGBW分量值。本发明,不会造成显示的饱和色的亮度相比显示的全白色的亮度偏低,出现给人眼感觉饱和色偏暗的效果的问题。
The present invention is applicable to the field of display technology, and provides a method and device for converting RGB to RGBW, and an RGBW display device. The method includes: calculating the theoretical backlight value of the current pixel according to the saturation value of the current pixel, and the theoretical backlight value varies with The increase of the saturation value increases; the actual backlight value of the current pixel is calculated according to the average value of the saturation values of the four adjacent regions of the current pixel, and the actual backlight value increases with the average value of the saturation value increase by increasing; calculate the actual gain of the current pixel according to the theoretical gain of the current pixel and the ratio of the theoretical backlight value to the actual backlight value; calculate the actual gain of the current pixel according to the actual gain, the RGB component value of the current pixel and the RGB component The minimum of values computes the RGBW component value for the current pixel. The present invention does not cause the problem that the brightness of the displayed saturated color is lower than that of the displayed full white, and the saturated color is perceived as darker by the human eye.
Description
技术领域technical field
本发明属于显示技术领域,尤其涉及一种RGB转RGBW的方法、装置及RGBW显示设备。The invention belongs to the field of display technology, and in particular relates to a method and device for converting RGB to RGBW and an RGBW display device.
背景技术Background technique
目前,由于液晶显示屏(Liquid Crystal Display,LCD)的分辨率越来越高,像素越来越精细,造成液晶像素的开口率越来越高,因此RGBW(Red+Green+Blue+White)四色像素设计显示屏的出现,解决了液晶显示屏开口率过低的问题。At present, as the resolution of Liquid Crystal Display (LCD) is getting higher and higher and the pixels are getting finer and finer, the aperture ratio of LCD pixels is getting higher and higher, so RGBW (Red+Green+Blue+White) four The emergence of the color pixel design display screen solves the problem of the low aperture ratio of the liquid crystal display screen.
基于RGBW结构的LCD像素排布中,一个子像素只占一个像素的1/4,在显示白色的时候,RGBW四个子像素全部点亮,而显示饱和色时,比如,显示红色时,只有红色子像素点亮,假设红色子像素亮度为0.3、绿色子像素亮度为0.6、蓝色子像素亮度为0.1、白色子像素亮度为1,则显示红色和显示白色时,红色子像素亮度和白色子像素亮度的比值为0.3:2;而对于RGB结构的LCD像素排布来说,显示红色和显示白色时,红色子像素亮度和白色子像素亮度的比值为0.3:1,因此在一个画面同时存在饱和色和白色时,RGBW结构的LCD像素排布相比RGB结构的LCD像素排布,饱和色子像素亮度和白色子像素亮度的比值亮度比例会失衡,造成显示的饱和色的亮度相比显示的全白色的亮度偏低,给人眼感觉饱和色偏暗的效果。In the LCD pixel arrangement based on the RGBW structure, a sub-pixel only occupies 1/4 of a pixel. When displaying white, all four sub-pixels of RGBW are lit, and when displaying saturated colors, for example, when displaying red, only red The sub-pixels are lit, assuming that the brightness of the red sub-pixel is 0.3, the brightness of the green sub-pixel is 0.6, the brightness of the blue sub-pixel is 0.1, and the brightness of the white sub-pixel is 1, then when displaying red and white, the brightness of the red sub-pixel and the brightness of the white sub-pixel The ratio of pixel brightness is 0.3:2; and for RGB structure LCD pixel arrangement, when displaying red and white, the ratio of red sub-pixel brightness to white sub-pixel brightness is 0.3:1. When the saturated color and white are arranged, the LCD pixel arrangement of the RGBW structure is compared with the LCD pixel arrangement of the RGB structure, and the ratio of the brightness ratio of the saturated color sub-pixel brightness to the white sub-pixel brightness will be out of balance, resulting in the brightness of the displayed saturated color compared to the displayed The brightness of all white is low, giving the impression that the saturated color is darker to the eye.
发明内容Contents of the invention
本发明实施例提供了一种RGB转RGBW的方法、装置及RGBW显示设备,旨在解决现有技术提供的RGB转RGBW方法,会造成显示的饱和色的亮度相比显示的全白色的亮度偏低,出现给人眼感觉饱和色偏暗的效果的问题。Embodiments of the present invention provide a method and device for converting RGB to RGBW, and an RGBW display device, aiming at solving the problem that the brightness of the displayed saturated color is biased compared with the brightness of the displayed full white in the method of converting RGB to RGBW provided by the prior art. If it is low, there will be a problem that the saturated color is darker to the eyes.
一方面,提供一种RGB转RGBW的方法,所述方法包括:On the one hand, a method for converting RGB to RGBW is provided, the method comprising:
根据当前像素的饱和度值计算当前像素的理论背光值,所述理论背光值随所述饱和度值的增大而增大;calculating a theoretical backlight value of the current pixel according to the saturation value of the current pixel, and the theoretical backlight value increases as the saturation value increases;
根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,所述实际背光值随所述饱和度值的平均值的增大而增大;Calculate the actual backlight value of the current pixel according to the average value of the saturation values of the four adjacent regions of the current pixel, and the actual backlight value increases with the increase of the average value of the saturation value;
根据当前像素的理论增益以及所述理论背光值与所述实际背光值的比值计算当前像素的实际增益;calculating the actual gain of the current pixel according to the theoretical gain of the current pixel and the ratio of the theoretical backlight value to the actual backlight value;
根据所述实际增益、当前像素的R、G、B分量值以及所述R、G、B分量值中的最小值计算当前像素的R、G、B、W分量值。Calculate the R, G, B, W component values of the current pixel according to the actual gain, the R, G, B component values of the current pixel, and the minimum value among the R, G, B component values.
进一步地,所述根据当前像素的饱和度值计算当前像素的理论背光值,包括:Further, the calculating the theoretical backlight value of the current pixel according to the saturation value of the current pixel includes:
通过公式1计算当前像素的饱和度值S:Calculate the saturation value S of the current pixel by formula 1:
通过公式2计算当前像素的理论背光值BL_t:Calculate the theoretical backlight value BL_t of the current pixel by formula 2:
其中,min=Min(R,G,B),max=Max(R,G,B)。Wherein, min=Min(R,G,B), max=Max(R,G,B).
进一步地,所述根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,包括:Further, the calculation of the actual backlight value of the current pixel according to the average value of the saturation values of the four adjacent areas of the current pixel includes:
将RGBW显示屏划分成N*M个区域;Divide the RGBW display into N*M areas;
通过公式3计算区域k、k+1、k+2及k+3内的像素的饱和度值的平均值 和k大于等于1,区域k、k+1、k+2及k+3分别是当前像素的4个邻近区域:Calculate the average of the saturation values of the pixels in regions k, k+1, k+2, and k+3 by formula 3 and k is greater than or equal to 1, and the areas k, k+1, k+2, and k+3 are the four adjacent areas of the current pixel:
其中,∑Sp为区域p内的像素的饱和度值之和,pixel_sump为区域p内的像素的数量;Wherein, ∑S p is the sum of the saturation values of the pixels in the region p, and pixel_sum p is the number of pixels in the region p;
通过公式4计算区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3:Calculate the theoretical backlight values BL k , BL k+1 , BL k+2 , BL k+3 of areas k, k+1, k+2 and k+3 by formula 4:
其中,p大于等于1小于等于N*M;Among them, p is greater than or equal to 1 and less than or equal to N*M;
根据当前像素与区域k、k+1、k+2及k+3中心的距离k1、k2、k3和k4以及区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3计算当前像素的实际背光值。According to the distances k1, k2, k3 and k4 between the current pixel and the centers of regions k, k+1, k+2 and k+3 and the theoretical backlight values BL k of regions k, k+1, k+2 and k+3, BL k+1 , BL k+2 , BL k+3 calculate the actual backlight value of the current pixel.
进一步地,根据当前像素与区域k、k+1、k+2及k+3中心的距离k1、k2、k3和k4以及区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3计算当前像素的实际背光值,包括:Further, according to the distances k1, k2, k3 and k4 between the current pixel and the centers of regions k, k+1, k+2 and k+3 and the theoretical backlight values of regions k, k+1, k+2 and k+3 BL k , BL k+1 , BL k+2 , BL k+3 calculate the actual backlight value of the current pixel, including:
设置k1、k2、k3和k4之间满足公式5:Set k1, k2, k3 and k4 to satisfy formula 5:
k1+k2=1,k3+k4=1 公式5k1+k2=1, k3+k4=1 Formula 5
根据公式6计算当前像素的理论背光值BL:Calculate the theoretical backlight value BL of the current pixel according to formula 6:
BL=((1-k3)*BLk=+(1-k4)*BLk+1)*(1-k2)+((1-k3)*BLk+2+(1-k4)*BLk+3)*(1-k1)公式6。BL=((1-k3)*BL k =+(1-k4)*BL k+1 )*(1-k2)+((1-k3)*BL k+2 +(1-k4)*BL k+3 )*(1-k1) Formula 6.
另一方面,提供一种RGB转RGBW的装置,所述装置包括:On the other hand, a device for converting RGB to RGBW is provided, the device comprising:
第一背光值计算单元,用于根据当前像素的饱和度值计算当前像素的理论背光值,所述理论背光值随所述饱和度值的增大而增大;The first backlight value calculation unit is used to calculate the theoretical backlight value of the current pixel according to the saturation value of the current pixel, and the theoretical backlight value increases with the increase of the saturation value;
第二背光值计算单元,用于根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,所述实际背光值随所述饱和度值的平均值的增大而增大;The second backlight value calculation unit is used to calculate the actual backlight value of the current pixel according to the average value of the saturation values of the four adjacent regions of the current pixel, and the actual backlight value increases with the increase of the average value of the saturation value increase;
实际增益计算单元,用于根据当前像素的理论增益以及所述理论背光值与所述实际背光值的比值计算当前像素的实际增益;An actual gain calculation unit, configured to calculate the actual gain of the current pixel according to the theoretical gain of the current pixel and the ratio of the theoretical backlight value to the actual backlight value;
RGBW分量值计算单元,用于根据所述实际增益、当前像素的R、G、B分量值以及所述R、G、B分量值中的最小值计算当前像素的R、G、B、W分量值。The RGBW component value calculation unit is used to calculate the R, G, B, W components of the current pixel according to the actual gain, the R, G, B component values of the current pixel, and the minimum value of the R, G, and B component values value.
进一步地,所述第一背光值计算单元,包括:Further, the first backlight value calculation unit includes:
饱和度值S计算模块,用于通过公式1计算当前像素的饱和度值S:The saturation value S calculation module is used to calculate the saturation value S of the current pixel by formula 1:
理论背光值计算模块,用于通过公式2计算当前像素的理论背光值BL_t:The theoretical backlight value calculation module is used to calculate the theoretical backlight value BL_t of the current pixel by formula 2:
其中,min=Min(R,G,B),max=Max(R,G,B)。Wherein, min=Min(R,G,B), max=Max(R,G,B).
进一步地,所述第二背光值计算单元,包括:Further, the second backlight value calculation unit includes:
区域划分模块,用于将RGBW显示屏划分成N*M个区域;The area division module is used to divide the RGBW display screen into N*M areas;
饱和度平均值计算模块,用于通过公式3计算区域k、k+1、k+2及k+3内的像素的饱和度值的平均值和k大于等于1,区域k、k+1、k+2及k+3分别是当前像素的4个邻近区域:Saturation mean calculation module, for calculating the mean value of the saturation values of the pixels in areas k, k+1, k+2 and k+3 by formula 3 and k is greater than or equal to 1, and the areas k, k+1, k+2, and k+3 are the four adjacent areas of the current pixel:
其中,∑Sp为区域p内的像素的饱和度值之和,pixel_sump为区域p内的像素的数量;Wherein, ∑S p is the sum of the saturation values of the pixels in the region p, and pixel_sum p is the number of pixels in the region p;
近邻区域背光值计算模块,用于通过公式4计算区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3:Neighboring area backlight value calculation module, used to calculate the theoretical backlight values BL k , BL k+1 , BL k+2 , BL k+3 of areas k, k+1, k+2 and k+3 by formula 4:
其中,p大于等于1小于等于N*M;Among them, p is greater than or equal to 1 and less than or equal to N*M;
当前像素实际背光值计算模块,用于根据当前像素与区域k、k+1、k+2及k+3中心的距离k1、k2、k3和k4以及区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3计算当前像素的实际背光值。The actual backlight value calculation module of the current pixel is used to calculate the distances k1, k2, k3 and k4 between the current pixel and the centers of areas k, k+1, k+2 and k+3 and the areas k, k+1, k+2 and The theoretical backlight values BL k , BL k+1 , BL k+2 , BL k+3 of k+3 calculate the actual backlight values of the current pixel.
进一步地,所述当前像素实际背光值计算模块,包括:Further, the current pixel actual backlight value calculation module includes:
距离设置子模块,用于设置k1、k2、k3和k4之间满足公式5:The distance setting sub-module is used to set the distance between k1, k2, k3 and k4 to satisfy formula 5:
k1+k2=1,k3+k4=1 公式5k1+k2=1, k3+k4=1 Formula 5
实际背光值计算子模块,用于根据公式6计算当前像素的实际背光值BL:The actual backlight value calculation sub-module is used to calculate the actual backlight value BL of the current pixel according to formula 6:
BL=((1-k3)*BLk=+(1-k4)*BLk+1)*(1-k2)+((1-k3)*BLk+2+(1-k4)*BLk+3)*(1-k1)公式6。BL=((1-k3)*BL k =+(1-k4)*BL k+1 )*(1-k2)+((1-k3)*BL k+2 +(1-k4)*BL k+3 )*(1-k1) Formula 6.
又一方面,提供一种RGBW显示设备,所述RGBW显示设备包括如上所述的RGB转RGBW的装置。In yet another aspect, an RGBW display device is provided, and the RGBW display device includes the above-mentioned device for converting RGB to RGBW.
在本发明实施例,在将当前像素的RGB分量值转为RGBW分量值时,当前像素的实际背光值随所在区域内像素的饱和度值的平均值的增大而增大。最终,当前像素的饱和度值高时,当前像素的背光亮度值会提高;当前像素的饱和度值低时,当前像素的背光亮度值会减少,相比现有技术,可以根据当前像素的饱和度值的高低自适应的调整当前像素的背光值的高低,解决了现有技术提供的RGB转RGBW方法会造成显示的饱和色的亮度相比显示的全白色的亮度偏低,出现给人眼感觉饱和色偏暗的效果的问题。In the embodiment of the present invention, when the RGB component value of the current pixel is converted to the RGBW component value, the actual backlight value of the current pixel increases with the increase of the average value of the saturation value of the pixels in the area. Finally, when the saturation value of the current pixel is high, the backlight brightness value of the current pixel will increase; when the saturation value of the current pixel is low, the backlight brightness value of the current pixel will decrease. The level of brightness value can be adjusted adaptively to the level of the backlight value of the current pixel, which solves the problem that the RGB to RGBW method provided by the prior art will cause the brightness of the displayed saturated color to be lower than the brightness of the displayed full white, appearing to the human eye. I feel the problem of the darker effect of saturated colors.
附图说明Description of drawings
图1是本发明实施例一提供的RGB转RGBW的方法的实现流程图;Fig. 1 is the implementation flowchart of the method for converting RGB to RGBW provided by Embodiment 1 of the present invention;
图2是本发明实施例一提供的RGB转RGBW的方法中,对RGBW显示屏进行划分,得到的N*M个区域的示意图;2 is a schematic diagram of N*M regions obtained by dividing the RGBW display screen in the RGB-to-RGBW method provided by Embodiment 1 of the present invention;
图3是本发明实施例一提供的RGB转RGBW的方法中,当前像素A与其相邻的4个邻近区域的位置示意图;Fig. 3 is a schematic diagram of the positions of the current pixel A and its adjacent four adjacent areas in the RGB-to-RGBW method provided by Embodiment 1 of the present invention;
图4是本发明实施例二提供的RGB转RGBW的装置的结构框图。FIG. 4 is a structural block diagram of an RGB-to-RGBW conversion device provided by Embodiment 2 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。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.
在本发明实施例中,先根据当前像素的饱和度值计算当前像素的理论背光值,所述理论背光值随所述饱和度值的增大而增大;再根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,所述实际背光值随所述饱和度值的平均值的增大而增大;然后根据当前像素的理论增益以及所述理论背光值与所述实际背光值的比值计算当前像素的实际增益;最后根据所述实际增益、当前像素的R、G、B分量值以及所述R、G、B分量值中的最小值计算当前像素的R、G、B、W分量值。In the embodiment of the present invention, the theoretical backlight value of the current pixel is first calculated according to the saturation value of the current pixel, and the theoretical backlight value increases with the increase of the saturation value; Calculate the actual backlight value of the current pixel by the average value of the saturation value of the current pixel, and the actual backlight value increases with the increase of the average value of the saturation value; then according to the theoretical gain of the current pixel and the theoretical backlight value and Calculate the actual gain of the current pixel by the ratio of the actual backlight value; finally calculate the R of the current pixel according to the actual gain, the R, G, and B component values of the current pixel, and the minimum value among the R, G, and B component values , G, B, W component values.
以下结合具体实施例对本发明的实现进行详细描述:The realization of the present invention is described in detail below in conjunction with specific embodiment:
实施例一Embodiment one
图1示出了本发明实施例一提供的RGB转RGBW的方法的实现流程,详述如下:Figure 1 shows the implementation process of the method for converting RGB to RGBW provided by Embodiment 1 of the present invention, and the details are as follows:
在步骤S101中,根据当前像素的饱和度值计算当前像素的理论背光值,所述理论背光值随所述饱和度值的增大而增大。In step S101, the theoretical backlight value of the current pixel is calculated according to the saturation value of the current pixel, and the theoretical backlight value increases as the saturation value increases.
在本发明实施例中,用min表示当前像素的R、G、B分量值的最小值,即min=Min(R,G,B),用max表示当前像素的R、G、B分量值的最大值,即max=Max(R,G,B),则通过公式1可以计算得到当前像素的饱和度值S:In the embodiment of the present invention, min represents the minimum value of the R, G, and B component values of the current pixel, that is, min=Min(R, G, B), and max represents the minimum value of the R, G, and B component values of the current pixel. The maximum value, that is, max=Max(R,G,B), then the saturation value S of the current pixel can be calculated by formula 1:
当前像素的理论背光值随当前像素的饱和度值的增大而增大,具体的,根据公式2可以计算当前像素的理论背光值BL_t:The theoretical backlight value of the current pixel increases as the saturation value of the current pixel increases. Specifically, the theoretical backlight value BL_t of the current pixel can be calculated according to formula 2:
在步骤S102中,根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,所述实际背光值随所述饱和度值的平均值的增大而增大。In step S102, the actual backlight value of the current pixel is calculated according to the average value of the saturation values of the four adjacent regions of the current pixel, and the actual backlight value increases with the increase of the average value of the saturation value.
在本发明实施例中,通过以下步骤可以计算得到当前像素的实际背光值:In the embodiment of the present invention, the actual backlight value of the current pixel can be calculated through the following steps:
步骤1、将RGBW显示屏划分成N*M个区域;Step 1. Divide the RGBW display screen into N*M areas;
步骤2、通过公式3计算区域k、k+1、k+2及k+3内的像素的饱和度值的平均值和k大于等于1,区域k、k+1、k+2及k+3分别是当前像素的4个邻近区域:Step 2. Calculate the average value of the saturation values of the pixels in areas k, k+1, k+2 and k+3 by formula 3 and k is greater than or equal to 1, and the areas k, k+1, k+2, and k+3 are the four adjacent areas of the current pixel:
其中,∑Sp为区域p内的像素的饱和度值之和,pixel_sump为区域p内的像素的数量;Wherein, ∑S p is the sum of the saturation values of the pixels in the region p, and pixel_sum p is the number of pixels in the region p;
步骤3、通过公式4计算区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3:Step 3. Calculate the theoretical backlight values BL k , BL k+1 , BL k+2 , and BL k+3 of areas k, k+1, k+2, and k+3 by formula 4:
其中,p大于等于1小于等于N*M;Among them, p is greater than or equal to 1 and less than or equal to N*M;
步骤4、根据当前像素与区域k、k+1、k+2及k+3中心的距离k1、k2、k3和k4以及区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3计算当前像素的实际背光值。Step 4. According to the distances k1, k2, k3 and k4 between the current pixel and the centers of regions k, k+1, k+2 and k+3 and the theoretical backlight values of regions k, k+1, k+2 and k+3 BL k , BL k+1 , BL k+2 , BL k+3 calculate the actual backlight value of the current pixel.
具体的,如图2所示,可以将RGBW显示屏划分成N*M个区域。Specifically, as shown in FIG. 2 , the RGBW display screen can be divided into N*M areas.
如图3所示,再分别根据公式3计算当前像素A的4个邻近区域BL1、BL2、BL3和BL4内的像素的饱和度的平均值,计算得到区域BL1、BL2、BL3和BL4内的像素的饱和度的平均值后,根据公式4计算区域BL1、BL2、BL3和BL4的理论背光值BL1、BL2、BL3和BL4,最后根据区域BL1、BL2、BL3和BL4的理论背光值BL1、BL2、BL3和BL4以及当前像素A与区域BL1、BL2、BL3和BL4中心的距离采用双线性插值滤波器法计算得到当前像素A的实际背光值BL。As shown in Figure 3, the average value of the saturation of the pixels in the four adjacent regions BL1, BL2, BL3 and BL4 of the current pixel A is calculated according to formula 3, and the pixels in the regions BL1, BL2, BL3 and BL4 are calculated After the average value of saturation, calculate the theoretical backlight values BL1, BL2, BL3 and BL4 of the regions BL1, BL2, BL3 and BL4 according to formula 4, and finally calculate the theoretical backlight values BL1, BL2, BL3 and BL4 and the distances between the current pixel A and the center of areas BL1, BL2, BL3 and BL4 are calculated by bilinear interpolation filter method to obtain the actual backlight value BL of the current pixel A.
具体的,根据当前像素与区域k、k+1、k+2及k+3中心的距离k1、k2、k3和k4以及区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3计算当前像素的实际背光值时,先设置k1、k2、k3和k4之间满足公式5:Specifically, according to the distances k1, k2, k3, and k4 between the current pixel and the centers of areas k, k+1, k+2, and k+3 and the theoretical backlight values of areas k, k+1, k+2, and k+3 When BL k , BL k+1 , BL k+2 , and BL k+3 calculate the actual backlight value of the current pixel, first set k1, k2, k3 and k4 to satisfy formula 5:
k1+k2=1,k3+k4=1 公式5k1+k2=1, k3+k4=1 Formula 5
再根据公式6计算当前像素的实际背光值BL:Then calculate the actual backlight value BL of the current pixel according to formula 6:
BL=((1-k3)*BLk=+(1-k4)*BLk+1)*(1-k2)+((1-k3)*BLk+2+(1-k4)*BLk+3)*(1-k1)公式6。BL=((1-k3)*BL k =+(1-k4)*BL k+1 )*(1-k2)+((1-k3)*BL k+2 +(1-k4)*BL k+3 )*(1-k1) Formula 6.
在步骤S103中,根据当前像素的理论增益以及所述理论背光值与所述实际背光值的比值计算当前像素的实际增益。In step S103, the actual gain of the current pixel is calculated according to the theoretical gain of the current pixel and the ratio of the theoretical backlight value to the actual backlight value.
在本发明实施例中,根据步骤S101计算得到的当前像素的理论背光值BL_t与步骤S102计算得到的当前像素的实际背光值BL得到计算系数Coeff,Coeff=BL_t/BL,如果Coeff>1,则设置Coeff=1。In the embodiment of the present invention, the calculation coefficient Coeff is obtained according to the theoretical backlight value BL_t of the current pixel calculated in step S101 and the actual backlight value BL of the current pixel calculated in step S102, Coeff=BL_t/BL, if Coeff>1, then Set Coeff=1.
再根据所述计算系数以及当前像素的理论增益Gain,计算得到当前像素的实际增益Gain_f,Gain_f=Coeff*Gain=Coeff*Gain。Then, according to the calculation coefficient and the theoretical gain Gain of the current pixel, the actual gain Gain_f of the current pixel is calculated, Gain_f=Coeff*Gain=Coeff*Gain.
在步骤S104中,根据所述实际增益、当前像素的R、G、B分量值以及所述R、G、B分量值中的最小值计算当前像素的R、G、B、W分量值。In step S104, the R, G, B, W component values of the current pixel are calculated according to the actual gain, the R, G, B component values of the current pixel, and the minimum value among the R, G, B component values.
在本发明实施例中,根据步骤S103计算得到的当前像素的实际增益Gain_f、当前像素的R、G、B分量值以及所述R、G、B分量值中的最小值min计算当前像素的R、G、B、W分量值。In the embodiment of the present invention, the current pixel's R , G, B, W component values.
具体的,当前像素的R、G、B、W分量值如下:Specifically, the R, G, B, and W component values of the current pixel are as follows:
W=min;W=min;
R=Gain_f*R-W;R=Gain_f*R-W;
G=Gain_f*G-W;G=Gain_f*G-W;
B=Gain_f*B-W。B=Gain_f*B-W.
本实施例,在将当前像素的RGB分量值转为RGBW分量值时,当前像素的实际背光值随所在区域内像素的饱和度值的平均值的增大而增大。最终,当前像素的饱和度值高时,当前像素的背光亮度值会提高;当前像素的饱和度值低时,当前像素的背光亮度值会减少,相比现有技术,可以根据当前像素的饱和度值的高低自适应的调整当前像素的背光值的高低,解决了现有技术提供的RGB转RGBW方法,会造成显示的饱和色的亮度相比显示的全白色的亮度偏低,出现给人眼感觉饱和色偏暗的效果的问题。保证了RGBW显示设备的图像鲜艳度。增加了RGBW显示设备的市场竞争力。In this embodiment, when converting the RGB component value of the current pixel into an RGBW component value, the actual backlight value of the current pixel increases with the increase of the average value of saturation values of the pixels in the area. Finally, when the saturation value of the current pixel is high, the backlight brightness value of the current pixel will increase; when the saturation value of the current pixel is low, the backlight brightness value of the current pixel will decrease. The height of the brightness value can be adaptively adjusted to the level of the backlight value of the current pixel, which solves the problem of the RGB to RGBW method provided by the prior art, which will cause the brightness of the displayed saturated color to be lower than the brightness of the displayed full white, appearing to people. The problem that the eyes feel the saturated color is darker. The image vividness of the RGBW display device is guaranteed. Increase the market competitiveness of RGBW display devices.
本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. Media, such as ROM/RAM, magnetic disk or optical disk, etc.
实施例二Embodiment two
图4示出了本发明实施例二提供的RGB转RGBW的装置的具体结构框图,为了便于说明,仅示出了与本发明实施例相关的部分。该RGB转RGBW的装置可以是内置于RGBW显示设备中的软件单元、硬件单元或者软硬件结合的单元,该RGB转RGBW的装置4包括:第一背光值计算单元41、第二背光值计算单元42、实际增益计算单元43和RGBW分量值计算单元44。FIG. 4 shows a specific structural block diagram of an RGB-to-RGBW conversion device provided by Embodiment 2 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The device for converting RGB to RGBW may be a software unit, a hardware unit, or a combination of software and hardware built in an RGBW display device. The device 4 for converting RGB to RGBW includes: a first backlight value calculation unit 41, a second backlight value calculation unit 42 . The actual gain calculation unit 43 and the RGBW component value calculation unit 44 .
其中,第一背光值计算单元41,用于根据当前像素的饱和度值计算当前像素的理论背光值,所述理论背光值随所述饱和度值的增大而增大;Wherein, the first backlight value calculation unit 41 is configured to calculate the theoretical backlight value of the current pixel according to the saturation value of the current pixel, and the theoretical backlight value increases with the increase of the saturation value;
第二背光值计算单元42,用于根据当前像素的4个邻近区域的饱和度值的平均值计算当前像素的实际背光值,所述实际背光值随所述饱和度值的平均值的增大而增大;The second backlight value calculation unit 42 is used to calculate the actual backlight value of the current pixel according to the average value of the saturation values of the four adjacent regions of the current pixel, and the actual backlight value increases with the average value of the saturation value and increased;
实际增益计算单元43,用于根据当前像素的理论增益以及所述理论背光值与所述实际背光值的比值计算当前像素的实际增益;An actual gain calculation unit 43, configured to calculate the actual gain of the current pixel according to the theoretical gain of the current pixel and the ratio of the theoretical backlight value to the actual backlight value;
RGBW分量值计算单元44,用于根据所述实际增益、当前像素的R、G、B分量值以及所述R、G、B分量值中的最小值计算当前像素的R、G、B、W分量值。The RGBW component value calculation unit 44 is used to calculate the R, G, B, W of the current pixel according to the actual gain, the R, G, B component values of the current pixel, and the minimum value of the R, G, and B component values component value.
具体的,所述第一背光值计算单元41,包括:Specifically, the first backlight value calculation unit 41 includes:
饱和度值S计算模块,用于通过公式1计算当前像素的饱和度值S:The saturation value S calculation module is used to calculate the saturation value S of the current pixel by formula 1:
理论背光值计算模块,用于通过公式2计算当前像素的理论背光值BL_t:The theoretical backlight value calculation module is used to calculate the theoretical backlight value BL_t of the current pixel by formula 2:
其中,min=Min(R,G,B),max=Max(R,G,B)。Wherein, min=Min(R,G,B), max=Max(R,G,B).
具体的,所述第二背光值计算单元42,包括:Specifically, the second backlight value calculation unit 42 includes:
区域划分模块,用于将RGBW显示屏划分成N*M个区域;The area division module is used to divide the RGBW display screen into N*M areas;
饱和度平均值计算模块,用于通过公式3计算区域k、k+1、k+2及k+3内的像素的饱和度值的平均值和k大于等于1,区域k、k+1、k+2及k+3分别是当前像素的4个邻近区域:Saturation mean calculation module, for calculating the mean value of the saturation values of the pixels in areas k, k+1, k+2 and k+3 by formula 3 and k is greater than or equal to 1, and the areas k, k+1, k+2, and k+3 are the four adjacent areas of the current pixel:
其中,∑Sp为区域p内的像素的饱和度值之和,pixel_sump为区域p内的像素的数量;Wherein, ∑S p is the sum of the saturation values of the pixels in the region p, and pixel_sum p is the number of pixels in the region p;
近邻区域背光值计算模块,用于通过公式4计算区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3:Neighboring area backlight value calculation module, used to calculate the theoretical backlight values BL k , BL k+1 , BL k+2 , BL k+3 of areas k, k+1, k+2 and k+3 by formula 4:
其中,p大于等于1小于等于N*M;Among them, p is greater than or equal to 1 and less than or equal to N*M;
当前像素实际背光值计算模块,用于根据当前像素与区域k、k+1、k+2及k+3中心的距离k1、k2、k3和k4以及区域k、k+1、k+2及k+3的理论背光值BLk、BLk+1、BLk+2、BLk+3计算当前像素的实际背光值。The actual backlight value calculation module of the current pixel is used to calculate the distances k1, k2, k3 and k4 between the current pixel and the centers of areas k, k+1, k+2 and k+3 and the areas k, k+1, k+2 and The theoretical backlight values BL k , BL k+1 , BL k+2 , BL k+3 of k+3 calculate the actual backlight values of the current pixel.
具体的,所述当前像素实际背光值计算模块,包括:Specifically, the actual backlight value calculation module of the current pixel includes:
距离设置子模块,用于设置k1、k2、k3和k4之间满足公式5:The distance setting sub-module is used to set the distance between k1, k2, k3 and k4 to satisfy formula 5:
k1+k2=1,k3+k4=1 公式5k1+k2=1, k3+k4=1 Formula 5
实际背光值计算子模块,用于根据公式6计算当前像素的实际背光值BL:The actual backlight value calculation sub-module is used to calculate the actual backlight value BL of the current pixel according to formula 6:
BL=((1-k3)*BLk=+(1-k4)*BLk+1)*(1-k2)+((1-k3)*BLk+2+(1-k4)*BLk+3)*(1-k1)公式6。BL=((1-k3)*BL k =+(1-k4)*BL k+1 )*(1-k2)+((1-k3)*BL k+2 +(1-k4)*BL k+3 )*(1-k1) Formula 6.
本发明实施例提供的RGB转RGBW的装置可以应用在前述对应的方法实施例一中,详情参见上述实施例一的描述,在此不再赘述。The device for converting RGB to RGBW provided by the embodiment of the present invention can be applied in the first corresponding method embodiment above. For details, refer to the description of the first embodiment above, and details are not repeated here.
值得注意的是,上述装置实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above-mentioned device embodiments, the included units are only divided according to functional logic, but are not limited to the above-mentioned divisions, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit It is only for the convenience of distinguishing each other, and is not used to limit the protection scope of the present invention.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510329228.XA CN104867471B (en) | 2015-06-15 | 2015-06-15 | A kind of RGB turns the method, apparatus and RGBW display equipment of RGBW |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510329228.XA CN104867471B (en) | 2015-06-15 | 2015-06-15 | A kind of RGB turns the method, apparatus and RGBW display equipment of RGBW |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104867471A true CN104867471A (en) | 2015-08-26 |
CN104867471B CN104867471B (en) | 2018-08-07 |
Family
ID=53913265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510329228.XA Expired - Fee Related CN104867471B (en) | 2015-06-15 | 2015-06-15 | A kind of RGB turns the method, apparatus and RGBW display equipment of RGBW |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104867471B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105263009A (en) * | 2015-09-14 | 2016-01-20 | 深圳市华星光电技术有限公司 | Adaptive conversion method of images |
CN105679235A (en) * | 2016-03-31 | 2016-06-15 | 广东欧珀移动通信有限公司 | Pixel calling method and device |
CN106409266A (en) * | 2016-12-14 | 2017-02-15 | Tcl集团股份有限公司 | Sub-pixel rendering and rendering device |
CN106775550A (en) * | 2016-12-21 | 2017-05-31 | Tcl集团股份有限公司 | A kind of image display method and device |
CN107734325A (en) * | 2017-10-31 | 2018-02-23 | 武汉华星光电技术有限公司 | A kind of image processing method and its equipment |
CN108877698A (en) * | 2017-05-08 | 2018-11-23 | 北京小米移动软件有限公司 | A kind of method and apparatus showing image |
CN109410874A (en) * | 2018-12-17 | 2019-03-01 | 惠科股份有限公司 | Method and device for converting three-color data into four-color data |
CN110264972A (en) * | 2019-06-26 | 2019-09-20 | 京东方科技集团股份有限公司 | Acquisition methods, computer equipment and the computer-readable medium of brightness offset value |
US10497321B2 (en) | 2017-10-31 | 2019-12-03 | Wuhan China Star Optoelectronics Technology Co., Ltd. | Image processing method and device thereof |
CN114203119A (en) * | 2021-12-06 | 2022-03-18 | 深圳Tcl新技术有限公司 | Display control method, display control device, electronic equipment and storage medium |
WO2025016115A1 (en) * | 2023-07-17 | 2025-01-23 | 京东方科技集团股份有限公司 | Image enhancement display method, and display device and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1932616A (en) * | 2006-09-29 | 2007-03-21 | 上海广电(集团)有限公司中央研究院 | Backlight source control device and method based on white light-emitting diode in liquid crystal display screen |
CN101021999A (en) * | 2006-02-15 | 2007-08-22 | 奇美电子股份有限公司 | Zone division type display device and displaying method thereof |
TW201227685A (en) * | 2010-12-17 | 2012-07-01 | Chunghwa Picture Tubes Ltd | Backlight adjustment device of a display and method thereof |
CN103634580A (en) * | 2013-12-19 | 2014-03-12 | 敦泰科技有限公司 | Color gamut adjusting method and device for color image |
CN104376833A (en) * | 2014-11-19 | 2015-02-25 | 深圳市华星光电技术有限公司 | System and method for converting RGB data into RGBW data |
-
2015
- 2015-06-15 CN CN201510329228.XA patent/CN104867471B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021999A (en) * | 2006-02-15 | 2007-08-22 | 奇美电子股份有限公司 | Zone division type display device and displaying method thereof |
CN1932616A (en) * | 2006-09-29 | 2007-03-21 | 上海广电(集团)有限公司中央研究院 | Backlight source control device and method based on white light-emitting diode in liquid crystal display screen |
TW201227685A (en) * | 2010-12-17 | 2012-07-01 | Chunghwa Picture Tubes Ltd | Backlight adjustment device of a display and method thereof |
CN103634580A (en) * | 2013-12-19 | 2014-03-12 | 敦泰科技有限公司 | Color gamut adjusting method and device for color image |
CN104376833A (en) * | 2014-11-19 | 2015-02-25 | 深圳市华星光电技术有限公司 | System and method for converting RGB data into RGBW data |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105263009A (en) * | 2015-09-14 | 2016-01-20 | 深圳市华星光电技术有限公司 | Adaptive conversion method of images |
CN105679235A (en) * | 2016-03-31 | 2016-06-15 | 广东欧珀移动通信有限公司 | Pixel calling method and device |
CN106409266A (en) * | 2016-12-14 | 2017-02-15 | Tcl集团股份有限公司 | Sub-pixel rendering and rendering device |
CN106775550A (en) * | 2016-12-21 | 2017-05-31 | Tcl集团股份有限公司 | A kind of image display method and device |
CN108877698A (en) * | 2017-05-08 | 2018-11-23 | 北京小米移动软件有限公司 | A kind of method and apparatus showing image |
CN107734325A (en) * | 2017-10-31 | 2018-02-23 | 武汉华星光电技术有限公司 | A kind of image processing method and its equipment |
US10497321B2 (en) | 2017-10-31 | 2019-12-03 | Wuhan China Star Optoelectronics Technology Co., Ltd. | Image processing method and device thereof |
CN109410874A (en) * | 2018-12-17 | 2019-03-01 | 惠科股份有限公司 | Method and device for converting three-color data into four-color data |
CN110264972A (en) * | 2019-06-26 | 2019-09-20 | 京东方科技集团股份有限公司 | Acquisition methods, computer equipment and the computer-readable medium of brightness offset value |
CN110264972B (en) * | 2019-06-26 | 2021-08-17 | 京东方科技集团股份有限公司 | Method for obtaining brightness compensation value, computer device and computer readable medium |
CN114203119A (en) * | 2021-12-06 | 2022-03-18 | 深圳Tcl新技术有限公司 | Display control method, display control device, electronic equipment and storage medium |
WO2025016115A1 (en) * | 2023-07-17 | 2025-01-23 | 京东方科技集团股份有限公司 | Image enhancement display method, and display device and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN104867471B (en) | 2018-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104867471B (en) | A kind of RGB turns the method, apparatus and RGBW display equipment of RGBW | |
CN107863081B (en) | Multiple bases conversion method and its converter, display control method, display device | |
US9886882B2 (en) | Grayscale compensation method | |
EP3276598A1 (en) | Pixel arrangement method, pixel rendering method and image display apparatus | |
US20160335944A1 (en) | Liquid crystal panel and driving method thereof | |
CN105513019B (en) | A kind of method and apparatus promoting picture quality | |
US10204568B2 (en) | Driving methods and driving devices of display panels | |
CN104851398B (en) | Image processing method of display | |
US10078250B2 (en) | Driving method for pixel | |
CN104599656B (en) | The method of GTG during the imaging of the sub-pixel of correcting liquid crystal panel | |
US20200154003A1 (en) | Gamma Value Tuning Method and Device of Display Panel | |
CN105336288A (en) | Method and device for converting RGB signals into RGBW signals and television | |
WO2020093461A1 (en) | Pixel signal conversion method and device, and computer device | |
KR20080061772A (en) | Driving device of liquid crystal display and driving method thereof | |
JP2017538148A (en) | Liquid crystal panel and pixel unit setting method | |
US20130120468A1 (en) | Four-Primary Color Display Device and Method for Calculating Relative Brightness of Fourth Primary Color | |
US9659520B2 (en) | Gamma correction method based on a gamma curve obtained from single or multiple primary-color frames | |
US11238817B2 (en) | Method and apparatus for pixel signal conversion | |
CN101866636A (en) | A field color gamut liquid crystal display | |
WO2015029633A1 (en) | Liquid crystal display device, and image display method for liquid crystal display device | |
US10916173B2 (en) | Method and apparatus for converting grayscale, and display device | |
CN104144332A (en) | Image color adjusting method and electronic device thereof | |
CN104851406A (en) | Image display method and device, and triangular-type arrangement display equipment | |
US9959819B2 (en) | RGB to RGBW brightness compensation method and device | |
CN105575339B (en) | Display method and display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20180807 |