CN110675797B - Color gamut mapping method, component, display device and storage medium - Google Patents

Color gamut mapping method, component, display device and storage medium Download PDF

Info

Publication number
CN110675797B
CN110675797B CN201910915537.3A CN201910915537A CN110675797B CN 110675797 B CN110675797 B CN 110675797B CN 201910915537 A CN201910915537 A CN 201910915537A CN 110675797 B CN110675797 B CN 110675797B
Authority
CN
China
Prior art keywords
point
original
mapping
white
color gamut
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910915537.3A
Other languages
Chinese (zh)
Other versions
CN110675797A (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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201910915537.3A priority Critical patent/CN110675797B/en
Publication of CN110675797A publication Critical patent/CN110675797A/en
Application granted granted Critical
Publication of CN110675797B publication Critical patent/CN110675797B/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)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention discloses a color gamut mapping method, which comprises the following steps: acquiring an original point in an original color gamut; acquiring color coordinates and brightness values of mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram; and acquiring the gray scale value of the mapping point in the target color gamut according to the color coordinates and the brightness value of the mapping point. The invention also discloses a color gamut mapping assembly, a display device and a storage medium. According to the invention, the original point in the original color gamut is mapped to the target color gamut to obtain the mapped point, and the gray scale value of the mapped point in the target color gamut is obtained according to the relation among the original point in the original color gamut, the first white point, the second white point of the mapped color gamut and the chromaticity diagram and the mapped point, so that the beneficial effect of the color in the expression range of the display color gamut is expanded.

Description

Color gamut mapping method, component, display device and storage medium
Technical Field
The present invention relates to the field of display technologies, and in particular, to a method, a component, a display device, and a storage medium for gamut mapping.
Background
The color gamut refers to the number of colors that a certain device can express, the range of colors that it is configured to form, i.e., the range of colors that various screen display devices, printers or printing devices can express, and the size of the color gamut to be expressed by different displays will also vary. Currently, the internationally common color metric is the color gamut triangle range specified by NTSC (National Television Standards Committee ), i.e., the color range represented on the display.
As display technology has evolved, the area of the color gamut represented by the display panel has also gradually increased, but the definition of the color gamut has led to a smaller sheet source color gamut, thus limiting the range of color representation on the display.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The main purpose of the embodiment of the invention is to provide a color gamut mapping method, which aims to solve the technical problems that the specification of the color gamut range in the prior art causes the chip source color gamut to be smaller and the expression range of colors on a display is limited.
To solve the above problems, an embodiment of the present invention provides a method for mapping a color gamut, including the following:
acquiring an original point in an original color gamut;
acquiring color coordinates and brightness values of mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram;
and acquiring the gray scale value of the mapping point in the target color gamut according to the color coordinates and the brightness value of the mapping point.
Optionally, the step of obtaining the color coordinates and the luminance values of the mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram includes:
acquiring a first connecting line formed by the first white point and the original point, and acquiring a first intersection point of the first connecting line and a boundary line of the original color gamut and a second intersection point of the first connecting line and a boundary line of the chromaticity diagram;
acquiring a second connecting line of the second intersection point and the second white point, and acquiring a third intersection point of the second connecting line and a boundary line of the target color gamut;
obtaining brightness values of the mapping points according to the original points, the first white points and the second white points;
and obtaining the color coordinates of the mapping points according to the original points, the first white points, the first intersection points, the second white points and the third intersection points.
Optionally, the step of obtaining the luminance value of the mapping point according to the original point, the first white point and the second white point includes:
and obtaining the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and obtaining the brightness value of the mapping point according to the ratio and the maximum brightness value of the second white point.
Optionally, the step of obtaining the color coordinates of the mapping point according to the original point, the first white point, the first intersection point, the second white point, and the third intersection point further includes:
respectively obtaining the original point, the first white point and the total stimulation value of the first intersection point;
and obtaining a first ratio of the sum of the total stimulus values of the first white point and the first intersection point to the total stimulus value of the original point, and obtaining the color coordinates of the mapping point according to the first ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
Optionally, the step of obtaining the color coordinates of the mapping point according to the original point, the first white point, the first intersection point, the second white point, and the third intersection point further includes:
acquiring a brightness value of the first white point according to the tristimulus value of the first white point, and acquiring the brightness value of the first intersection point according to the tristimulus value of the first intersection point;
and obtaining a second ratio of the sum of the brightness value of the first white point and the brightness value of the first intersection point to the brightness value of the original point, and obtaining the color coordinates of the mapping point according to the second ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
Optionally, the step of obtaining the color coordinates of the mapping point according to the original point, the first white point, the first intersection point, the second white point, and the third intersection point further includes:
acquiring a first distance from the original point to the first white point, and acquiring a second distance from the first white point to the first intersection point;
and acquiring a third ratio corresponding to the first distance and the second distance, and acquiring the color coordinates of the mapping points according to the third ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
Optionally, the color gamut mapping method further includes:
and adjusting the color coordinates of the mapping points according to the brightness values of the mapping points and the second connecting line.
Optionally, the step of obtaining the original point in the original color gamut includes:
acquiring a tristimulus value of the original point according to the gray level value of the original point;
and acquiring the color coordinates and the brightness value of the original point according to the tristimulus value of the original point.
In addition, the embodiment of the invention also provides a color gamut mapping component, which comprises a processor, a memory and a color gamut mapping program stored on the memory and capable of running on the processor, wherein the color gamut mapping program realizes the steps of the color gamut mapping method when being executed by the processor.
The embodiment of the invention also provides a display device, which comprises a processor, a memory and a color gamut mapping program stored on the memory and capable of running on the processor, wherein the color gamut mapping program realizes the steps of the color gamut mapping method when being executed by the processor.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a gamut mapping program which, when executed by a processor, implements the steps of the gamut mapping method as described above.
The color gamut mapping method provided by the embodiment of the invention obtains the original point in the original color gamut; acquiring color coordinates and brightness values of mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram; and acquiring the gray scale value of the mapping point in the target color gamut according to the color coordinates and the brightness value of the mapping point. The mapping point is obtained by mapping the original point in the original color gamut to the target color gamut, and the gray scale value of the mapping point in the target color gamut is obtained according to the relation among the original point in the original color gamut, the first white point, the second white point of the mapping color gamut and the chromaticity diagram and the mapping point, so that the beneficial effect of the color in the expression range of the display color gamut is expanded.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of the color gamut mapping method of the present invention;
FIG. 3 is a diagram of a gamut mapping according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating three color gamut mapping relationships according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a refinement flow chart of step S200 in FIG. 2;
FIG. 6 is another gamut mapping diagram according to an embodiment of the present invention;
FIG. 7 is a flowchart of a second embodiment of the color gamut mapping method of the present invention;
FIG. 8 is a flowchart of a third embodiment of the gamut mapping method of the present invention;
fig. 9 is a flowchart of a fourth embodiment of the gamut mapping method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the detailed description is presented by way of example only and is not intended to limit the invention.
The main solutions of the embodiments of the present invention are: acquiring an original point in an original color gamut; acquiring color coordinates and brightness values of mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram; and acquiring the gray scale value of the mapping point in the target color gamut according to the color coordinates and the brightness value of the mapping point.
The technical problem that the representation range of colors on a display is limited is that the color gamut of a sheet source is smaller due to the provision of the color gamut range in the prior art.
The embodiment of the invention provides a solution, wherein the mapping points are obtained by mapping the original points in the original color gamut to the target color gamut, and the gray scale values of the mapping points in the target color gamut are obtained according to the relation among the original points in the original color gamut, the first white point, the second white point of the mapping color gamut and the chromaticity diagram and the mapping points, so that the beneficial effect of the color in the expression range of the display color gamut is expanded.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention is a display device, which can be display equipment such as a television, a computer and the like, and can also be a display, and the display device is required to comprise a color gamut mapping component.
As shown in fig. 1, the display device may include: a processor 1001, such as a CPU, a communication bus 1002, a memory 1003. Wherein the communication bus 1002 is used to enable connected communication between the components. The memory 1003 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1003 may alternatively be a storage device separate from the aforementioned processor 1001.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a memory 1003, which is a computer storage medium, may include an operating system and a gamut mapping program, and a processor 1001 may be used to call the gamut mapping program stored in the memory 1003 and perform the steps of:
acquiring an original point in an original color gamut;
acquiring color coordinates and brightness values of mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram;
and acquiring the gray scale value of the mapping point in the target color gamut according to the color coordinates and the brightness value of the mapping point.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
acquiring a first connecting line formed by the first white point and the original point, and acquiring a first intersection point of the first connecting line and a boundary line of the original color gamut and a second intersection point of the first connecting line and a boundary line of the chromaticity diagram;
acquiring a second connecting line of the second intersection point and the second white point, and acquiring a third intersection point of the second connecting line and a boundary line of the target color gamut;
obtaining brightness values of the mapping points according to the original points, the first white points and the second white points;
and obtaining the color coordinates of the mapping points according to the original points, the first white points, the first intersection points, the second white points and the third intersection points.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
and obtaining the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and obtaining the brightness value of the mapping point according to the ratio and the maximum brightness value of the second white point.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
respectively obtaining the original point, the first white point and the total stimulation value of the first intersection point;
and obtaining a first ratio of the sum of the total stimulus values of the first white point and the first intersection point to the total stimulus value of the original point, and obtaining the color coordinates of the mapping point according to the first ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
acquiring a brightness value of the first white point according to the tristimulus value of the first white point, and acquiring the brightness value of the first intersection point according to the tristimulus value of the first intersection point;
and obtaining a second ratio of the sum of the brightness value of the first white point and the brightness value of the first intersection point to the brightness value of the original point, and obtaining the color coordinates of the mapping point according to the second ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
acquiring a first distance from the original point to the first white point, and acquiring a second distance from the first white point to the first intersection point;
and acquiring a third ratio corresponding to the first distance and the second distance, and acquiring the color coordinates of the mapping points according to the third ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
and adjusting the color coordinates of the mapping points according to the brightness values of the mapping points and the second connecting line.
Further, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
acquiring a tristimulus value of the original point according to the gray level value of the original point;
and acquiring the color coordinates and the brightness value of the original point according to the tristimulus value of the original point.
Based on the above-mentioned hardware structure of the display device, a first embodiment of the present invention is provided, referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a gamut mapping method of the present invention, where the gamut mapping method includes the following steps:
step S100, an original point in an original color gamut is obtained;
with the development of display technology, the color that can be represented by the display is more and more, the color gamut range is also increasing, but the range of the source color gamut is relatively smaller, so that the source color gamut needs to be mapped in order to fully demonstrate the color expressive force of the display. The display according to the present embodiment includes, but is not limited to, an LCD (Liquid Crystal Display ), an OLED (Organic Light-Emitting Diode), a QLED (Quantum Dot Light Emitting Diodes, quantum dot Light-Emitting Diode), a micro_led (micro Light Emitting Diodes, micro Light-Emitting Diode), and the like.
In this embodiment, the color gamut (the original color gamut and the target color gamut) may have three primary colors (e.g. R, G, B) or may have a color gamut of more primary colors (e.g. R, G, B, Y, C, M), and for ease of understanding, a color gamut formed by R, G, B three primary colors is taken as an example. The original color gamut may be a slice source color gamut, such as bt.709 and bt.2020 color gamuts, a high color gamut including more colors, or a low color gamut including less colors, which is not limited herein. Referring to fig. 3, the triangle in fig. 3 represents the original color gamut, three vertices of the triangle are color coordinate points where R, G, B is located, and a triangle formed by the three vertices is the original color gamut. The large triangle in fig. 3 is a target color gamut, and is a range formed by mapping points in the original color gamut to mapped points in the target color gamut. It should be understood that the large triangle and the small triangle are only examples and are not limiting to the protection scope of the present invention.
The method for obtaining the original point in the original color gamut comprises the following steps:
acquiring a tristimulus value of the original point according to the gray level value of the original point;
and acquiring the color coordinates and the brightness value of the original point according to the tristimulus value of the original point.
When the gray scale value is not normalized, the gray scale value ranges from 0 to 2 k -1 (wherein k is a positive integer); when the gray scale value is normalizedThe range is 0 to 1. In the present embodiment, the gray scale value ranges from 0 to 255.
And calculating the tristimulus value of the original point according to the electro-optical conversion curve, the gray scale value of the original point, the color coordinates of three vertexes of the original color gamut R, G, B, the color coordinates of the white point (white color coordinate point) in the original color gamut and the brightness value. Tristimulus values are denoted (X, Y, Z). Wherein, Y value in the tristimulus values and the brightness value of the color are in positive correlation, so that the brightness value of the original point in the original color gamut can be obtained. Further, the color coordinates of the original point in the original color gamut are (x, y) satisfying the following formula:
and obtaining the color coordinates of the original points in the original color gamut according to the formula.
Step 200, obtaining the color coordinates and brightness values of the mapping points in the target color gamut according to the original point, the first white point of the original color gamut, the second white point of the target color gamut and the chromaticity diagram;
in this embodiment, the chromaticity diagram may be CIE1931 or CIE1976, and the tongue diagram in fig. 3 is a chromaticity diagram. The chromaticity diagram is a color trace of monochromatic light in all visible light, each point of which represents the color of a certain monochromatic light.
The white point is a white light point formed by mixing red, green and blue with the same stimulus light energy, and the first white point in the original color gamut can be D65, namely the white point of the artificial standard light source. The second white point in the target color gamut is obtained by measuring the display according to the color gamut measuring device, and the second white point can be adjusted according to the needs due to different requirements of different users on the display screen, such as color temperature.
It should be noted that the first white point in the original color gamut and the second white point in the target color gamut may be at the same point or may be at different points, so, referring to fig. 4, mapping from a color gamut with a smaller range to a color gamut with a larger range or mapping from a color gamut with a larger range to a color gamut with a smaller range may be implemented, so that the application range of the mapping method is expanded, and the expressive power of the display picture is improved.
The positions of the mapping points in the target color gamut can be obtained according to the original point, the first white point in the original color gamut, the second white point in the target color gamut and the chromaticity diagram, so that the color coordinates and the brightness values of the mapping points are calculated.
Referring to fig. 5, fig. 5 is a detailed flowchart of step S200, where color coordinates and luminance values of mapping points in the target color gamut are obtained according to the original point, the first white point, the second white point and the chromaticity diagram, and the method includes the following steps:
step S210, a first connecting line formed by the first white point and the original point is obtained, and a first intersection point of the first connecting line and a boundary line of the target color gamut and a second intersection point of the first connecting line and the boundary line of the chromaticity diagram are obtained;
step S220, a second connecting line of the second intersection point and the second white point is obtained, and a third intersection point of the second connecting line and the boundary line of the target color gamut is obtained;
step S230, obtaining the brightness value of the mapping point according to the original point, the first white point and the second white point;
and step S240, obtaining the color coordinates of the mapping points according to the original point, the first white point, the first intersection point, the second white point and the third intersection point.
It should be noted that the brightness value and the color coordinates of the mapping points are acquired without any distinction, and thus the protection scope of the present invention is not limited.
When the first white point and the second white point are not at the same position, referring to FIG. 3, the first white point O 1 Extending to the original point A to form a first connecting line O 1 A. The first connecting line intersects with the boundary line of the original color gamut at a first intersection point B and intersects with the boundary line of the chromaticity diagram at a second intersection point C. Connecting the second white point O in the target color gamut 2 With a third point of intersection C with the first,obtaining a second connecting line O 2 And C, intersecting the boundary line of the second connecting line and the target color gamut at a third intersection point D. And according to the position relation between the original point, the first white point and the second white point and the first intersection point and the third intersection point, tristimulus values of the first intersection point and the third intersection point can be obtained. Wherein, the tristimulus values are expressed by (X, Y, Z), and the total stimulus value can be obtained by the tristimulus values, namely, the sum of the tristimulus values is the total stimulus value. The total stimulation value was (X+Y+Z).
It should be noted that, the gamut mapping method used in this embodiment is also applicable to mapping of the white points of the original gamut and the target gamut at the same point. Referring to fig. 6,O, the point is not only the white point of the original color gamut, but also the white point of the target color gamut, the original point is a, the white point O and the original point a are connected to form a mapping straight line, wherein the mapping straight line is a straight line with variable saturation, and can be increased or decreased. The boundary line of the mapping straight line and the original color gamut is intersected at a point B and the boundary line of the target color gamut is intersected at a point D, and the relation of the mapping point at the white point O and the intersection point D is obtained according to the relation of the original point A between the white point O and the intersection point B, so that the color coordinates and the brightness value of the mapping point are obtained.
The obtaining of the brightness value of the mapping point comprises the following steps:
and obtaining the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and obtaining the brightness value of the mapping point according to the ratio and the maximum brightness value of the second white point.
According to the principle that the relative brightness before and after mapping is unchanged, the ratio of the brightness value of the original point to the maximum brightness value of the first white point is equal to the ratio of the brightness value of the mapping point to the maximum brightness value of the second white point, the brightness value of the mapping point is calculated, and the following formula is satisfied:
wherein L is 1 A luminance value that is an original point; l (L) 2 The brightness value of the mapping point; l (L) w1 Maximum luminance value for the first white point; l (L) w2 Is the maximum luminance value of the second white point.
According to the relation between the original point and the first white point and the relation between the original point and the first intersection point, such as the ratio of the total stimulus value of the original point to the sum of the first white point and the total stimulus value of the first intersection point, the ratio of the luminance value of the original point to the sum of the luminance values of the first white point and the first intersection point, the ratio of the distance from the first white point to the original point to the distance from the first white point to the first intersection point, and the like, the positions of the mapping points in the line segments taking the second white point and the third intersection point as endpoints can be obtained, and therefore the color coordinates of the mapping points are obtained.
And step S30, acquiring the gray scale value of the mapping point in the target color domain according to the color coordinates and the brightness value of the mapping point.
According to the color coordinates and brightness values of the mapping points, the tristimulus values of the mapping points can be calculated through an electro-optical conversion curve, and then the tristimulus values are converted into corresponding gray-scale values, so that the gray-scale values of the mapping points in the target color domains are obtained.
Since the display may not be able to display according to the color coordinates and the luminance values of the mapping points in the display process by the mapping method described above, in other words, the display is displaying at the color coordinates of the mapping points, the luminance values are lower than the preset luminance values, and in order to avoid color distortion, the correction process needs to correct the color coordinates of the mapping points, which includes the following steps:
and adjusting the color coordinates of the mapping points according to the brightness values of the mapping points and the second connecting line.
On the display, the color coordinates of the mapping points in the display color gamut (target color gamut) do not reach the required brightness value, but the brightness value is distorted due to the change of the brightness value, so that the brightness value of the mapping points needs to be ensured to be unchanged, and the brightness value of the mapping points is adjusted along the second connecting line, namely, the direction of changing the saturation.
In addition, in this embodiment, a plurality of original points are selected from the original color gamut according to a preset interval, and these original points are mapped into the target color gamut, and according to the method shown above, the gray scale values of the mapping points corresponding to these original points can be calculated, and a mapping lookup table from the original color gamut to the target color gamut can be created. Therefore, the gray scale value of the mapping point in the target color gamut can be obtained in a searching mode according to the gray scale value of the original point in the original color gamut, so that the complex calculation process is reduced. When the gray-scale value of the original point is not in the table, the gray-scale value of the mapping point can be obtained by interpolation calculation. It should be noted that, the interpolation calculation method includes, but is not limited to, linear interpolation, cubic interpolation, polynomial interpolation, and neighbor interpolation.
In this embodiment, the color coordinates and brightness values of the mapping points are obtained according to the original point, the first white point, the second white point and the chromaticity diagram, so as to obtain the gray scale value of the mapping point in the target color gamut, and realize the mapping of the original point from the original color gamut to the target color gamut, so as to expand the beneficial effect of the color in the expression range of the display color gamut.
Referring to fig. 7, fig. 7 is a flowchart illustrating a second embodiment of the color gamut mapping method according to the present invention, based on the first embodiment shown above, step S240 further includes the following steps:
step S241, respectively obtaining the original point, the first white point and the total stimulation value of the first intersection point;
step S242, obtaining a first ratio of a sum of the total stimulus values of the first white point and the first intersection point to the total stimulus value of the original point, and obtaining the color coordinates of the mapping point according to the first ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
The tristimulus values include the sum of X, Y, Z, X, Y, Z as the total stimulus value. And respectively calculating the total stimulus values of the first white point, the second white point, the original point, the first intersection point and the third intersection point according to the tristimulus values of the first white point, the second white point, the original point, the first intersection point and the third intersection point.
And calculating a first ratio of the sum of the total stimulus values of the first white point and the first intersection point to the total stimulus value of the original point, and determining the position of the mapping point in a line segment taking the second white point and the third intersection point as endpoints according to the first ratio, so as to obtain the color coordinates of the mapping point.
It should be noted that, in this embodiment, the total stimulus value of the mapping point is not calculated according to the proportional relationship of the total stimulus values, but the position of the mapping point in the line segment with the second white point and the third intersection point as the end points is determined according to the first ratio, so as to calculate the color coordinates of the mapping point.
In this embodiment, since the total stimulus value includes a plurality of color information of the original point, such as purity, brightness, hue, etc., the color coordinates of the mapping point are determined by using the total stimulus value, which is relatively more accurate and can reflect the relationship between the original point and the mapping point.
Referring to fig. 8, fig. 8 is a flowchart of a third embodiment of the color gamut mapping method according to the present invention, based on the first embodiment shown above and in parallel relation to the second embodiment shown above, step S240, further comprising the steps of:
step S243, obtaining the brightness value of the first white point according to the tristimulus value of the first white point, and obtaining the brightness value of the first intersection point according to the tristimulus value of the first intersection point;
step S244, obtaining a second ratio of the sum of the luminance value of the first white point and the luminance value of the first intersection point to the luminance value of the original point, and obtaining the color coordinates of the mapping point according to the second ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
The Y value in the tristimulus values of the known colors represents the luminance value of the color, so that the luminance value of the first white point and the first intersection point is obtained according to the tristimulus values of the first white point and the first intersection point.
And calculating a second ratio of the sum of the brightness values of the first white point and the first intersection point to the brightness value of the original point, and determining the position of the mapping point in the line segment with the second white point and the third intersection point as the end points according to the second ratio, so as to obtain the color coordinates of the mapping point.
The color coordinates of the mapping points obtained by the calculation method are relatively more accurate because the color coordinates obtained by the calculation of the proportion relation of the brightness values contain the information of the brightness values.
In this embodiment, the color coordinates of the mapping points are obtained by the luminance value proportional relationship, and the luminance value information is taken into consideration, so that the mapping relationship can be obtained more accurately.
Referring to fig. 9, fig. 9 is a flowchart of a fourth embodiment of the color gamut mapping method according to the present invention, based on the first embodiment shown above, in parallel relation with the second embodiment and the third embodiment shown above, step S240, further includes the following steps:
step S245, a first distance from the original point to the first white point is obtained, and a second distance from the first white point to the first intersection point is obtained;
step S246, obtaining a third ratio corresponding to the first distance and the second distance, and obtaining the color coordinates of the mapping point according to the third ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
In this embodiment, the color coordinates of the mapping points are obtained by equidistant ratio calculation. First, a first distance from an original point to a first white point and a second distance from the first white point to a first intersection point are obtained, and a third ratio of the first distance to the second distance is obtained. According to the third ratio equal to the ratio of the distance from the mapping point to the second white point to the distance from the second white point to the third intersection point and the color coordinates of the second white point and the color coordinates of the third intersection point, calculating to obtain the color coordinates of the mapping point, and satisfying the following formula:
wherein O is 1 A is the distance from the first white point to the original point; o (O) 1 B is the distance from the first white point to the first intersection point; o (O) 2 E is the distance from the second white point to the mapping point; o (O) 2 D is the distance from the second white point to the third intersection point.
It should be noted that, in the present embodiment, the white point applied to fig. 3, that is, the original color gamut and the target color gamut are at different points; the same applies to fig. 6, i.e. the white point of the original color and the target color gamut are at the same point. And will not be described in detail.
In the embodiment, the color coordinates of the mapping points are obtained through equidistant proportion calculation, so that the logic is simple, the calculation method is relatively simple, and the operation is easy.
In addition, the embodiment of the invention also provides a color gamut mapping component, which comprises a processor, a memory and a color gamut mapping program stored on the memory and capable of running on the processor, wherein the color gamut mapping program realizes the content of the color gamut mapping method embodiment when being executed by the processor.
The embodiment of the invention also provides a display device, which comprises a processor, a memory and a color gamut mapping program stored on the memory and capable of running on the processor, wherein the color gamut mapping program realizes the content of the color gamut mapping method embodiment when being executed by the processor.
The embodiments of the present invention also propose a computer-readable storage medium on which a gamut mapping program is stored, which when executed by a processor implements the content of the gamut mapping method embodiments described above.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A color gamut mapping method, characterized in that the color gamut mapping method comprises the steps of:
acquiring a plurality of original points in an original color gamut;
acquiring color coordinates and brightness values of corresponding mapping points in a target color gamut according to the original point, a first white point of the original color gamut, a second white point of the target color gamut and a chromaticity diagram, wherein the original color gamut is a sheet source color gamut, the first white point is a white point of an artificial standard light source, the target color gamut is a displayable color gamut of a display, and the second white point is determined according to the display setting;
acquiring a gray scale value of the mapping point corresponding to each original point in the target color domain according to the color coordinates and the brightness value of the mapping point;
the color gamut mapping method further includes:
when the brightness value of the mapping point does not reach the preset brightness value, adjusting the color coordinates of the mapping point along a second connecting line so as to enable the adjusted brightness value of the mapping point to reach the preset brightness value through saturation change;
the second connecting line is a connecting line formed by a second intersection point and the second white point, the second intersection point is an intersection point of a first connecting line and a boundary line of the chromaticity diagram, and the first connecting line is a connecting line formed by the first white point and the original point;
after the step of obtaining the gray scale value of the mapping point in the target color gamut according to the color coordinates and the brightness value of the mapping point, the method further comprises the following steps:
establishing a mapping lookup table according to the gray scale values of the plurality of original points and the gray scale values of the corresponding mapping points of each original point in the target color gamut;
when a new original point is obtained and a gray scale value of the new original point exists in the mapping lookup table, determining a gray scale value of a mapping point corresponding to the new original point in the target color gamut according to the mapping lookup table;
when a new original point is obtained and the gray scale value of the new original point does not exist in the mapping lookup table, determining the gray scale value of the new original point corresponding to the mapping point in the target color gamut according to the interpolation calculation of the mapping lookup table.
2. The gamut mapping method according to claim 1, wherein the step of obtaining the color coordinates and luminance values of the mapping points in the target gamut from the original point, the first white point of the original gamut, the second white point of the target gamut, and the chromaticity diagram comprises:
acquiring a first connecting line formed by the first white point and the original point, and acquiring a first intersection point of the first connecting line and a boundary line of the original color gamut and a second intersection point of the first connecting line and a boundary line of the chromaticity diagram;
acquiring a second connecting line of the second intersection point and the second white point, and acquiring a third intersection point of the second connecting line and a boundary line of the target color gamut;
obtaining brightness values of the mapping points according to the original points, the first white points and the second white points;
and obtaining the color coordinates of the mapping points according to the original points, the first white points, the first intersection points, the second white points and the third intersection points.
3. The color gamut mapping method according to claim 2, wherein the step of obtaining the luminance value of the mapped point from the original point, the first white point, and the second white point comprises:
and obtaining the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and obtaining the brightness value of the mapping point according to the ratio and the maximum brightness value of the second white point.
4. The gamut mapping method according to claim 2, wherein the step of obtaining the color coordinates of the mapped point from the original point, the first white point, the first intersection point, the second white point, and the third intersection point further comprises:
respectively obtaining the original point, the first white point and the total stimulation value of the first intersection point;
and obtaining a first ratio of the sum of the total stimulus values of the first white point and the first intersection point to the total stimulus value of the original point, and obtaining the color coordinates of the mapping point according to the first ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
5. The gamut mapping method according to claim 2, wherein the step of obtaining the color coordinates of the mapped point from the original point, the first white point, the first intersection point, the second white point, and the third intersection point further comprises:
acquiring a brightness value of the first white point according to the tristimulus value of the first white point, and acquiring the brightness value of the first intersection point according to the tristimulus value of the first intersection point;
and obtaining a second ratio of the sum of the brightness value of the first white point and the brightness value of the first intersection point to the brightness value of the original point, and obtaining the color coordinates of the mapping point according to the second ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
6. The gamut mapping method according to claim 2, wherein the step of obtaining the color coordinates of the mapped point from the original point, the first white point, the first intersection point, the second white point, and the third intersection point further comprises:
acquiring a first distance from the original point to the first white point, and acquiring a second distance from the first white point to the first intersection point;
and acquiring a third ratio corresponding to the first distance and the second distance, and acquiring the color coordinates of the mapping points according to the third ratio, the color coordinates of the second white point and the color coordinates of the third intersection point.
7. The method of gamut mapping according to claim 1, wherein the step of obtaining a plurality of original points in the original gamut comprises:
acquiring a tristimulus value of each original point according to the gray level value of the original point;
and obtaining the color coordinates and the brightness value of the corresponding original point according to the tristimulus value of each original point in the plurality of original points.
8. A gamut mapping component comprising a processor, a memory, and a gamut mapping program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the gamut mapping method of any of claims 1 to 7.
9. A display device comprising a processor, a memory and a gamut mapping program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the gamut mapping method of any of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a gamut mapping program, which when executed by a processor, implements the steps of the gamut mapping method according to any of claims 1 to 7.
CN201910915537.3A 2019-09-25 2019-09-25 Color gamut mapping method, component, display device and storage medium Active CN110675797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910915537.3A CN110675797B (en) 2019-09-25 2019-09-25 Color gamut mapping method, component, display device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910915537.3A CN110675797B (en) 2019-09-25 2019-09-25 Color gamut mapping method, component, display device and storage medium

Publications (2)

Publication Number Publication Date
CN110675797A CN110675797A (en) 2020-01-10
CN110675797B true CN110675797B (en) 2023-10-13

Family

ID=69079134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910915537.3A Active CN110675797B (en) 2019-09-25 2019-09-25 Color gamut mapping method, component, display device and storage medium

Country Status (1)

Country Link
CN (1) CN110675797B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113470591B (en) 2020-03-31 2023-11-14 京东方科技集团股份有限公司 Monitor color matching method and device, electronic equipment and storage medium
CN111341283B (en) * 2020-04-20 2022-04-22 深圳Tcl数字技术有限公司 Color gamut mapping method, color gamut mapping assembly and display device
CN111679483A (en) * 2020-06-02 2020-09-18 Tcl华星光电技术有限公司 Method for adjusting color gamut of liquid crystal display panel
CN113270063B (en) * 2021-05-21 2023-02-28 北京京东方显示技术有限公司 Color coordinate calibration method, system, processing device and computer storage medium
CN115909984B (en) * 2022-11-02 2024-04-23 佛山市青松科技股份有限公司 Color mapping method, system, computer device and computer readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0846989A (en) * 1994-07-29 1996-02-16 Toppan Printing Co Ltd Method and device for color conversion
CN101155252A (en) * 2006-09-29 2008-04-02 三星电子株式会社 Method and apparatus for performing gamut mapping between heterogeneous devices
WO2009121620A1 (en) * 2008-04-03 2009-10-08 Ledon Lighting Gmbh Conversion of color information for activating a light source
CN102577397A (en) * 2009-11-20 2012-07-11 夏普株式会社 Image processing device and image processing method
CN102986296A (en) * 2010-06-15 2013-03-20 欧司朗股份有限公司 Method for operating a semiconductor lighting device and color control device for carrying out the method
CN104243946A (en) * 2014-09-26 2014-12-24 深圳市华星光电技术有限公司 Image color enhancement method and device for display
EP2911389A1 (en) * 2014-02-19 2015-08-26 Televic Rail NV System for controlling a colour scheme on a display
EP3255872A1 (en) * 2016-06-10 2017-12-13 Thomson Licensing Method of mapping source colors of an image in a chromaticity plane
CN107863081A (en) * 2017-12-13 2018-03-30 京东方科技集团股份有限公司 Multiple bases conversion method and its converter, display control method, display device
CN107888893A (en) * 2017-11-07 2018-04-06 深圳市华星光电半导体显示技术有限公司 A kind of method of color gamut mapping of color and gamut mapping apparatus
CN108882028A (en) * 2018-07-05 2018-11-23 华为技术有限公司 The processing method and processing device of vision signal
CN110277076A (en) * 2019-07-22 2019-09-24 京东方科技集团股份有限公司 A kind of Color Mapping Approach and device, display equipment, medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0846989A (en) * 1994-07-29 1996-02-16 Toppan Printing Co Ltd Method and device for color conversion
CN101155252A (en) * 2006-09-29 2008-04-02 三星电子株式会社 Method and apparatus for performing gamut mapping between heterogeneous devices
WO2009121620A1 (en) * 2008-04-03 2009-10-08 Ledon Lighting Gmbh Conversion of color information for activating a light source
CN102577397A (en) * 2009-11-20 2012-07-11 夏普株式会社 Image processing device and image processing method
CN102986296A (en) * 2010-06-15 2013-03-20 欧司朗股份有限公司 Method for operating a semiconductor lighting device and color control device for carrying out the method
EP2911389A1 (en) * 2014-02-19 2015-08-26 Televic Rail NV System for controlling a colour scheme on a display
CN104243946A (en) * 2014-09-26 2014-12-24 深圳市华星光电技术有限公司 Image color enhancement method and device for display
EP3255872A1 (en) * 2016-06-10 2017-12-13 Thomson Licensing Method of mapping source colors of an image in a chromaticity plane
CN107888893A (en) * 2017-11-07 2018-04-06 深圳市华星光电半导体显示技术有限公司 A kind of method of color gamut mapping of color and gamut mapping apparatus
CN107863081A (en) * 2017-12-13 2018-03-30 京东方科技集团股份有限公司 Multiple bases conversion method and its converter, display control method, display device
CN108882028A (en) * 2018-07-05 2018-11-23 华为技术有限公司 The processing method and processing device of vision signal
CN110277076A (en) * 2019-07-22 2019-09-24 京东方科技集团股份有限公司 A kind of Color Mapping Approach and device, display equipment, medium

Also Published As

Publication number Publication date
CN110675797A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110675797B (en) Color gamut mapping method, component, display device and storage medium
CN107863081B (en) Multiple bases conversion method and its converter, display control method, display device
US10347198B2 (en) Image displaying methods and display devices
CN111243550B (en) Adjusting device, adjusting method and medium for gamma voltage and white balance of display screen
US10748504B2 (en) Energy-saving method for display apparatus, device and display apparatus
JP2018520445A (en) Conversion method and conversion system from three-color data to four-color data
CN108962167B (en) Data processing method and device, driving method, display panel and storage medium
CN109246405B (en) Method and system for adjusting uniformity of image tone
CN108615496B (en) Image data processing method and device
CN108230406B (en) Data processing method and electronic equipment
CN109308868B (en) Display panel driving method and system and display device
US11900848B2 (en) Color gamut mapping method, color gamut mapping assembly, and display device
CN112292851B (en) Color gamut correction method and device
WO2017101534A1 (en) Colour signal conversion method and device for liquid crystal display screen
CN111063292B (en) Color gamut mapping method, color gamut mapping component, display device, and storage medium
WO2017173682A1 (en) Driving method for graphene display and graphene display
CN110277076B (en) Color mapping method and device, display equipment and medium
CN109727573B (en) Display method and display device
CN108717839B (en) Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium
US20200302865A1 (en) Display substrate, display device, control method and control circuit
US10127885B2 (en) Display device, method for driving the same, and electronic apparatus
US9111478B2 (en) Method of compensating color gamut of display
US9959819B2 (en) RGB to RGBW brightness compensation method and device
JP2010286783A (en) Self-luminous display and self-luminous display method
US11308844B2 (en) Multi-primary color conversion method, driving method and driving device of display panel, and display device

Legal Events

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