CN108717839A - A kind of conversion method of RGB to RGBW, device and storage medium - Google Patents

A kind of conversion method of RGB to RGBW, device and storage medium Download PDF

Info

Publication number
CN108717839A
CN108717839A CN201810345621.1A CN201810345621A CN108717839A CN 108717839 A CN108717839 A CN 108717839A CN 201810345621 A CN201810345621 A CN 201810345621A CN 108717839 A CN108717839 A CN 108717839A
Authority
CN
China
Prior art keywords
value
pixel
rgbw
space
brightness
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
CN201810345621.1A
Other languages
Chinese (zh)
Other versions
CN108717839B (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201810345621.1A priority Critical patent/CN108717839B/en
Publication of CN108717839A publication Critical patent/CN108717839A/en
Application granted granted Critical
Publication of CN108717839B publication Critical patent/CN108717839B/en
Active 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/2003Display of colours

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

An embodiment of the present invention provides a kind of conversion method of RGB to RGBW, device and computer readable storage mediums.The method includes:According to the rgb signal of any pixel obtain the pixel the first color space chromaticity coordinate and the first brightness value;According to the chromaticity coordinate and the first brightness value obtain the pixel the spaces RGBW chromatic value.Operation of the embodiment of the present invention is simple, and conversion is quick, while ensureing the correct display of color.

Description

Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium
Technical Field
The invention relates to the technical field of display, in particular to a method and a device for converting RGB (red, green and blue) to RGBW (red, green and blue), and a computer readable storage medium.
Background
With the development of display technology, the requirements of consumers on the display quality and the contrast of a display screen are higher and higher, in order to improve the brightness and the contrast of the display screen, an RGBW (red, green, blue and white) four-color display Panel (Panel) is provided in the display field, the RGBW display screen increases W (white) on the basis of RGB (red, green and blue) three-primary-color Panel, the display brightness is improved, especially in an outdoor mode, when the natural brightness is high, the RGBW display Panel can improve the screen brightness, and the use by users is facilitated. At present, input signals are all three-primary-color RGB signals, and in order to ensure that a normal picture is displayed on RGBW, a conversion algorithm is needed to convert the three-primary-color RGB signals into four-primary-color RGBW signals.
The inventor of the application finds that the existing conversion algorithms are complex and long in processing time, and the experience of a user is influenced.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention provide a method and an apparatus for converting RGB to RGBW, and a computer readable storage medium, which are simple and fast to operate.
In order to solve the above technical problem, an embodiment of the present invention provides a method for converting RGB into RGBW, including:
obtaining a chromaticity coordinate and a first brightness value of the pixel in a first color space according to an RGB signal of any pixel;
and obtaining a chromaticity value of the pixel in an RGBW space according to the chromaticity coordinate and the first brightness value.
In an alternative embodiment, the obtaining the chromaticity coordinate and the first luminance value of the pixel in the first color space according to the RGB signals of any pixel includes:
carrying out linearization processing and normalization processing on the initial RGB signal of any pixel;
and performing color space conversion calculation on the processed RGB signals to obtain the chromaticity coordinate and the first brightness value of the pixel in the first color space.
In an optional embodiment, the obtaining a chrominance value of the pixel in RGBW space according to the chrominance coordinate and the first luminance value includes:
performing brightness mapping on the first brightness value to obtain a second brightness value of the pixel in an RGBW space;
calculating a white value of the pixel according to the distance between the chromaticity coordinate of the pixel and a screen white point;
and calculating and obtaining a red value, a green value and a blue value of the pixel in an RGBW space according to the second brightness value and the white value.
In an optional embodiment, the performing luminance mapping on the first luminance value to obtain a second luminance value of the pixel in RGBW space includes:
calculating a second brightness value Y of the pixel in the RGBW space by adopting the following formula1
Wherein, Y0Is the first luminance value, Yrgb_maxThe maximum brightness value Y of the pixel in RGB space is obtained after brightness mapping is carried out on the first brightness valuergbw_maxThe maximum brightness value of the pixel in the RGBW space is obtained after the brightness mapping is carried out on the first brightness value.
In an alternative embodiment, the calculating the white value of the pixel according to the distance between the chromaticity coordinate of the pixel and the screen white point includes:
calculating the white value W of the pixel by adopting the following formula: w ═ K × W';
wherein, is the distance between the chromaticity coordinates of the pixel and the screen white point,w' is the distance between the white point and the RGB space chromaticity boundary, and the value range is (0, 1)]。
In an optional embodiment, the obtaining the red value, the green value and the blue value of the pixel in RGBW space according to the second luminance value and the white value calculation includes:
calculating the red value R, the green value G and the blue value B by adopting the following formulas:wherein:for the tristimulus value, T, of the pixel in RGBW space2Is a transformation matrix.
In an optional embodiment, the method further comprises: and carrying out nonlinear processing on the chromaticity value of the RGBW space to obtain an RGBW signal for display.
In order to solve the above technical problem, an embodiment of the present invention further provides an RGB to RGBW conversion apparatus, including a first color space parameter calculating module and an RGBW space chromaticity calculating module, where:
the first color space parameter calculation module is used for obtaining a chromaticity coordinate and a first brightness value of the pixel in a first color space according to the RGB signal of any pixel;
and the RGBW space chromaticity calculation module is used for obtaining the chromaticity value of the pixel in the RGBW space according to the chromaticity coordinate and the first brightness value.
In an optional embodiment, the first color space parameter calculation module comprises an adaptive processing sub-module and a chroma luminance value calculation sub-module, wherein:
the adaptive processing submodule is used for carrying out linearization processing and normalization processing on the initial RGB signal of any pixel;
and the chrominance brightness value calculation submodule is used for performing color space conversion calculation on the processed RGB signals to obtain a chrominance coordinate and a first brightness value of the pixel in a first color space.
In an optional embodiment, the RGBW spatial chromaticity calculating module includes a luminance value calculating sub-module, a white value calculating operator module and a red, green and blue value calculating operator module, wherein:
the luminance value calculation submodule is used for performing luminance mapping on the first luminance value to obtain a second luminance value of the pixel in an RGBW space;
the white value operator module is used for calculating the white value of the pixel according to the distance between the chromaticity coordinate of the pixel and the screen white point;
and the red, green and blue value operator module is used for calculating and obtaining the red value, the green value and the blue value of the pixel in the RGBW space according to the second brightness value and the white value.
In an optional embodiment, the luminance value calculating sub-module performs luminance mapping on the first luminance value to obtain a second luminance value of the pixel in RGBW space, including:
the brightness value calculation submodule calculates and obtains a second brightness value Y of the pixel in the RGBW space according to the following formula1
Wherein, Y0Is the first luminance value, Yrgb_maxThe maximum brightness value Y of the pixel in RGB space is obtained after brightness mapping is carried out on the first brightness valuergbw_maxThe maximum brightness value of the pixel in the RGBW space is obtained after the brightness mapping is carried out on the first brightness value.
In an optional embodiment, the white value operator module calculates the white value of the pixel according to a distance between the chromaticity coordinate of the pixel and a screen white point, and includes:
the white value operator module calculates the white value W of the pixel by adopting the following formula:
w ═ K × W', wherein, is the distance between the chromaticity coordinates of the pixel and the screen white point,w' is the distance between the white point and the RGB space chromaticity boundary, and the value range is (0, 1)]。
In an optional embodiment, the red, green and blue value operator module obtains the red value, the green value and the blue value of the pixel in RGBW space according to the second luminance value and the white value calculation, including:
the red, green and blue value operator module calculates a red value R, a green value G and a blue value B by adopting the following formulas:
wherein:for the tristimulus value, T, of the pixel in RGBW space2Is a transformation matrix.
In an optional embodiment, the apparatus further includes a display processing module, configured to perform a non-linear processing on the chrominance values of the RGBW space, so as to obtain an RGBW signal for display.
To solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the steps of the method of the claims.
The embodiment of the invention provides a method and a device for converting RGB (red, green and blue) to RGBW (red, green and blue), which can be used for converting input three-primary-color signals into four-primary-color signals. Compared with the prior art, the method provided by the embodiment of the invention has the advantages that the operation is simple, the conversion is quick, the hue of the input color signal is ensured to be unchanged and undistorted, the color is correctly displayed, the display image quality of the RGBW color image is improved, and the user experience of the RGBW module is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the embodiments of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention. The shapes and sizes of the various elements in the drawings are not to scale and are merely intended to illustrate the invention.
FIG. 1 is a flow chart of a RGB to RGBW conversion method in accordance with embodiment 1 of the present invention;
FIG. 2 is a flowchart of step 20 in example 1 of the present invention;
FIG. 3 is a diagram of the chromaticity luminance ranges of the RGB space and the RGBW space in the first color space in embodiment 1 of the present invention;
FIG. 4 is a cross-sectional view of the luminance map of FIG. 3;
FIG. 5 is a chromaticity range diagram of the RGBW space in the first color space in embodiment 1 of the present invention;
FIG. 6 is a schematic structural diagram of a conversion device according to embodiment 2 of the present invention;
fig. 7 is a schematic structural diagram of a first color space parameter calculation module in embodiment 2 of the present invention;
fig. 8 is a schematic structural diagram of an RGBW spatial chromaticity calculation module in embodiment 2 of the present invention;
fig. 9 is a schematic structural view of a display device in embodiment 2 of the present invention;
fig. 10 is a block diagram of a calculation of an example of application of the present invention.
Detailed Description
The following detailed description of embodiments of the invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Example 1
Fig. 1 is a flow chart of a RGB-to-RGBW conversion method according to embodiment 1 of the present invention, in which an RGB signal of any pixel point is processed by the conversion method to obtain an RGBW value of the pixel point, and the conversion method includes:
step 10, obtaining a chromaticity coordinate and a first brightness value of a pixel in a first color space according to an RGB signal of any pixel;
the method specifically comprises the following steps:
step 101, carrying out linearization processing and normalization processing on an initial RGB signal of any pixel;
adaptive processing such as linearization and normalization is to convert the initial RGB signal into a signal value that is convenient to process, and the linearization can be implemented by Degamma processing.
And 102, performing color space conversion calculation on the processed RGB signals to obtain a chromaticity coordinate and a first brightness value of the pixel in a first color space.
The first color space includes chrominance and luminance, and in this embodiment is an xyz color space. The color space conversion calculation refers to converting a signal in an RGB space into a parameter in an xyz color space. And performing color space conversion calculation on the RGB signals to obtain x, Y and Y values of the pixel in an xyz color space, wherein x and Y are chromaticity coordinates or chromaticity coordinate values, and Y is a brightness value or brightness coordinate.
Specifically, the following formula is adopted to perform color space conversion calculation on the RGB signals, and the chromaticity coordinate x of the pixel in the first color space is obtained0And y0And a luminance value Y0
Y0=YR*R0+YG*G0+YB*B0
Wherein,three for the pixel in RGB spaceThe stimulus value. R0,G0And B0Is the input RGB signal value.
In particular, the amount of the solvent to be used,T1in order to be the first transformation matrix,
and 20, obtaining a chromaticity value of the pixel in an RGBW space according to the chromaticity coordinate and the first luminance value.
Specifically, as shown in fig. 2, the step 20 includes the following steps:
step 201, performing brightness mapping on the first brightness value to obtain a second brightness value of the pixel in an RGBW space;
performing brightness mapping on the first brightness value according to a color brightness range of an RGB space (or called RGB model) and an RGBW space (or called RGBW model) in a first color space to obtain a brightness value of the pixel in the RGBW space, namely a second brightness value;
the chromaticity and luminance ranges of the RGB space and the RGBW space in the first color space include a chromaticity range (a plane defined by an x axis and a Y axis) and a luminance range (defined by a Y axis), and the chromaticity range is a CIE1931 chromaticity range. And mapping the first brightness value to the brightness range boundary of the RGB and RGBW spaces, and further calculating to obtain the brightness of the pixel in the RGBW space. During mapping, a chromaticity position (position in a chromaticity plane) is determined according to chromaticity coordinates, a brightness position in a space is determined according to a brightness value at the chromaticity position, and the brightness mapping is realized by making a vertical line at the brightness position.
Fig. 3 is a perspective view of chromaticity and luminance ranges of an RGB space and an RGBW space in a first color space, that is, a perspective view of the RGB space and the RGBW space in a CIE1931 color space, in which..................... - "denotes a luminance range of the RGB space in the first color space," _____ "denotes a luminance range of the RGBW space in the first color space, and a vertical line in the drawing is a luminance mapping line and an extension line thereof. Fig. 4 is a cross-sectional view of the luminance map of fig. 3. As shown in fig. 3 and 4, according to the chromaticity coordinates (x)0,y0) And a brightness value (Y)0) Determining the luminance mapping line in a first color space, i.e. first from the chromaticity coordinates (x)0,y0) Determining the position P in the chrominance plane and then based on the luminance value (Y)0) And determining the position A in the space, wherein the connecting line of the point P and the point A is the brightness mapping line. Determining the maximum brightness value Y of the pixel in the RGB space according to the intersection point position C of the extension line of the brightness mapping line and the brightness range boundary of the RGB space in the first color spacergb_maxDetermining the maximum brightness value Y of the pixel in the RGBW space according to the intersection position C1 of the extension line of the brightness mapping line and the brightness range boundary of the RGBW space in the first color spacergbw_maxIn the figure, point a1 is the position of the pixel in RGBW space, and is based on the principle that the luminance difference between point C1 and point a1 is the same as the luminance difference between point C and point a, according to Y0、Yrgb_maxAnd Yrgbw_maxCalculating to obtain a second brightness Y1I.e. the luminance value of the pixel in RGBW space, see the following equation:
step 202, calculating a white value of the pixel according to the distance between the chromaticity coordinate of the pixel and a screen white point;
fig. 5 is a chromaticity range of the RGBW space in the first color space, i.e., a chromaticity plane (CIE1931 color gamut) in xyY. In fig. 5, the whiteness index is determined based on the position P of the pixel in the chromaticity plane of the first color space (i.e., the chromaticity position, which is the same as the P point in fig. 3 and 4), and the screen white point position W _ panel (the screen white point position is determined by the characteristics of the screen), and the farther the chromaticity coordinate of the pixel is from the screen white point, the higher the saturation, the smaller the white value of the pixel. When calculating the whiteness coefficient, making a connection line between the white point and the point P, wherein the intersection point of the connection line and the chromaticity range boundary of the RGBW is E, determining the whiteness coefficient according to the ratio of PW _ panel to line EW _ panel, and specifically calculating the white value W of the pixel in the RGBW space according to the following formula:
w ═ K × W', where K is the whiteness index, representing the P-point i.e. the distance between the chromaticity coordinates of the pixel and the screen white point,representing the distance between the white point of the screen and the chromaticity boundary of the RGBW space, wherein W is the maximum brightness of linearization and the value range is (0, 1)];
The execution sequence of the steps 201 and 202 is not limited.
Step 203, calculating and obtaining an R value (red value), a G value (green value) and a B value (blue value) of the pixel in RGBW space according to the second brightness value and the white value.
Specifically, the following formula can be used for calculation:
wherein:for the tristimulus value, T, of the pixel in RGBW space2Is a second transformation matrix.
In particular, the amount of the solvent to be used,the following equation can be used to obtain:x0and y0Is the chromaticity coordinate, z, of the pixel in a first color space0=1-x0-y0,Y1Luminance values in RGBW space for the pixel;
optionally, the method further comprises: and carrying out nonlinear processing on the chromaticity value of the RGBW space to obtain an RGBW signal for display.
By adopting the method of the embodiment, the brightness value in the RGBW space is calculated by the spatial brightness mapping method, the white value in the RGBW space is calculated based on the inverse relation between the saturation and the brightness on the chromaticity plane, and other chromaticity values in the RGBW space are calculated based on the brightness value and the white value.
Example 2
This example describes an apparatus for carrying out the method of example 1, and the description in example 1 applies equally to this example. Fig. 6 is a schematic structural diagram of a conversion apparatus for implementing the method of embodiment 1, and as shown in fig. 6, the apparatus includes a first color space parameter calculation module 61 and an RGBW space chromaticity calculation module 62, where:
the first color space parameter calculating module 61 is configured to obtain a chromaticity coordinate and a first luminance value of the pixel in a first color space according to an RGB signal of any pixel;
the RGBW space chromaticity calculating module 62 obtains a chromaticity value of the pixel in the RGBW space according to the chromaticity coordinate and the first luminance value.
As shown in fig. 7, in an alternative embodiment, the first color space parameter calculating module 61 includes an adaptive processing sub-module 611 and a chroma luminance value calculating sub-module 612, wherein:
the adaptive processing sub-module 611 is configured to perform linearization processing and normalization processing on the initial RGB signal of any pixel;
the chrominance luminance value calculation sub-module 612 is configured to perform color space conversion calculation on the processed RGB signal to obtain a chrominance coordinate and a first luminance value of the pixel in a first color space.
Optionally, the chrominance luminance value calculating sub-module 612 is configured to perform color space conversion calculation on the RGB signal by using the following formula to obtain a chrominance coordinate x of the pixel in the first color space0And y0And a luminance value Y0
Y0=YR*R0+YG*G0+YB*B0
Wherein,T1in order to be the first transformation matrix,R0、G0and B0Is an RGB signal.
As shown in fig. 8, in an alternative embodiment, the RGBW spatial chromaticity calculating module 62 includes a luminance value calculating sub-module 621, a white value calculating operator module 622, and a red, green and blue value calculating operator module 623, wherein:
the luminance value calculation submodule 621 is configured to perform luminance mapping on the first luminance value to obtain a second luminance value of the pixel in the RGBW space;
the white value operator module 622, calculating the white value of the pixel according to the distance between the chromaticity coordinate of the pixel and the screen white point;
the red, green and blue value operator module 623 is configured to calculate a red value R, a green value G and a blue value B of the pixel in the RGBW space according to the luminance value of the pixel in the RGBW space and the white value of the pixel.
Optionally, the luminance value calculating sub-module 621 calculates the luminance value of the pixel in the RGBW space by:
the luminance value calculation sub-module 621 determines a luminance value calculation model, that is, the luminance value calculation sub-module determines the luminance value calculation model according to the chromaticity coordinate and the luminance value Y in the first color space parameter0Determining brightness mapping line in the first color space, and determining the maximum brightness value Y of the pixel in the RGB space according to the intersection position of the extension line of the brightness mapping line and the boundary of the brightness range of the RGB space in the first color spacergb_maxDetermining the maximum brightness value Y of the pixel in the RGBW space according to the intersection position of the extension line of the brightness mapping line and the brightness range boundary of the RGBW space in the first color spacergbw_maxThe luminance value calculating submodule 621 calculates the luminance value Y of the pixel in the RGBW space according to the following formula1
Optionally, the white value operator module 622 calculates the white value W of the pixel by:
the white value calculation operator module 622 determines a white value calculation model, that is, the white value calculation operator module 622 determines a connection line between the chromaticity coordinates and the screen white point in the chromaticity plane of the first color space according to the chromaticity coordinates of the pixels and the position of the screen white point, and determines an intersection point between the connection line and the chromaticity range boundary of the RGBW. And determining the whiteness coefficient according to the ratio of the distance between the chromaticity coordinate of the pixel and the screen white point to the distance between the screen white point and the chromaticity range boundary. The white value operator module 622 calculates the white value W of the pixel in RGBW space according to the following formula:
W=K*W'
wherein K is a whiteness coefficient, and K is a whiteness coefficient, representing the distance between the point P determined by the chromaticity coordinates of the pixel and the screen white point,representing the distance between the white point of the screen and the chromaticity boundary of the RGBW space, wherein W is the maximum brightness of linearization and the value range is (0, 1)]。
Optionally, the red, green and blue value operator module 623 calculates a red value R, a green value G and a blue value B by using the following formulas:
wherein:for the tristimulus value, T, of the pixel in RGBW space2Is a second transformation matrix. In particular, the amount of the solvent to be used,x0and y0Is the chromaticity coordinate, z, of the pixel in a first color space0=1-x0-y0,Y1Luminance values in RGBW space for the pixel;
in an optional embodiment, the apparatus further comprises a display processing module, configured to perform a non-linear processing (e.g., Gamma processing) on chrominance values of the pixel in the RGBW space to obtain an RGBW signal for display.
The present embodiment further provides a display device, as shown in fig. 9, the display device includes an input module 91, a conversion module 92, a driving module 93, and a display module 94, wherein:
the input module 91 is configured to receive input RGB three signals;
the conversion module 92 is configured to convert RGB into RGBW, and is implemented by the method in embodiment 1, which may be the foregoing conversion device in this embodiment;
the driving module 93 is used for driving the RGBW panel;
the display module 94 is configured to implement RGBW display.
The display device converts input RGB into RGBW, the RGBW Panel driving device displays four primary color signals on the RGBW Panel, and the display device can maintain the hue of the color unchanged and ensure the normal display of the color.
The display device can be applied to LCD, OLED and the like.
Application example
This example is an application example of RGB to RGBW conversion, and the method described in embodiment 1 is adopted in this example, fig. 10 is a block diagram of an RGB-to-RGBW conversion algorithm, which includes an input signal DeGamma & normalization module 1001 (i.e., the adaptive processing sub-module 611 in embodiment 2), an RGB space xyY calculation module 1002 (i.e., the chrominance luminance value calculation sub-module 612 in embodiment 2), an RGBW space maximum luminance calculation module 1003, an RGB space maximum luminance calculation module 1004, an RGBW space luminance calculation module 1005 (the luminance value calculation sub-module 621 in embodiment 2 is composed of the modules 1003, 1004, and 1005), a W calculation module 1006 (i.e., the white value operator module 622 in embodiment 2), an RGBW space R, G, B three-pixel calculation module 1007 (i.e., the red, green, and blue value operator module 623 in embodiment 2), and a Gamma processing module 1008 (i.e., the display processing module in embodiment 2). Wherein:
1. degamma & normalization module 1001
The module aims to convert an input RGB signal from a nonlinear signal into a linear signal and perform normalization processing, and the processing method comprises the following steps:
Rin,Gin,Binrepresenting three signals of input, R0,G0,B0Three signal values representing Degamma and normalized:
2. RGB space xyY calculation module 1002
From input RGB values (i.e. R)0、B0And G0) Calculating x in the xyY color space0,y0And a brightness Y0Value of, wherein x0,y0Representing the horizontal and vertical coordinates in CIE1931 color space, Y0Representing the luminance, the calculation method is as follows:
Y0=YR*R0+YG*G0+YB*B0
wherein,
the color of the Panel can be measured by a CA310 color analyzer after the Panel is produced, which is determined by the characteristics of the module.
3. RGBW space maximum luminance calculation module 1003 and RGB space maximum luminance calculation module 1004
As shown in fig. 3, RGB and RGBW are different in representable color range in CIE1931 color space, and since W is added to RGBW, RGBW can represent color luminance higher than RGB luminance.
When a certain point color (including chromaticity and brightness) is input and mapped to an xyz space, the point a in fig. 3 is obtained, and then a connecting line of an intersection point of the point a and a horizontal plane xy intersects with the upper surface of RGB at a point C and intersects with the upper surface of RGBW at a point C1. The Y value corresponding to the C1 point represents the maximum brightness value Y of the RGBW spacergbw_maxThe Y value corresponding to the C point represents the maximum brightness value Y in RGB spacergb_max
4. Module 1005 for calculating brightness of input pixel in RGBW space
According to fig. 3 and 4, the input pixel is point a in RGB space, point a1 represents the corresponding pixel point of the input pixel in RGBW space, and the luminance value of point a1 is calculated according to the following formula:
5. w calculation Module 1006
The corresponding W value is found from the color information represented by the pixel. As shown in fig. 5, the P point represents a point of the xy plane of the input pixel in the CIE1931 color space, and W is calculated according to the following method:
Wpanelwhite point representing Panel, i.e., screen white point, and E point representing WpanelThe intersection point of the line connecting P and the line connecting two points of RG. In the above formulaRepresenting the distance between the point P and the screen white point,the distance between the point E and the plane white point is represented, W' is the linear maximum brightness, and the value range is (0, 1)]。
6. R, G, B three-pixel calculation module 1007 in RGBW space
R, G, B the pixel values of the three pixels are obtained according to the following formula:
wherein,x0and y0Is the chromaticity coordinate value, z, of the pixel point in the first color space0=1-x0-y0,Y1The brightness value at point a 1; in the formulaWhich can be measured from the characteristics of the screen.
7. Gamma processing module 1008
In order to normally display in Panel, the above-mentioned RGBW four-pixel values need to be processed by corresponding Gamma, the processed data is displayed by Driver action of the driving module, the Gamma processing method is as follows:
in the formula Rout、Gout、BoutAnd WoutThe signals R, G, B and W are output, R, G, B, W is the red, green, blue and white values obtained in the previous step, and γ is 2.2.
The present example can convert the input three primary color signals into four primary color signals by using the above algorithm and apparatus, and ensure that the hue of the input color signals is unchanged and the color is correctly displayed.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical units; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A method for RGB (red green blue) to RGBW (red green blue white) conversion, the method comprising:
obtaining a chromaticity coordinate and a first brightness value of the pixel in a first color space according to an RGB signal of any pixel;
and obtaining a chromaticity value of the pixel in an RGBW space according to the chromaticity coordinate and the first brightness value.
2. The method of claim 1, wherein obtaining the chromaticity coordinates and the first luminance value of the pixel in the first color space according to the RGB signals of any pixel comprises:
carrying out linearization processing and normalization processing on the initial RGB signal of any pixel;
and performing color space conversion calculation on the processed RGB signals to obtain the chromaticity coordinate and the first brightness value of the pixel in the first color space.
3. The method according to claim 1 or 2, wherein the obtaining the chrominance value of the pixel in RGBW space according to the chrominance coordinate and the first luminance value comprises:
performing brightness mapping on the first brightness value to obtain a second brightness value of the pixel in an RGBW space;
calculating a white value of the pixel according to the distance between the chromaticity coordinate of the pixel and a screen white point;
and calculating and obtaining a red value, a green value and a blue value of the pixel in an RGBW space according to the second brightness value and the white value.
4. The method of claim 3, wherein the luminance mapping the first luminance value to obtain a second luminance value of the pixel in RGBW space comprises:
calculating a second brightness value Y of the pixel in the RGBW space by adopting the following formula1
Wherein, Y0Is the first luminance value, Yrgb_maxThe maximum brightness value Y of the pixel in RGB space is obtained after brightness mapping is carried out on the first brightness valuergbw_maxThe maximum brightness value of the pixel in the RGBW space is obtained after the brightness mapping is carried out on the first brightness value.
5. The method of claim 3, wherein said calculating a white value for said pixel based on a distance between a chromaticity coordinate of said pixel and a screen white point comprises:
calculating the white value W of the pixel by adopting the following formula: w ═ K × W';
wherein, is the distance between the chromaticity coordinates of the pixel and the screen white point,w' is the distance between the screen white point and the RGBW space chromaticity boundary, and the value range is (0, 1)]。
6. The method of claim 3, wherein said computing the red, green and blue values of the pixel in RGBW space according to the second luma value and the white value comprises:
calculating the red value R, the green value G and the blue value B by adopting the following formulas:
wherein:for the tristimulus value, T, of the pixel in RGBW space2Is a transformation matrix.
7. The method according to any one of claims 1-6, further comprising: and carrying out nonlinear processing on the chromaticity value of the RGBW space to obtain an RGBW signal for display.
8. An apparatus for converting RGB to RGBW, comprising a first color space parameter calculating module and an RGBW space chromaticity calculating module, wherein:
the first color space parameter calculation module is used for obtaining a chromaticity coordinate and a first brightness value of the pixel in a first color space according to the RGB signal of any pixel;
and the RGBW space chromaticity calculation module is used for obtaining the chromaticity value of the pixel in the RGBW space according to the chromaticity coordinate and the first brightness value.
9. The apparatus of claim 8, wherein the first color space parameter calculation module comprises an adaptive processing sub-module and a chroma luma value calculation sub-module, wherein:
the adaptive processing submodule is used for carrying out linearization processing and normalization processing on the initial RGB signal of any pixel;
and the chrominance brightness value calculation submodule is used for performing color space conversion calculation on the processed RGB signals to obtain a chrominance coordinate and a first brightness value of the pixel in a first color space.
10. The apparatus of claim 8 or 9, wherein the RGBW spatial chromaticity computation module comprises a luminance value computation sub-module, a white value computation sub-module and a red, green and blue value computation sub-module, wherein:
the luminance value calculation submodule is used for performing luminance mapping on the first luminance value to obtain a second luminance value of the pixel in an RGBW space;
the white value operator module is used for calculating the white value of the pixel according to the distance between the chromaticity coordinate of the pixel and the screen white point;
and the red, green and blue value operator module is used for calculating and obtaining the red value, the green value and the blue value of the pixel in the RGBW space according to the second brightness value and the white value.
11. The apparatus of claim 10, wherein the luma value computation sub-module luma maps the first luma value to obtain a second luma value of the pixel in RGBW space, comprising:
the brightness value calculation submodule calculates and obtains a second brightness value Y of the pixel in the RGBW space according to the following formula1
Wherein, Y0Is the first luminance value, Yrgb_maxThe maximum brightness value Y of the pixel in RGB space is obtained after brightness mapping is carried out on the first brightness valuergbw_maxThe maximum brightness value of the pixel in the RGBW space is obtained after the brightness mapping is carried out on the first brightness value.
12. The apparatus of claim 10, wherein the white value operator module calculates the white value of the pixel based on a distance between the chromaticity coordinates of the pixel and a screen white point, comprising:
the white value operator module calculates the white value W of the pixel by adopting the following formula:
W=K*W',
wherein, is the distance between the chromaticity coordinates of the pixel and the screen white point,w' is the distance between the white point and the RGB space chromaticity boundary, and the value range is (0, 1)]。
13. The apparatus of claim 10, wherein the red, green and blue value operator module calculates red, green and blue values of the pixel in RGBW space according to the second luminance value and the white value, and comprises:
the red, green and blue value operator module calculates a red value R, a green value G and a blue value B by adopting the following formulas:
wherein:for the tristimulus value, T, of the pixel in RGBW space2Is a transformation matrix.
14. The apparatus according to any of claims 8-13, wherein the apparatus further comprises a display processing module for performing a non-linear processing on the chrominance values of the RGBW space to obtain an RGBW signal for display.
15. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1-7.
CN201810345621.1A 2018-04-17 2018-04-17 Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium Active CN108717839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810345621.1A CN108717839B (en) 2018-04-17 2018-04-17 Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810345621.1A CN108717839B (en) 2018-04-17 2018-04-17 Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium

