METHOD AND APPARATUS FOR CONVERTING GRAYSCALE, AND DISPLAY DEVICE

Information

  • Patent Application
  • 20200043396
  • Publication Number
    20200043396
  • Date Filed
    April 29, 2019
    5 years ago
  • Date Published
    February 06, 2020
    4 years ago
Abstract
The disclosure relates to a method and apparatus for converting a grayscale, and a display device, where color coordinates of respective pixel elements are determined according to grayscales corresponding to red sub-pixels, green sub-pixels, and blue sub-pixels in the respective pixel elements in image data of a frame to be displayed, and then the distances between the color coordinates of the respective pixel elements, and color coordinates of a preset white pixel on the panel, in a CIE chroma graph are determined; and the maximum grayscales of white sub-pixels in the respective pixel elements are further determined according to the respective determined distances and a preset segmentation function.
Description
CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority of Chinese Patent Application No. 201810857316.0, filed on Jul. 31, 2018, which is hereby incorporated by reference in its entirety.


FIELD

The present disclosure relates to the field of display technologies, and particularly to a method and apparatus for converting a grayscale, and a display device.


BACKGROUND

As the display technologies are advancing, there is a demand of consumers for a display panel with a higher quality. In order to improve the brightness of the display panel, the display panel can include a plurality of pixel elements PX, each of which includes a red sub-pixel R, a green sub-pixel G, a blue sub-pixel B, and a white sub-pixel W, as illustrated in FIG. 1, so that the white color is added to the display panel including the exist three primary colors of red, green, and blue to thereby improve the brightness of the display panel. Particularly in an outdoor mode, when the brightness of natural light is very high, the brightness of the display panel can be improved for a user to watch the display panel conveniently.


SUMMARY

Some embodiments of the disclosure provide a method for converting a grayscale, the method including:


receiving image data of a frame to be displayed, wherein the image data of the frame to be displayed include grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements;


determining color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements;


determining distances between the color coordinates of the respective pixel elements, and color coordinates of a preset white pixel on the panel, in a CIE chroma graph; and


determining a maximum grayscale of the white sub-pixels in the respective pixel elements according to the respective determined distances and a preset segmentation function.


Optionally, in some embodiments of the disclosure, the determining the maximum grayscale of the white sub-pixels in the respective pixel elements according to the respective determined distances and the preset segmentation function includes:


for each pixel element, determining the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:








W
pixel_max

=


f


(
k
)




W
max



,
and







f


(
k
)


=

