CN110675797A - Color gamut mapping method, color gamut mapping assembly, display device and storage medium - Google Patents
Color gamut mapping method, color gamut mapping assembly, display device and storage medium Download PDFInfo
- Publication number
- CN110675797A CN110675797A CN201910915537.3A CN201910915537A CN110675797A CN 110675797 A CN110675797 A CN 110675797A CN 201910915537 A CN201910915537 A CN 201910915537A CN 110675797 A CN110675797 A CN 110675797A
- Authority
- CN
- China
- Prior art keywords
- point
- mapping
- original
- acquiring
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control 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/2003—Display of colours
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 a chromaticity diagram; and acquiring the gray-scale value of the mapping point in the target color gamut according to the color coordinate and the brightness value of the mapping point. The invention also discloses a color gamut mapping component, a display device and a storage medium. The method and the device have the advantages that 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, the first white point, the second white point of the mapping color gamut and the chromaticity diagram and the mapping point in the original color gamut, so that the expression range of the color in the display color gamut is expanded.
Description
Technical Field
The present invention relates to the field of display technologies, and in particular, to a method and an assembly for gamut mapping, a display device, and a storage medium.
Background
The color gamut refers to the number of colors that can be expressed by a certain device, and the range area formed by the colors, that is, the range of colors that can be expressed by various screen display devices, printers, or printing devices, and the size of the color gamut to be expressed by different displays may also be different. Currently, the international color measurement standard is the NTSC (National Television standards committee) specified color gamut triangle range, i.e., the range of colors represented on a display.
With the development of display technology, the color gamut area represented by the display panel is gradually increased, but the specification of the color gamut causes the color gamut of the film source to be smaller, thereby limiting the representation range of colors on the display.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The present invention provides a method for gamut mapping, which aims to solve the technical problems that the specification of gamut ranges in the prior art causes the gamut of a film source to be smaller, and the representation range of colors on a display is limited.
To solve the above problem, an embodiment of the present invention provides a method for gamut mapping, which includes 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 a chromaticity diagram;
and acquiring the gray-scale value of the mapping point in the target color gamut according to the color coordinate 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 the 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;
acquiring the brightness value of the mapping point according to the original point, the first white point and the second white point;
and acquiring 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.
Optionally, the step of obtaining the brightness value of the mapping point according to the original point, the first white point and the second white point comprises:
and acquiring the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and acquiring 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 acquiring total stimulus values of the original point, the first white point and the first intersection point;
and acquiring 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 acquiring 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 the 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 acquiring 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 acquiring the color coordinate of the mapping point according to the second ratio, the color coordinate of the second white point and the color coordinate 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 comprises:
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 acquiring an original point in the original color gamut includes:
acquiring a tristimulus value of the original point according to the gray-scale value of the original point;
and acquiring the color coordinate and the brightness value of the original point according to the tristimulus value of the original point.
Furthermore, an embodiment of the present invention further provides a gamut mapping component, where the gamut mapping component includes a processor, a memory, and a gamut mapping program stored on the memory and executable on the processor, and the gamut mapping program, when executed by the processor, implements the steps of the gamut mapping method as described above.
Embodiments of the present invention further provide a display device, where the display device includes a processor, a memory, and a color gamut mapping program stored on the memory and operable on the processor, and the color gamut mapping program, when executed by the processor, implements the steps of the color gamut mapping method as described above.
Embodiments of the present invention further provide a computer-readable storage medium, where a color gamut mapping program is stored, and when being executed by a processor, the color gamut mapping program implements the steps of the color gamut mapping method described above.
The color gamut mapping method provided by the embodiment of the invention obtains an initial 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 a chromaticity diagram; and acquiring the gray-scale value of the mapping point in the target color gamut according to the color coordinate 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, the first white point, the second white point of the mapping color gamut and the chromaticity diagram and the mapping point in the original color gamut, so that the beneficial effect of expanding the expression range of the color in the display color gamut is achieved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a gamut mapping method according to the invention;
FIG. 3 is a color gamut mapping diagram according to an embodiment of the present invention;
fig. 4 is a schematic diagram of three gamut mapping relationships according to an embodiment of the present invention;
FIG. 5 is a detailed flowchart of step S200 in FIG. 2;
fig. 6 is a schematic diagram of another gamut mapping according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a second embodiment of a gamut mapping method according to the invention;
fig. 8 is a flowchart illustrating a color gamut mapping method according to a third embodiment of the present invention;
fig. 9 is a flowchart illustrating a color gamut mapping method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The main solution of the embodiment of the invention is as follows: 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 a chromaticity diagram; and acquiring the gray-scale value of the mapping point in the target color gamut according to the color coordinate and the brightness value of the mapping point.
The technical problem of limiting the representing range of colors on the display is solved because the color gamut of the film source is smaller due to the specification of the color gamut in the prior art.
The embodiment of the invention provides a solution, which is characterized in that an original point in an original color gamut is mapped to a target color gamut to obtain a mapping point, and a gray scale value of the mapping point in the target color gamut is obtained according to the relation among the original point, a first white point, a second white point of the mapping color gamut and a chromaticity diagram and the mapping point in the original color gamut, so that the beneficial effect of expanding the expression range of colors in a display color gamut is achieved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the present invention is a display device, and may be a display device such as a television, a computer, or a display, and it should be noted that the display device includes 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, and a memory 1003. The communication bus 1002 is used for realizing connection communication among the components. The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1003, which is a kind of computer storage medium, may include an operating system and a gamut mapping program, and the processor 1001 may be configured to call the gamut mapping program stored in the memory 1003 and perform 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 a chromaticity diagram;
and acquiring the gray-scale value of the mapping point in the target color gamut according to the color coordinate 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 the 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;
acquiring the brightness value of the mapping point according to the original point, the first white point and the second white point;
and acquiring 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, the processor 1001 may be configured to call a gamut mapping program stored in the memory 1003, and perform the following steps:
and acquiring the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and acquiring 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 acquiring total stimulus values of the original point, the first white point and the first intersection point;
and acquiring 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 acquiring 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 the 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 acquiring 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 acquiring the color coordinate of the mapping point according to the second ratio, the color coordinate of the second white point and the color coordinate 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-scale value of the original point;
and acquiring the color coordinate and the brightness value of the original point according to the tristimulus value of the original point.
Based on the hardware structure of the display device, a first embodiment of the present invention is provided, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a color gamut mapping method of the present invention, where the color gamut mapping method includes the following steps:
step S100, acquiring an original point in an original color gamut;
with the development of display technology, the display can express more and more colors, and the gamut range is also increased continuously, but the range of the chip source gamut is relatively small, and in order to more fully show the color expressive force of the display, the chip source gamut needs to be mapped. The Display according to the present embodiment includes, but is not limited to, displays such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), QLED (Quantum dot Light-Emitting Diode), and micro _ LED (micro Light-Emitting Diode).
In the present embodiment, the color gamut concerned (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 with more primary colors (e.g., R, G, B, Y, C, M), and for the convenience 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 chip source color gamut, such as bt.709 and bt.2020 color gamuts, or a high color gamut containing more colors, or a low color gamut containing less colors, which is not limited herein. Referring to fig. 3, a small triangle in fig. 3 represents the original color gamut, three vertexes of the small triangle are R, G, B at the color coordinate point, and a triangle formed by the three vertexes is the original color gamut. The large triangle in fig. 3 is the target color gamut, and is also a range in which the points in the original color gamut are mapped to the mapped points in the target color gamut. It should be understood that the triangle and the triangle are only used as an example and should not be construed as limiting the scope of the present invention.
Acquiring an original point in an original color gamut, comprising the following steps:
acquiring a tristimulus value of the original point according to the gray-scale value of the original point;
and acquiring the color coordinate 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 range of the gray scale value is 0-2k-1 (wherein k is a positive integer); when the gray-scale value is subjected to normalization processing, the range of the gray-scale value is 0-1. In the present embodiment, the gray scale value ranges from 0 to 255.
And calculating the tristimulus values of the original points according to the electro-optical conversion curve, the gray scale values of the original points, the color coordinates of the three vertexes R, G, B in the original color gamut, the color coordinates of the white points (white color coordinate points) in the original color gamut and the brightness values. The tristimulus values are represented by (X, Y, Z). The Y value in the tristimulus values is in positive correlation with the brightness value of the color, 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 as (x, y) satisfy the following formula:
and obtaining the color coordinates of the original point in the original color gamut according to the formula shown above.
Step S200, 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;
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 line of monochromatic light in all visible light, wherein each point represents the color of a certain monochromatic light.
The white point is a white point formed by mixing red, green and blue with the same stimulating light energy, and the first white point in the original color gamut can be D65, i.e. 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 as required 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 gamut and the second white point in the target gamut may be at the same point or different points, so, referring to fig. 4, mapping from the gamut with a smaller range to the gamut with a larger range or mapping from the gamut with a larger range to the gamut with a smaller range may be implemented, and thus the application range of the mapping method is expanded, thereby improving the expressiveness of the display screen.
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, and the method for 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, the second white point, and the chromaticity diagram 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 a 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 a boundary line of the target color gamut is obtained;
step S230, acquiring the brightness value of the mapping point according to the original point, the first white point and the second white point;
step S240, 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.
It should be noted that the brightness value and the color coordinate of the mapping point are not sequentially obtained, and therefore the scope of the present invention is not limited thereby.
When the first white point and the second white point are not at the same position, referring to fig. 3, the first white point O1Extending to the original point A to form a first connection line O1A. The first connecting line intersects the boundary line of the original color gamut at a first intersection point B and intersects the boundary line of the chromaticity diagram at a second intersection point C. Connecting the second white point O in the target color gamut2A second connection line O is obtained by the third intersection point C2And C, the second connecting line and the boundary line of the target color gamut intersect at a third intersection point D. And acquiring tristimulus values of the first intersection point and the third intersection point according to the position relations of the original point, the first white point, the second white point, the first intersection point and the third intersection point. Wherein the tristimulus values are expressed by (X, Y, Z), and the total stimulus value can be obtained from the tristimulus values, i.e. 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 the present embodiment is also applicable to mapping of the original gamut and the white point of the target gamut at the same point. Referring to fig. 6, the point O is both the white point of the original color gamut and the white point of the target color gamut, the original point is a, and the white point O and the original point a form a mapping straight line, wherein the mapping straight line is a straight line with a changing saturation degree and can be increased or decreased. And the mapping straight line intersects the boundary line of the original color gamut at a point B and intersects the boundary line of the target color gamut at a point D, and the relation between the mapping point at a white point O and the intersection point D is obtained according to the relation between the original point A at 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 step of acquiring the brightness value of the mapping point comprises the following steps:
and acquiring the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and acquiring 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 is not changed before and after mapping, 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 is1The brightness value of the original point is obtained; l is2The brightness value of the mapping point; l isw1Is the maximum brightness value of the first white point; l isw2The maximum luminance value of the second white point.
According to the relationship between the original point and the first white point and the first intersection point, such as the ratio of the total stimulus value of the original point to the sum of the total stimulus values of the first white point and 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 position of the mapping point in the line segment with the second white point and the third intersection point as the end points can be obtained, and the color coordinate of the mapping point can be obtained.
Step S30, obtaining a gray level value of the mapping point in the target color gamut according to the color coordinate and the brightness value of the mapping point.
According to the color coordinates and the brightness values of the mapping points, the tristimulus values of the mapping points can be calculated through an electro-optic 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 gamut are obtained.
Since the display may not be able to display according to the color coordinates and the brightness values of the mapping points in the display process by the mapping method shown above, in other words, the display displays at the color coordinates of the mapping points, the brightness values are lower than the preset brightness values, and in order to avoid color distortion, the color coordinates of the mapping points need to be corrected, and the correction process 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.
Since the color coordinates of the mapping point on the display (target color gamut) do not reach the required brightness value, but the change of the brightness value will cause color distortion, it is necessary to ensure that the brightness value of the mapping point is not changed, and adjust the color coordinates of the mapping point along the second connecting line correspondingly, that is, adjust the brightness value of the mapping point along the direction of the change of the saturation, so as to reach the brightness value.
In addition, in this embodiment, a plurality of original points are selected from the original color gamut at preset intervals, and these original points are mapped to the target color gamut, so that the gray-scale values of the mapping points corresponding to these original points can be calculated according to the above-mentioned method, and a mapping lookup table from the original color gamut to the target color gamut can be established. 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, and therefore 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 in an interpolation calculation mode. 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 the luminance 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, thereby expanding the expression range of the colors in the display color gamut.
Referring to fig. 7, fig. 7 is a flowchart illustrating a second embodiment of the gamut mapping method according to the present invention, and based on the first embodiment shown above, step S240 further includes the following steps:
step S241, obtaining total stimulus values of the original point, the first white point, and the first intersection point, respectively;
step S242, 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.
The tristimulus values include X, Y and Z, and the sum of X, Y and Z is 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 end points according to the first ratio so as to obtain the color coordinates of the mapping point.
In this embodiment, the total stimulus value of the mapping point is not calculated from the proportional relationship of the total stimulus values, but the position of the mapping point in the line segment where the second white point and the third intersection point are end points is determined from the first ratio, and the color coordinate of the mapping point is calculated.
In this embodiment, since the total stimulus value includes a plurality of color information of the original point, such as color information of purity, brightness, hue, and the like, the color coordinates of the mapping points 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 points.
Referring to fig. 8, fig. 8 is a flowchart illustrating a third embodiment of the gamut mapping method according to the present invention, based on the first embodiment and in parallel relationship with the second embodiment, and step S240 further includes the following steps:
step S243, obtaining a brightness value of the first white point according to the tristimulus value of the first white point, and obtaining a brightness value of the first intersection according to the tristimulus value of the first intersection;
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 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.
And the Y value in the tristimulus values of the known color represents the brightness value of the color, so that the brightness 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 a line segment with the second white point and the third intersection point as end points according to the second ratio so as to obtain the color coordinates of the mapping point.
The color coordinates obtained by utilizing the proportional relation of the brightness values comprise information of the brightness values, so that the color coordinates of the mapping points obtained by utilizing the calculation method are relatively more accurate.
In this embodiment, the color coordinates of the mapping points are obtained through the proportional relationship of the luminance values, and the mapping relationship can be obtained more accurately by taking the luminance value information into account.
Referring to fig. 9, fig. 9 is a schematic flowchart of a fourth embodiment of the gamut mapping method of the present invention, which is based on the first embodiment shown above and in parallel relationship with the second embodiment and the third embodiment shown above, and step S240 further includes the following steps:
step S245, 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;
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.
In the present embodiment, the color coordinates of the mapped points are obtained by equidistant proportion 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. Calculating the color coordinates of the mapping point 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, and satisfying the following formula:
wherein, O1A is the distance from the first white point to the original point; o is1B is the distance from the first white point to the first intersection point; o is2E is the distance from the second white point to the mapping point; o is2D is the distance of the second white point to the third intersection point.
It should be noted that, in the present embodiment, namely, the application to fig. 3, that is, the white points of the original color gamut and the target color gamut are different; the same applies to fig. 6, i.e. the original color is at the same point as the white point of the target color gamut. This is not described in detail.
In the embodiment, the color coordinates of the mapping points are obtained through equidistant proportion calculation, the logic is simple, the calculation method is relatively simple, and the operation is easy.
Furthermore, an embodiment of the present invention further provides a gamut mapping component, where the gamut mapping component includes a processor, a memory, and a gamut mapping program stored on the memory and operable on the processor, and when executed by the processor, the gamut mapping program implements the contents of the gamut mapping method embodiment as described above.
Embodiments of the present invention further provide a display device, where the display device includes a processor, a memory, and a color gamut mapping program stored on the memory and operable on the processor, and when executed by the processor, the color gamut mapping program implements the content of the color gamut mapping method embodiments described above.
An embodiment of the present invention further provides a computer-readable storage medium, where a color gamut mapping program is stored on the computer-readable storage medium, and when the color gamut mapping program is executed by a processor, the color gamut mapping program implements the content of the color gamut mapping method embodiment described above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (11)
1. A method of gamut mapping, characterized in that it comprises 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 a chromaticity diagram;
and acquiring the gray-scale value of the mapping point in the target color gamut according to the color coordinate and the brightness value of the mapping point.
2. The method of gamut mapping according to claim 1, wherein the step of obtaining the color coordinates and luminance values of the mapping point in the target gamut from the original point, the first white point of the original gamut and the second white point of the target gamut, and a 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 the 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;
acquiring the brightness value of the mapping point according to the original point, the first white point and the second white point;
and acquiring 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.
3. The method of gamut mapping according to claim 2, wherein said step of obtaining luminance values of said mapped points from said original point, said first white point and said second white point comprises:
and acquiring the ratio of the brightness value of the original point to the maximum brightness value of the first white point, and acquiring the brightness value of the mapping point according to the ratio and the maximum brightness value of the second white point.
4. The method of gamut mapping 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 acquiring total stimulus values of the original point, the first white point and the first intersection point;
and acquiring 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 acquiring 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 method of gamut mapping 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 the 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 acquiring 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 acquiring the color coordinate of the mapping point according to the second ratio, the color coordinate of the second white point and the color coordinate of the third intersection point.
6. The method of gamut mapping 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 gamut mapping method according to any one of claims 2 to 6, characterized in that the gamut mapping method further comprises:
and adjusting the color coordinates of the mapping points according to the brightness values of the mapping points and the second connecting line.
8. The method of gamut mapping according to claim 1, wherein the step of obtaining the original point in the original gamut comprises:
acquiring a tristimulus value of the original point according to the gray-scale value of the original point;
and acquiring the color coordinate and the brightness value of the original point according to the tristimulus value of the original point.
9. A gamut mapping component comprising a processor, a memory and a gamut mapping program stored on the memory and executable on the processor, the gamut mapping program when executed by the processor implementing the steps of the gamut mapping method as claimed in any one of claims 1 to 8.
10. A display device comprising a processor, a memory, and a gamut mapping program stored on the memory and executable on the processor, the gamut mapping program when executed by the processor implementing the steps of the gamut mapping method as claimed in any one of claims 1 to 8.
11. 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 according to any one of claims 1 to 8.
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 true CN110675797A (en) | 2020-01-10 |
CN110675797B 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) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111341283A (en) * | 2020-04-20 | 2020-06-26 | 深圳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 |
CN113270063A (en) * | 2021-05-21 | 2021-08-17 | 北京京东方显示技术有限公司 | Color coordinate calibration method, system, processing device and computer storage medium |
CN113470591A (en) * | 2020-03-31 | 2021-10-01 | 京东方科技集团股份有限公司 | Monitor toning method and device, electronic equipment and storage medium |
CN115909984A (en) * | 2022-11-02 | 2023-04-04 | 佛山市青松科技股份有限公司 | Color mapping method, system, computer device and computer-readable storage medium |
Citations (12)
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 |
-
2019
- 2019-09-25 CN CN201910915537.3A patent/CN110675797B/en active Active
Patent Citations (13)
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 |
US20120194539A1 (en) * | 2009-11-20 | 2012-08-02 | Sharp Kabushiki Kaisha | 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 |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113470591A (en) * | 2020-03-31 | 2021-10-01 | 京东方科技集团股份有限公司 | Monitor toning 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 |
CN113470591B (en) * | 2020-03-31 | 2023-11-14 | 京东方科技集团股份有限公司 | Monitor color matching method and device, electronic equipment and storage medium |
US20230215321A1 (en) * | 2020-04-20 | 2023-07-06 | Shenzhen Tcl Digital Technology Ltd. | Color gamut mapping method, color gamut mapping assembly, and display device |
WO2021213091A1 (en) * | 2020-04-20 | 2021-10-28 | 深圳Tcl数字技术有限公司 | Color gamut mapping method, color gamut mapping assembly, and display device |
CN111341283B (en) * | 2020-04-20 | 2022-04-22 | 深圳Tcl数字技术有限公司 | Color gamut mapping method, color gamut mapping assembly and display device |
CN111341283A (en) * | 2020-04-20 | 2020-06-26 | 深圳Tcl数字技术有限公司 | Color gamut mapping method, color gamut mapping assembly and display device |
US11900848B2 (en) | 2020-04-20 | 2024-02-13 | Shenzhen Tcl Digital Technology Ltd. | 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 |
WO2022242062A1 (en) * | 2021-05-21 | 2022-11-24 | 京东方科技集团股份有限公司 | Method and system for calibrating colour coordinates, processing device, and computer storage medium |
CN113270063B (en) * | 2021-05-21 | 2023-02-28 | 北京京东方显示技术有限公司 | Color coordinate calibration method, system, processing device and computer storage medium |
CN113270063A (en) * | 2021-05-21 | 2021-08-17 | 北京京东方显示技术有限公司 | Color coordinate calibration method, system, processing device and computer storage medium |
CN115909984A (en) * | 2022-11-02 | 2023-04-04 | 佛山市青松科技股份有限公司 | Color mapping method, system, computer device and computer-readable storage medium |
CN115909984B (en) * | 2022-11-02 | 2024-04-23 | 佛山市青松科技股份有限公司 | Color mapping method, system, computer device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110675797B (en) | 2023-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110675797B (en) | Color gamut mapping method, component, display device and storage medium | |
US10896635B2 (en) | Primary color conversion method and converter thereof, display control method, and display device | |
WO2019114479A1 (en) | Multi-primary color conversion method, driving method, driving device and display device | |
CN111243550B (en) | Adjusting device, adjusting method and medium for gamma voltage and white balance of display screen | |
US10347198B2 (en) | Image displaying methods and display devices | |
US8704848B2 (en) | Calibration system and method thereof for calibrating display | |
CN108962167B (en) | Data processing method and device, driving method, display panel and storage medium | |
CN108615496B (en) | Image data processing method and device | |
CN112292851B (en) | Color gamut correction method and device | |
CN109308868B (en) | Display panel driving method and system and display device | |
US11900848B2 (en) | Color gamut mapping method, color gamut mapping assembly, and display 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 | |
CN113506537A (en) | Color cast correction method, color cast correction device and system of OLED display | |
CN111429839A (en) | Method for correcting correlation between display panel voltage and gray value | |
CN108898987B (en) | Gray scale conversion method, gray scale conversion device and display device | |
US10127885B2 (en) | Display device, method for driving the same, and electronic apparatus | |
CN108717839B (en) | Method and device for converting RGB (red, green and blue) to RGBW (red, green and blue) and storage medium | |
CN109727573B (en) | Display method and display device | |
US9111478B2 (en) | Method of compensating color gamut of display | |
US11308844B2 (en) | Multi-primary color conversion method, driving method and driving device of display panel, and display device | |
TWI425495B (en) | Color temperature compensation method and applications thereof | |
US9959819B2 (en) | RGB to RGBW brightness compensation method and device | |
US8194103B2 (en) | Method and module for regulating luminance | |
JP2007134749A (en) | Device, method, and program for determining gradation conversion characteristic, image processing unit, and image 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 |