Publications (2)

Publication Number Publication Date
CN108717839A true CN108717839A (en) 2018-10-30
CN108717839B CN108717839B (en) 2022-03-08

Family

ID=63899183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810345621.1A Active CN108717839B (en) 2018-04-17 2018-04-17 Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium

Country Status (1)

Country Link
CN (1) CN108717839B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110444176A (en) * 2019-07-26 2019-11-12 厦门天马微电子有限公司 The pixel aberration compensation method and system of display panel, display device
CN112884661A (en) * 2020-12-23 2021-06-01 京东方科技集团股份有限公司 Image processing apparatus, display apparatus, computer-readable storage medium, and image processing method
CN113470591A (en) * 2020-03-31 2021-10-01 京东方科技集团股份有限公司 Monitor toning method and device, electronic equipment and storage medium
WO2022048423A1 (en) * 2020-09-04 2022-03-10 京东方科技集团股份有限公司 Display compensation information acquisition method and apparatus, and display compensation method and apparatus
US12101982B2 (en) 2021-04-27 2024-09-24 Boe Technology Group Co., Ltd. Pixel structure, driving method thereof, display panel, and display apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218988A (en) * 2013-03-25 2013-07-24 京东方科技集团股份有限公司 Method and device for image conversion from RGB signal to RGBW signal
CN104091578A (en) * 2014-06-25 2014-10-08 京东方科技集团股份有限公司 RGB signal to RGBW signal image conversion method and device
KR20150012693A (en) * 2013-07-26 2015-02-04 엘지전자 주식회사 Apparatus and method for converting color
CN104575402A (en) * 2013-10-09 2015-04-29 Nlt科技股份有限公司 Control circuit and display device equipped with the same
CN104981861B (en) * 2013-02-14 2017-04-12 三菱电机株式会社 Signal conversion device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104981861B (en) * 2013-02-14 2017-04-12 三菱电机株式会社 Signal conversion device and method
CN103218988A (en) * 2013-03-25 2013-07-24 京东方科技集团股份有限公司 Method and device for image conversion from RGB signal to RGBW signal
KR20150012693A (en) * 2013-07-26 2015-02-04 엘지전자 주식회사 Apparatus and method for converting color
CN104575402A (en) * 2013-10-09 2015-04-29 Nlt科技股份有限公司 Control circuit and display device equipped with the same
CN104091578A (en) * 2014-06-25 2014-10-08 京东方科技集团股份有限公司 RGB signal to RGBW signal image conversion method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110444176A (en) * 2019-07-26 2019-11-12 厦门天马微电子有限公司 The pixel aberration compensation method and system of display panel, display device
CN110444176B (en) * 2019-07-26 2021-04-30 厦门天马微电子有限公司 Pixel color difference compensation method and system of display panel and display device
CN113470591A (en) * 2020-03-31 2021-10-01 京东方科技集团股份有限公司 Monitor toning method and device, electronic equipment and storage medium
CN113470591B (en) * 2020-03-31 2023-11-14 京东方科技集团股份有限公司 Monitor color matching method and device, electronic equipment and storage medium
US11967297B2 (en) 2020-03-31 2024-04-23 Boe Technology Group Co., Ltd. Color modulation method and apparatus for display, electronic device, and storage medium
WO2022048423A1 (en) * 2020-09-04 2022-03-10 京东方科技集团股份有限公司 Display compensation information acquisition method and apparatus, and display compensation method and apparatus
US11900852B2 (en) 2020-09-04 2024-02-13 Beijing Boe Optoelectronics Technology Co., Ltd. Method and device for obtaining display compensation information, and display compensation method and device
CN112884661A (en) * 2020-12-23 2021-06-01 京东方科技集团股份有限公司 Image processing apparatus, display apparatus, computer-readable storage medium, and image processing method
US12101982B2 (en) 2021-04-27 2024-09-24 Boe Technology Group Co., Ltd. Pixel structure, driving method thereof, display panel, and display apparatus