{






α
0

+


α
1


k

+


α
2



k
2


+


α
3



k
3


+

+


α
n



k
n






(

0

k


k
1


)







β
0

+


β
1


k

+


β
2



k
2


+


β
3



k
3


+

+


β
m



k
m






(


k
1

<
k

1

)




,






wherein k represents the distance between the color coordinates of the pixel element, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph, Wmax represents the maximum of all the normalized grayscales in the image data of the frame to be displayed, αn and βm represents coefficients respectively, n≥0 and n is an integer, m≥0 and m is an integer, and 0≤k1≤1.


Optionally, in some embodiments of the disclosure, k1=0.5, n=3, and m=2.


Optionally, in some embodiments of the disclosure, the determining the color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements includes:


for each pixel element, determining a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element in the equation of:








(



X




Y




Z



)

=


(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)



(



R




G




B



)



,




wherein








(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)





represents coefficients, R represents the grayscale of the red sub-pixel in the pixel element, G represents the grayscale of the green sub-pixel in the pixel element, and B represents the grayscale of the blue sub-pixel in the pixel element; and


determining the color coordinates (x, y) of the pixel element according to the determined simulation value X corresponding to the red sub-pixel, simulation value Y corresponding to the green sub-pixel, and the simulation value Z corresponding to the blue sub-pixel in the equation of:








{





x
=

X

X
+
Y
+
Z








y
=

Y

X
+
Y
+
Z






.






Correspondingly, some embodiments of the disclosure provides an apparatus for converting a grayscale, the apparatus including:


a receiving module configured to receive image data of a frame to be displayed, wherein the image data of the frame to be displayed can include grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements;


a color coordinate determining module configured to determine color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements;


a distance determining module configured to determine distances between the color coordinates of the respective pixel elements, and color coordinates of a preset white pixel on the panel, in a CIE chroma graph; and


a grayscale determining module configured to determine a maximum grayscale of the white sub-pixels in the respective pixel elements according to the respective determined distances and a preset segmentation function.


Optionally, in some embodiments of the disclosure, the grayscale determining module is configured, for each pixel element, to determine the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:








W
pixel_max

=


f


(
k
)




W
max



,
and







f


(
k
)


=

{






α
0

+


α
1


k

+


α
2



k
2


+


α
3



k
3


+

+


α
n



k
n






(

0

k


k
1


)







β
0

+


β
1


k

+


β
2



k
2


+


β
3



k
3


+

+


β
m



k
m






(


k
1

<
k

1

)




,






wherein k represents the distance between the color coordinates of the pixel element, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph, Wmax represents the maximum of all the normalized grayscales in the image data of the frame to be displayed, αn and βm represents coefficients respectively, n≥0 and n is an integer, m≥0 and m is an integer, and, 0≤k1≤1.


Optionally, in the embodiment of the disclosure, k1=0.5, n=3, and m=2.


Optionally, in the embodiment of the disclosure, the color coordinate determining module is configured, for each pixel element, to determine a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element in the equation of:








(



X




Y




Z



)

=


(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)



(



R




G




B



)



,




wherein








(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)





represents coefficients, R represents the grayscale of the red sub-pixel in the pixel element, G represents the grayscale of the green sub-pixel in the pixel element, and B represents the grayscale of the blue sub-pixel in the pixel element; and


to determine the color coordinates (x, y) of the pixel element according to the determined simulation value X corresponding to the red sub-pixel, simulation value Y corresponding to the green sub-pixel, and the simulation value Z corresponding to the blue sub-pixel in the equation of:








{





x
=

X

X
+
Y
+
Z








y
=

Y

X
+
Y
+
Z






.






Correspondingly, some embodiments of the disclosure provide a display device including the apparatus above for converting a grayscale.


Optionally, in some embodiments of the disclosure, the display device further includes a display panel and a display driver, wherein the display panel includes a plurality of pixel elements PX, each of which includes a red sub-pixel R, a green sub-pixel G, a blue sub-pixel B, and a white sub-pixel W; and


the display driver is configured to drive the display panel to display an image, according to the maximum grayscales of the white sub-pixels in the respective pixel elements, and the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements, determined by the apparatus for converting a grayscale.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic structural diagram of a display panel in the related art.



FIG. 2 is a schematic diagram of a CIE chroma graph in the related art.



FIG. 3 is a schematic diagram of a function of k0 in the related art.



FIG. 4 is a flow chart of a method for converting a grayscale according to some embodiments of the disclosure.



FIG. 5 is a schematic diagram of a function of k according to some embodiments of the disclosure.



FIG. 6 is a schematic structural diagram of an apparatus for converting a grayscale according to some embodiments of the disclosure.





DETAILED DESCRIPTION OF THE EMBODIMENTS

At present, a method for converting a grayscale in the display panel as illustrated in FIG. 1 can include the following steps:


the step S01 is to receive image data of a frame to be displayed, where the image data of the frame to be displayed can include grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements;


the step S02 is, for each pixel element, to determine color coordinates of the pixel element according to the grayscales corresponding to the red sub-pixel, the green sub-pixel, and the blue sub-pixel in the pixel element; and


the step S03 is, for each pixel element, to determine the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:








W
pixel_max

=


(

1
-


L

PW
panel



L

EW
panel




)



W
max



;




where Wmax represents the maximum of all the normalized grayscales in the image data of the frame to be displayed, LPWpanel represents the distance between the color coordinates of the pixel element and color coordinates of a preset white pixel on the panel, in a CIE chroma graph, and LEWpanel represents the distance between color coordinates of an intersection of a straight line passing the color coordinates of the pixel element, and the color coordinates of the preset white pixel on the panel, and a straight line passing color coordinates in the primary colors of red and green, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph. Optionally, the CIE chroma graph is the 1931 CIE chroma graph. As illustrated in FIG. 2, P0 represents the corresponding position of the color coordinates of the pixel element in the CIE chroma graph, Wpanel represents the corresponding position of the color coordinates of the preset white pixel on the panel in the CIE chroma graph, R0, G0, and B0 represent the positions of the color coordinates in the three primary colors of red, green, and blue respectively in the CIE chroma graph, and E represents the intersection of the straight line passing the color coordinates of the element, and the color coordinates of the preset white pixel on the panel (i.e., a straight line passing P0 and Wpanel), and the straight line passing the color coordinates in the primary colors of red and green (i.e., a straight line passing R0 and G0), so LPWpanel represents the distance between P0 and Wpanel in the CIE chroma graph, and LEWpanel represents the distance between E and Wpanel in the CIE chroma graph, where the color coordinates of the preset white pixel on the panel are an inherent attribute of the display panel. When the display panel is a liquid crystal display panel, color coordinates of light exiting a color filter layer illuminated by a backlight source can be set as the color coordinates of the preset white pixel on the panel. In a real application, the color coordinates of the preset white pixel on the panel can be regarded as color coordinates of a D65 standard light source at color temperature of 6500K±200K.


With








k
0

=

1
-


L

PW
panel



L

EW
panel





,




there is a linear function of







k
0

=

1
-


L

PW
panel



L

EW
panel








represented as Line_1 in FIG. 3. As can be apparent from FIG. 3, the value of LEWpanel is fixed, and as LEWpanel is smaller, that is, as the distance between P0 and Wpanel in the CIE chroma graph is shorter, k0 is larger, and thus the value of Wpixel_max is larger, so that the brightness in an area with higher brightness in the image is greatly improved; otherwise, k0 is smaller, and thus the value of Wpixel_max is smaller, so that k0 corresponding to an area with lower brightness in the image is smaller, so the brightness in the with lower brightness is hardly improved, thus hindering the image from being rendered in color, and degrading the display effect.


In view of this, embodiments of the disclosure provide a method and apparatus for converting a grayscale, and a display device so as to improve the display effect.


In order to make the objects, technical solutions, and advantages of the disclosure more apparent, particular implementations of the method and apparatus for converting a grayscale, and the display device according to the embodiments of the disclosure will be described below in details with reference to the drawings. Apparently the preferable embodiments to be described are only intended to illustrate and explain the disclosure, but not intended to limit the disclosure thereto. The embodiments of the disclosure, and the features in the embodiments can be combined with each other unless they conflict with each other. Like or similar reference numerals throughout the drawings will refer to like or similar elements, or elements with like or similar functions.


Some embodiments of the disclosure provide a method for converting a grayscale in the display panel as illustrated in FIG. 1 including a plurality of pixel elements PX, each of which includes a red sub-pixel R, a green sub-pixel G, a blue sub-pixel B, and a white sub-pixel W.


As illustrated in FIG. 4, the method for converting a grayscale according to embodiments of the disclosure can include the following steps.


The step S401 is to receive image data of a frame to be displayed, where the image data of the frame to be displayed can include grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements.


Grayscales are generally divided into a plurality of levels in an interval of varying brightness between the lowest brightness and the highest brightness, that is, the grayscales represent the levels of the different brightness between the lowest brightness and the highest brightness. As the number of levels is growing, then an image will be rendered at a finer granularity. At present, an image is generally displayed on a 6-bit or 8-bit display panel, where 28, i.e., 256, brightness levels can be rendered on the 8-bit display panel, that is, there are 256 grayscales including 0 to 255; and 26, i.e., 64, brightness levels can be rendered on the 6-bit display panel, that is, there are 64 grayscales including 0 to 63.


The step S402 is to determine color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements.


Optionally, for each pixel element, a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element can be determined in the equation of:








(



X




Y




Z



)

=


(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)



(



R




G




B



)



,




where








(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)





represents coefficients, determined by the characteristic of the display panel, which can be measured using an instrument (e.g., the CA310-Color Analyzer) after the display panel is fabricated, R represents the grayscale of the red sub-pixel in the pixel element, G represents the grayscale of the green sub-pixel in the pixel element, and B represents the grayscale of the blue sub-pixel in the pixel element, so that the simulation value X corresponding to the red sub-pixel, the simulation value Y corresponding to the green sub-pixel, and the simulation value Z corresponding to the blue sub-pixel in each pixel element can be determined in the equation above.


The color coordinates (x, y) of the pixel element is determined according to the determined simulation value X corresponding to the red sub-pixel, simulation value Y corresponding to the green sub-pixel, and the simulation value Z corresponding to the blue sub-pixel can be determined in the equation of:








{




x
=

X

X
+
Y
+
Z








y
=

Y

X
+
Y
+
Z











The step S403 is to determine the distances between the color coordinates of the respective pixel elements, and color coordinates of a preset white pixel on the panel, in a CIE chroma graph. As illustrated in FIG. 2, P1 represents the corresponding position of color coordinates (x, y) of a pixel element in the CIE chroma graph, so the distance between the chroma coordinates of the pixel element, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph is the distance between P1 and Wpanel.


The step S404 is to determine the maximum grayscales of the white sub-pixels in the respective pixel elements according to the respective determined distances and a preset segmentation function.


For each pixel element, the maximum grayscale of the white sub-pixel in the pixel element can be determined in the equation of:








W
pixel_max

=


f


(
k
)




W
max



,
and







f


(
k
)


=

{






α
0

+


α
1


k

+


α
2



k
2


+


α
3



k
3


+

+


α
n



k
n






(

0

k


k
1


)







β
0

+


β
1


k

+


β
2



k
2


+


β
3



k
3


+

+


β
m



k
m






(


k
1

<
k

1

)




,






where k represents the distance between the color coordinates of the pixel element, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph, Wmax represents the maximum of all the normalized grayscales in the image data of the frame to be displayed, αn and βm represents coefficients respectively, n≥0 and n is an integer, m≥0 and m is an integer, and 0≤k1≤1. Taking a 8-bit panel as an example, all the normalized grayscales in the image data of the frame to be displayed refer to all the grayscales in the image data of the frame, which are divided by 255, and then distributed between 0 and 1. In this way, f(k) can be Line_2 as illustrated in FIG. 5, so that as the distance between P1 and Wpanel is shorter, that is, P1 is closer to Wpanel, the value of Wpixel_max is smaller; otherwise, the value of Wpixel_max is larger, thus improving the rendition and display effect of an image in color.


Furthermore, in a particular implementation, in some embodiments of the disclosure, αn, βm, n, and m can be empirically derived respectively, or can be determined respectively as needed in a real application environment. For example, the really fabricated display panel can be tested so that k1=0.5, n=3, m=2, α1=1, α2=−3.422, α3=8.6209, α4=−7.5536, β1=−0.2451, β2=2.7085, β3=−2.4617 are derived from test results through fitting, that is,







f


(
k
)


=

{





1
-

3.422





k

+

8.6209






k
2


-

7.5536






k
3






(

0

k





0.5

)







-
0.2451

+

2.7085





k

-

2.4617






k
2






(

0.5
<
k

1

)




,






thus providing the best display effect of the display panel.


In the method for converting a grayscale according to some embodiments of the disclosure, the color coordinates of the respective pixel elements are determined according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements in the image data of the frame to be displayed, and then the distances between the color coordinates of the respective pixel elements, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph are determined; and the maximum grayscales of the white sub-pixels in the respective pixel elements is further determined according to the respective determined distances and the preset segmentation function. As compared with the prior art in which the maximum grayscales of the white sub-pixels in the respective pixel elements is determined using a linear function, the problem that the maximum grayscales of the white sub-pixels in an area with higher brightness in the image is greater than the maximum grayscales of the white sub-pixels in an area with lower brightness in the image can be addressed to thereby improve the rendition and display effect of the image in color.


In a particular implementation, in some embodiments of the disclosure, after the maximum grayscales of the white sub-pixels in the respective pixel elements is determined, the method can further include:


displaying an image according to the determined maximum grayscales of the white sub-pixels in the respective pixel elements, and the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements.


Based upon the same inventive idea, some embodiments of the disclosure further provides an apparatus for converting a grayscale as illustrated in FIG. 6, where the apparatus can include:


a receiving module 610 is configured to receive image data of a frame to be displayed, where the image data of the frame to be displayed can include grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements;


a color coordinate determining module 620 is configured to determine color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements;


a distance determining module 630 is configured to determine the distances between the color coordinates of the respective pixel elements, and color coordinates of a preset white pixel on the panel, in a CIE chroma graph; and


a grayscale determining module 640 is configured to determine the maximum grayscales of the white sub-pixels in the respective pixel elements according to the respective determined distances and a preset segmentation function.


In a particular implementation, in some embodiments of the disclosure, the grayscale determining module is configured, for each pixel element, to determine the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:








W
pixel_max

=


f


(
k
)




W
max



,
and







f


(
k
)


=

{






α
0

+


α
1


k

+


α
2



k
2


+


α
3



k
3


+

+


α
n



k
n






(

0

k


k
1


)







β
0

+


β
1


k

+


β
2



k
2


+


β
3



k
3


+

+


β
m



k
m






(


k
1

<
k

1

)




,






where k represents the distance between the color coordinates of the pixel element, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph, Wmax represents the maximum of all the normalized grayscales in the image data of the frame to be displayed, αn and βm represents coefficients respectively, n≥0 and n is an integer, m≥0 and m is an integer, and 0≤k1≤1.


In a particular implementation, in some embodiments of the disclosure, αn, βm, n, and m can be empirically derived respectively, or can be determined respectively as needed in a real application environment. For example, the really fabricated display panel can be tested so that k1=0.5, n=3, m=2, α1=1, α2=−3.422, α3=8.6209, α4=−7.5536, β1=−0.2451, β2=2.7085, β3=−2.4617 are derived from test results through fitting, that is,







f


(
k
)


=

{





1
-

3.422





k

+

8.6209






k
2


-

7.5536






k
3






(

0

k





0.5

)







-
0.2451

+

2.7085





k

-

2.4617






k
2






(

0.5
<
k

1

)




,






thus providing the best display effect of the display panel.


In a particular implementation, in some embodiments of the disclosure, the color coordinate determining module is configured, for each pixel element, to determine a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element in the equation of:








(



X




Y




Z



)

=


(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)

*

(






R




G







B



)



,




where








(




X
R




X
G




X
B






Y
R




Y
G




Y
B






Z
R




Y
G




Z
B




)





represents coefficients, R represents the grayscale of the red sub-pixel in the pixel element, G represents the grayscale of the green sub-pixel in the pixel element, and B represents the grayscale of the blue sub-pixel in the pixel element; and


to determine the color coordinates (x, y) of the pixel element according to the determined simulation value X corresponding to the red sub-pixel, simulation value Y corresponding to the green sub-pixel, and the simulation value Z corresponding to the blue sub-pixel in the equation of:






{





x
=

X

X
+
Y
+
Z








y
=

Y

X
+
Y
+
Z






.





Those skilled in the art shall appreciate that the embodiments of the disclosure can be provided as a method, a system, or a computer program product, so the disclosure can be embodied in the form of an all-hardware embodiment, an all-software embodiment, or an embodiment of a combination of software and hardware. Furthermore the disclosure can be embodied in the form of a computer program product embodied in one or more computer readable storage mediums (including but not limited to a disk memory, an optical memory, etc.) including computer readable program codes.


Based upon the same inventive idea, some embodiments of the disclosure further provide a display device including the apparatus for converting a grayscale according to any one of the embodiments above of the disclosure. The display device addresses the problem under a similar principle to the apparatus above for converting a grayscale, so reference can be made to the apparatus above for converting a grayscale for an implementation of the display device, and a repeated description thereof will be omitted here.


In a particular implementation, the display device according to some embodiments of the disclosure can further include a display panel and a display driver, where as illustrated in FIG. 1, the display panel includes a plurality of pixel elements PX, each of which includes a red sub-pixel R, a green sub-pixel G, a blue sub-pixel B, and a white sub-pixel W. Furthermore the display driver is configured to drive the display panel to display an image, according to the maximum grayscales of the white sub-pixels in the respective pixel elements, and the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements, determined by the apparatus for converting a grayscale. Furthermore those skilled in the art shall appreciate that the display driver can be embodied in the form of an embodiment of a combination of software and hardware.


In a particular implementation, the display device according to some embodiments of the disclosure can be a mobile phone, a tablet computer, a TV set, a monitor, a notebook computer, a digital photo frame, a navigator, or any other product or component with a display function. All the other components indispensable to the display device shall readily occur to those ordinarily skilled in the art, so a repeated description thereof will be omitted here.


In the method and apparatus for converting a grayscale, and the display device according to embodiments of the disclosure, the color coordinates of the respective pixel elements are determined according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements in the image data of the frame to be displayed, and then the distances between the color coordinates of the respective pixel elements, and the color coordinates of the preset white pixel on the panel, in the CIE chroma graph are determined; and the maximum grayscales of the white sub-pixels in the respective pixel elements is further determined according to the respective determined distances and the preset segmentation function. As compared with the prior art in which the maximum grayscales of the white sub-pixels in the respective pixel elements is determined using a linear function, the problem that the maximum grayscales of the white sub-pixels in an area with higher brightness in the image is more than the maximum grayscales of the white sub-pixels in an area with lower brightness in the image can be addressed to thereby improve the rendition and display effect of the image in color.


Evidently those skilled in the art can make various modifications and variations to the disclosure without departing from the spirit and scope of the disclosure. Thus the disclosure is also intended to encompass these modifications and variations thereto so long as the modifications and variations come into the scope of the claims appended to the disclosure and their equivalents.

Claims
  • 1. A method for converting a grayscale, the method comprising: receiving image data of a frame to be displayed, wherein the image data of the frame to be displayed comprise grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements;determining color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements;determining distances between the color coordinates of the respective pixel elements and color coordinates of a preset white pixel on a panel, in a CIE chroma graph; anddetermining a maximum grayscale of the white sub-pixels in the respective pixel elements according to respective determined distances and a preset segmentation function.
  • 2. The method for converting a grayscale according to claim 1, wherein the determining the maximum grayscale of the white sub-pixels in the respective pixel elements according to the respective determined distances and the preset segmentation function comprises: for each pixel element, determining the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:
  • 3. The method for converting a grayscale according to claim 2, wherein k1=0.5, n=3, and m=2.
  • 4. The method for converting a grayscale according to claim 1, wherein the determining the color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements comprises: for each pixel element, determining a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element in the equation of:
  • 5. An apparatus for converting a grayscale, the apparatus comprising: a receiving module configured to receive image data of a frame to be displayed, wherein the image data of the frame to be displayed comprise grayscales corresponding respectively to red sub-pixels, green sub-pixels, and blue sub-pixels in respective pixel elements;a color coordinate determining module configured to determine color coordinates of the respective pixel elements according to the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements;a distance determining module configured to determine distances between the color coordinates of the respective pixel elements and color coordinates of a preset white pixel on the panel, in a CIE chroma graph; anda grayscale determining module configured to determine a maximum grayscale of the white sub-pixels in the respective pixel elements according to the respective determined distances and a preset segmentation function.
  • 6. The apparatus for converting a grayscale according to claim 5, wherein the grayscale determining module is configured, for each pixel element, to determine the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:
  • 7. The apparatus for converting a grayscale according to claim 6, wherein k1=0.5, n=3, and m=2.
  • 8. The apparatus for converting a grayscale according to claim 5, wherein the color coordinate determining module is configured, for each pixel element, to determine a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element in the equation of:
  • 9. A display device, comprising the apparatus for converting a grayscale according to claim 5.
  • 10. The display device according to claim 9, wherein the grayscale determining module is configured, for each pixel element, to determine the maximum grayscale Wpixel_max of the white sub-pixel in the pixel element in the equation of:
  • 11. The display device according to claim 10, wherein k1=0.5, n=3, and m=2.
  • 12. The display device according to claim 9, wherein the color coordinate determining module is configured, for each pixel element, to determine a simulation value X corresponding to the red sub-pixel, a simulation value Y corresponding to the green sub-pixel, and a simulation value Z corresponding to the blue sub-pixel in the pixel element in the equation of:
  • 13. The display device according to claim 9, wherein the display device further comprises a display panel and a display driver, wherein the display panel comprises a plurality of pixel elements PX, each of which comprises a red sub-pixel R, a green sub-pixel G, a blue sub-pixel B, and a white sub-pixel W; and the display driver is configured to drive the display panel to display an image, according to the maximum grayscales of the white sub-pixels in the respective pixel elements, and the grayscales corresponding to the red sub-pixels, the green sub-pixels, and the blue sub-pixels in the respective pixel elements, determined by the apparatus for converting a grayscale.
Priority Claims (1)
Number Date Country Kind
201810857316.0 Jul 2018 CN national