Also Published As

Publication number Publication date
CN108717839B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN108717839B (en) Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium
CN111968570B (en) Display compensation information acquisition method, display compensation method and device
WO2019114369A1 (en) Primary color conversion method and converter therefor, display control method, and display device
JP4705917B2 (en) Method and apparatus for converting from a source color space to a target color space
US8890884B2 (en) Image processing device converting a color represented by inputted data into a color within a color reproduction range of a predetermined output device and image processing method thereof
US8026953B2 (en) Method for processing color image data
US10347198B2 (en) Image displaying methods and display devices
US20070076226A1 (en) Smart clipper for mobile displays
US8411936B2 (en) Apparatus and method for color reproduction
CN102063888B (en) Method and device for managing colors
US20100165139A1 (en) Image gamut mapping
CN110349097B (en) Color enhancement method for image significance and image processing device
US20180226031A1 (en) Driving methods and driving devices of display panels
US11861791B2 (en) Tetrahedral interpolation calculation method and apparatus, gamut conversion method and apparatus, and medium
CN110277076B (en) Color mapping method and device, display equipment and medium
CN112449168A (en) Color gamut mapping method and system
KR101967416B1 (en) Technique for color profiling of a display device
CN116092423A (en) Color correction method and device for display panel
JP2014072855A (en) Image display apparatus
US9305519B2 (en) Image color adjusting method and electronic device using the same
CN108898987B (en) Gray scale conversion method, gray scale conversion device and display device
WO2015029633A1 (en) Liquid crystal display device, and image display method for liquid crystal display device
CN117746808A (en) Display calibration method, display panel calibration system and display device
US20140314317A1 (en) Method and apparatus for converting gray level of color image
CN101552926B (en) Method and device for processing color picture signals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant