Color gamut correction method, device and equipment for electronic display device
By determining the common color gamut and target RGB brightness components in electronic display devices, and constructing an RGB exhaustive space to search for the optimal color gamut correction matrix, the problem of inconsistent color display between devices is solved, the target white effect is achieved, and the Image color consistency.
Patent Information
- Application Number
- CN202410867987.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-28
AI Technical Summary
It is difficult to implement color gamut correction in electronic display devices with the existing technology, resulting in inconsistent display of image colors on different devices and difficulty in mixing out the target white effect.
By determining the common color gamut between the color gamut to be corrected and the target color gamut, the target RGB brightness component is determined based on the common color gamut and the chromaticity coordinates of the target white point, a rough color gamut correction matrix is constructed, and the optimal color gamut correction matrix is placed at the Construct an exhaustive RGB space within the range, search for the optimal RGB combination to determine the optimal color gamut correction matrix, and achieve color gamut correction for electronic display devices.
It realizes color gamut correction on electronic display devices to the common color gamut between the color gamut to be corrected and the target color gamut, ensuring that the device after color gamut correction can accurately mix the target white effect and improve image color consistency.
Smart Images

Figure CN118411962B
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a method, device and equipment for color gamut correction of an electronic display device. Background Art
[0002] Color gamut correction refers to adjusting the color range of a display device so that it can accurately display specific colors. Through color gamut correction, you can ensure that the color of the image is displayed consistently on different devices. Summary of the invention
[0003] In view of this, the present application provides a method, apparatus and device for color gamut correction of an electronic display device.
[0004] Specifically, the present application is implemented through the following technical solutions:
[0005] According to a first aspect of an embodiment of the present application, a method for color gamut correction of an electronic display device is provided, comprising:
[0006] Determine a common color gamut between a color gamut to be corrected and a target color gamut; wherein the color gamut to be corrected is a color gamut before correction of the electronic display device to be corrected;
[0007] Determining a target RGB brightness component based on the common color gamut and the chromaticity coordinates of the target white point; wherein the target RGB brightness component meets the common color gamut requirements and can be mixed into a target white effect;
[0008] Determine a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut;
[0009] Determine the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, and construct an RGB exhaustive space within the optimal color gamut correction matrix landing range; wherein the RGB exhaustive space supports the calculation of the color mixing effects corresponding to the RGB combinations in all color gamut correction matrices;
[0010] According to the chromaticity distance between the RGB combination and each color component of the common color gamut, an optimal RGB combination is searched from the RGB exhaustive space, and an optimal color gamut correction matrix is determined according to the optimal RGB combination; wherein the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected.
[0011] According to a second aspect of an embodiment of the present application, there is provided a color gamut correction device for an electronic display device, comprising:
[0012] A first determining unit is used to determine a common color gamut between a color gamut to be corrected and a target color gamut; wherein the color gamut to be corrected is a color gamut before correction of the electronic display device to be corrected;
[0013] A second determination unit is used to determine a target RGB brightness component according to the common color gamut and the chromaticity coordinates of the target white point; wherein the target RGB brightness component meets the common color gamut requirements and can be mixed into a target white effect;
[0014] A third determining unit, configured to determine a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut;
[0015] A construction unit, used to determine the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, and construct an RGB exhaustive space within the optimal color gamut correction matrix landing range; wherein the RGB exhaustive space supports the calculation of the color mixing effects corresponding to the RGB combinations in all color gamut correction matrices;
[0016] The fourth determination unit is used to search for an optimal RGB combination from the RGB exhaustive space according to the chromaticity distance between the RGB combination and each color component of the common color gamut, and determine an optimal color gamut correction matrix according to the optimal RGB combination; wherein the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected.
[0017] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including a processor and a memory, wherein:
[0018] Memory, used to store computer programs;
[0019] The processor is used to implement the method provided in the first aspect when executing the program stored in the memory.
[0020] According to a fourth aspect of an embodiment of the present application, a computer program product is provided, wherein a computer program is stored in the computer program product, and when the computer program is executed by a processor, the method provided in the first aspect is implemented.
[0021] The color gamut correction method for an electronic display device in an embodiment of the present application determines the common color gamut of a color gamut to be corrected and a target color gamut, determines the target RGB brightness component based on the common color gamut and the chromaticity coordinates of the target white point, determines a rough color gamut correction matrix based on the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut, determines the optimal color gamut correction matrix landing point range based on the rough color gamut correction matrix, and constructs an RGB exhaustive space within the optimal color gamut correction matrix landing point range, and then, searches for an optimal RGB combination from the RGB exhaustive space based on the chromaticity distance between the RGB combination and each color component of the common color gamut, and determines an optimal color gamut correction matrix based on the optimal RGB combination, and the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected, and ensures that the electronic display device after color gamut correction can mix out a target white effect when the color gamut of the electronic display device is corrected to the common color gamut of the color gamut to be corrected and the target color gamut. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic flow chart of a method for color gamut correction of an electronic display device according to an exemplary embodiment of the present application;
[0023] Figure 2 A schematic diagram of determining a common color gamut is shown as an exemplary embodiment of the present application;
[0024] Figure 3 A schematic diagram of an RGB exhaustive space shown as an exemplary embodiment of the present application;
[0025] Figure 4 This is a schematic structural diagram of a color gamut correction device for an electronic display device according to an exemplary embodiment of the present application;
[0026] Figure 5 The figure is a schematic diagram of the hardware structure of an electronic device shown as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0028] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0029] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, some terms involved in the embodiments of the present application are briefly explained below.
[0030] 1. Electronic display device: An electronic device that can output images, including but not limited to LCD (Liquid Crystal Display) devices.
[0031] 2. Color gamut: refers to the range of colors that a device can display.
[0032] 3. Color gamut correction matrix: refers to the matrix used to describe the color range and mapping relationship of a device or color space in color management. The color gamut correction matrix is usually used to convert and map color information in different devices or color spaces to ensure that the image can maintain consistent color performance when displayed on different devices.
[0033] For example, the color gamut correction matrix is usually a 3x3 matrix, which contains mapping coefficients of the three channels of red, green and blue in the corresponding color space. Through these coefficients, color conversion and mapping between different color gamuts can be achieved.
[0034] 4. RGB combination: One column in the color gamut correction matrix is an RGB combination. For a 3x3 color gamut correction matrix, the first column is usually the RGB combination corresponding to the red component, the second column is usually the RGB combination corresponding to the green component, and the third column is usually the RGB combination corresponding to the blue component.
[0035] The three elements in the first column are the red component, green component and blue component of the red component; the three elements in the first column are the red component, green component and blue component of the green component; the three elements in the third column are the red component, green component and blue component of the blue component.
[0036] 5. Tristimulus values: CIE tristimulus values XYZ is a color space developed by the International Commission on Illumination (CIE) to describe the human eye's color perception of any spectral color. It is obtained by measuring and weighting three standard monochromatic lights (red light, green light and blue light) and an observer's visual response. These three standard monochromatic lights can be accurately measured by photometric methods.
[0037] In order to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application are further described in detail below with reference to the accompanying drawings.
[0038] See also Figure 1 , is a flow chart of a color gamut correction method for an electronic display device provided in an embodiment of the present application, such as Figure 1 As shown, the electronic display device color gamut correction method may include the following steps:
[0039] Step S100, determining a common color gamut between a color gamut to be corrected and a target color gamut; wherein the color gamut to be corrected is the color gamut of the electronic display device to be corrected before correction.
[0040] Exemplarily, the electronic display device to be corrected refers to an electronic display device that requires color gamut correction.
[0041] Exemplarily, the target color gamut may include, but is not limited to, a specified standard color gamut (such as the Bt709 color gamut), or a custom color gamut.
[0042] In the embodiment of the present application, it is considered that part of the color gamut of the electronic display device to be corrected may not be calibrated to the target color gamut (i.e., the electronic display device to be corrected does not completely cover the target color gamut). Therefore, for any electronic display device to be corrected, when the target color gamut is determined, the common color gamut between the color gamut of the electronic display device to be corrected (which may be referred to as the color gamut to be corrected) and the target color gamut can be determined as a new target color gamut, and the color gamut correction can be performed based on the new target color gamut (i.e., the common color gamut) in the subsequent process.
[0043] It should be noted that if the color gamut of the electronic display device to be calibrated fully covers the target color gamut, the target color gamut itself is the common color gamut of the color gamut to be calibrated and the target color gamut.
[0044] Step S110, determining the target RGB brightness components according to the common color gamut and the chromaticity coordinates of the target white point; wherein the target RGB brightness components meet the common color gamut requirements and can be mixed into the target white effect.
[0045] In the embodiment of the present application, during the process of color gamut correction of the electronic display device, it is necessary not only to ensure that the color gamut of the electronic display device meets the requirements, but also to ensure that the mixed color white point color temperature meets the target value (which can be called the target white point color temperature) after the color gamut correction is completed.
[0046] Accordingly, when the common color gamut is determined, the RGB brightness components that meet the common color gamut requirements and can be mixed to form the target white effect (can be called target RGB brightness components) can be determined based on the common color gamut and the chromaticity coordinates of the target white point (can also be called color coordinates, the chromaticity coordinates of the target white point are pre-configured parameters), that is, the target RGB brightness components correspond to the three stimulus values, and the three stimulus values corresponding to the target white point can be obtained by superimposing the three stimulus values. Among them, the three stimulus values corresponding to the target white point can be determined based on the chromaticity coordinates of the target white point.
[0047] Step S120 , determining a rough color gamut correction matrix according to target RGB brightness components, a tristimulus value matrix of the electronic display device to be corrected, and a common color gamut.
[0048] In the embodiment of the present application, when the target RGB brightness component is determined, a rough color gamut correction matrix can be determined according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut.
[0049] For example, since the coarse color gamut correction matrix determined in the above manner is a theoretical value determined under an ideal environment (such as requiring RGB brightness to be completely linear, the chromaticity coordinates of each RGB color component to be consistent, and there is no chromaticity drift, etc.), when the theoretical value is applied to the actual screen, since the actual screen usually cannot meet the requirements of the ideal environment (such as RGB brightness is not completely linear, there is chromaticity shift, etc.), there will be errors between the effect and the theoretical effect. Therefore, the coarse color gamut correction matrix may not be able to correct the color gamut of the electronic display device to be corrected to meet the common color gamut requirements, and may also be unable to mix out the target white effect.
[0050] Step S130, determining the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, and constructing an RGB exhaustive space within the optimal color gamut correction matrix landing range; wherein the RGB exhaustive space supports inferring the color mixing effect corresponding to the RGB combination in the color gamut correction matrix.
[0051] In the embodiment of the present application, the rough color gamut correction matrix can be used to determine the landing point range of the optimal color gamut correction matrix.
[0052] Exemplarily, determining the optimal color gamut correction matrix landing point range may include determining a starting point and an ending point of the optimal color gamut correction matrix landing point range, so as to more accurately know where the optimal point may fall.
[0053] Since the screen color coordinates will change with the grayscale and are limited by the 8-bit precision of the color gamut correction matrix, the color gamut correction matrix with the smallest chromaticity distance from the public color gamut may not be able to mix out the target white effect. Therefore, it is necessary to exhaustively search the RGB exhaustive space to find the optimal point of the correction matrix that meets Bt709 and can mix out the target white effect.
[0054] Accordingly, when the optimal color gamut correction matrix landing point range is determined, an RGB exhaustive space can be constructed within the optimal color gamut correction matrix landing point range.
[0055] For example, in the RGB exhaustive space, the relationship between the color mixing effects of all RGB combinations and the corresponding three stimulus values can be calculated.
[0056] Step S140, searching for an optimal RGB combination from the RGB exhaustive space according to the chromaticity distance between the RGB combination and each color component of the common color gamut, and determining an optimal color gamut correction matrix according to the optimal RGB combination; wherein the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected.
[0057] In the embodiment of the present application, when the RGB exhaustive space is determined, the optimal RGB combination can be searched from the RGB exhaustive space according to the chromaticity distance, and the optimal color gamut correction matrix can be determined according to the optimal RGB combination.
[0058] Exemplarily, the optimal color gamut correction matrix may be used to perform color gamut correction on an electronic display device to be corrected.
[0059] Exemplarily, the optimal color gamut correction matrix can correct the color gamut of the electronic display device to be corrected to meet the common color gamut requirements and can mix out the target white effect.
[0060] It can be seen that in Figure 1 In the method flow shown, by determining the common color gamut of the color gamut to be corrected and the target color gamut, the target RGB brightness component is determined based on the common color gamut and the chromaticity coordinates of the target white point, and the rough color gamut correction matrix is determined based on the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut, the optimal color gamut correction matrix landing point range is determined based on the rough color gamut correction matrix, and an RGB exhaustive space is constructed within the optimal color gamut correction matrix landing point range, and then, the optimal RGB combination can be searched from the RGB exhaustive space based on the chromaticity distance, and the optimal color gamut correction matrix is determined based on the optimal RGB combination. The optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected, and when the color gamut of the electronic display device is corrected to the common color gamut of the color gamut to be corrected and the target color gamut, it is ensured that the electronic display device after the color gamut correction can mix out the target white effect.
[0061] In some embodiments, determining the common color gamut between the color gamut to be corrected and the target color gamut may include:
[0062] In the case where the first color gamut triangle contains the second color gamut triangle, the target color gamut is determined as the common color gamut; wherein the first color gamut triangle is the color gamut triangle corresponding to the color gamut to be corrected, and the second color gamut triangle is the color gamut triangle corresponding to the target color gamut; or,
[0063] When the first color gamut triangle intersects with the second color gamut triangle, a third color gamut triangle is determined according to the intersection of the first color gamut triangle and the second color gamut triangle; wherein the second color gamut triangle contains the third color gamut triangle;
[0064] The color gamut corresponding to the third color gamut triangle is determined as the common color gamut.
[0065] Exemplarily, the color gamut ranges of different devices may be described by a color gamut triangle.
[0066] Exemplarily, the common color gamut may be determined according to the intersection between a color gamut triangle corresponding to the color gamut to be corrected (which may be referred to as a first color gamut triangle) and a color gamut triangle corresponding to the target color gamut (which may be referred to as a second color gamut triangle).
[0067] Exemplarily, when the first color gamut triangle contains the second color gamut triangle, the target color gamut may be determined as the common color gamut.
[0068] When the first color gamut triangle intersects with the second color gamut triangle, the intersection of the first color gamut triangle and the second color gamut triangle can be determined, and based on the intersection of the first color gamut triangle and the second color gamut triangle, the color gamut triangle corresponding to the common color gamut (which can be called the third color gamut triangle) can be determined.
[0069] In an example, determining the third color gamut triangle according to the intersection of the first color gamut triangle and the second color gamut triangle may include:
[0070] From the intersection points of the first color gamut triangle and the second color gamut triangle, query the intersection points corresponding to the vertices of the color gamut triangle;
[0071] For any vertex, if no corresponding intersection point is found, the vertex in the first color gamut triangle and the specified vertex in the second color gamut triangle are determined as the corresponding intersection point; wherein the specified vertex does not exceed the first color gamut triangle and the second color gamut triangle;
[0072] The intersection points corresponding to the vertices are respectively used as the vertices of the candidate color gamut triangle to determine the candidate color gamut triangle;
[0073] The candidate color gamut triangle with the largest area is determined as the third color gamut triangle.
[0074] Exemplarily, the vertices of the color gamut triangle include an R vertex, a G vertex, and a B vertex.
[0075] Exemplarily, when the first color gamut triangle intersects with the second color gamut triangle, the intersection points corresponding to the vertices of the intersection points of the first color gamut triangle and the second color gamut triangle may be determined respectively.
[0076] Exemplarily, the vertex corresponding to the intersection point may be determined based on the chromaticity coordinates of the intersection point.
[0077] Exemplarily, for any intersection, its chromaticity coordinates may be (x, y, z), where z=1-xy. Among them: when the x coordinate value is the largest in the chromaticity coordinates of the intersection, the intersection can be determined to be the intersection corresponding to the R vertex; when the y coordinate value is the largest, the intersection can be determined to be the intersection corresponding to the G vertex; when the z coordinate value is the largest, the intersection can be determined to be the intersection corresponding to the B vertex.
[0078] Exemplarily, for any vertex, when no corresponding intersection point is found, a designated vertex among the vertices in the first color gamut triangle and the vertices in the second color gamut triangle is determined as a corresponding intersection point.
[0079] Exemplarily, the specified vertex does not exceed the first color gamut triangle and the second color gamut triangle.
[0080] For example, if Figure 2 As shown, assuming that triangle 1 is a first color gamut triangle and triangle 2 is a second color gamut triangle, the intersection of triangle 1 and triangle 2 can be determined (circled in the figure), and the intersection corresponding to each vertex can be determined based on the chromaticity coordinates of the intersection.
[0081] like Figure 2 As shown, there are corresponding intersection points for vertices B and R, but there is no corresponding intersection point for vertex G. For vertex G, the G vertex included in triangle 1 and triangle 2 (that is, the G vertex of triangle 2 in the figure) can be determined as the corresponding intersection point (circled in the figure).
[0082] When the intersection points corresponding to the vertices are determined, the intersection points corresponding to the vertices may be used as vertices of the candidate color gamut triangle to determine the candidate color gamut triangle.
[0083] Among them, the three vertices of the candidate color gamut triangle are the intersection point corresponding to the G vertex, the intersection point corresponding to the R vertex, and based on that, the intersection point corresponding to the B vertex.
[0084] The candidate color gamut triangle with the largest area may be determined as the third color gamut triangle.
[0085] In some embodiments, determining the target RGB brightness component based on the common color gamut and the chromaticity coordinates of the target white point may include:
[0086] Determine a brightness normalized tristimulus value matrix corresponding to the common color gamut according to the common color gamut; and determine the tristimulus values corresponding to the target white point according to the chromaticity coordinates of the target white point;
[0087] The target RGB brightness components are determined based on the brightness-normalized tristimulus value matrix and the tristimulus values corresponding to the target white point.
[0088] Exemplarily, when the common color gamut is determined, on the one hand, the brightness-normalized tristimulus value matrix corresponding to the common color gamut can be determined based on the common color gamut; on the other hand, the tristimulus values corresponding to the target white point can be determined based on the chromaticity coordinates of the target white point.
[0089] Furthermore, the target RGB brightness components may be determined according to the brightness-normalized tristimulus value matrix and the tristimulus values corresponding to the target white point.
[0090] Exemplarily, the brightness-normalized tristimulus value matrix corresponding to the common color gamut may be determined based on the red chromaticity coordinate, the green chromaticity coordinate, and the blue chromaticity coordinate of the common color gamut.
[0091] For example, taking the Bt709 color gamut as the common color gamut, the relationship between the brightness normalized tristimulus value matrix, the tristimulus values corresponding to the target white point, and the target RGB brightness components can be as follows:
[0092]
[0093] in, The RGB tristimulus value matrix that conforms to Bt709 and is brightness normalized. is the target RGB brightness component, are the tristimulus values corresponding to the target white point.
[0094] in, It can be determined based on the red chromaticity coordinates, green chromaticity coordinates and blue chromaticity coordinates of Bt709.
[0095]
[0096] in, , is the red chromaticity coordinate of Bt709, , is the green chromaticity coordinate of Bt709, , is the blue chromaticity coordinate of Bt709.
[0097] In some embodiments, determining the rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut may include:
[0098] Determine a standard tristimulus value matrix according to the brightness normalized tristimulus value matrix and the target RGB brightness component; wherein the brightness normalized tristimulus value matrix is determined according to a common color gamut;
[0099] Determine a gain matrix according to the tristimulus value matrix of the electronic display device to be calibrated and the standard tristimulus value matrix;
[0100] A rough color gamut correction matrix is determined according to the gain matrix.
[0101] Exemplarily, a brightness-normalized tristimulus value matrix corresponding to the common color gamut may be determined based on the common color gamut, and a standard tristimulus value matrix may be determined based on the brightness-normalized tristimulus value matrix and target RGB brightness components.
[0102] For example, the tristimulus value matrix (i.e., the above-mentioned standard tristimulus value matrix) that can mix colors to produce the target white effect can be obtained by multiplying the brightness-normalized tristimulus value matrix corresponding to the common color domain by the respective brightness components.
[0103] Exemplarily, the gain matrix may be determined according to a tristimulus value matrix of the electronic display device to be calibrated and a standard tristimulus value matrix.
[0104] For example, the relationship between the tristimulus value matrix of the electronic display device to be calibrated, the standard tristimulus value matrix, and the gain matrix may be as follows:
[0105]
[0106] in, is the tristimulus value matrix of the electronic display device to be corrected, is the gain matrix, is the tristimulus value matrix under the common color gamut and target white point (that is, the standard tristimulus value matrix mentioned above).
[0107] Exemplarily, when a gain matrix is obtained, a rough color gamut correction matrix may be determined according to the gain matrix.
[0108] Among them, since the value range of each element in the gain matrix is determined to be 0~1 according to the above method, and the screen cannot support the writing of floating-point numbers, it is necessary to convert the gain matrix into a rough color gamut correction matrix according to the screen accuracy, that is, multiply each element in the gain matrix by 2 n -1 (n is the screen precision) and rounded (for example, by rounding off).
[0109] For example, for a screen with a screen precision of 8 bits, it supports 0~255 (2 8 -1=255), each element in the gain matrix can be multiplied by 255 and rounded to get a rough color gamut correction matrix.
[0110] In some embodiments, determining the optimal color gamut correction matrix drop point range based on the rough color gamut correction matrix may include:
[0111] Determine the location of the rough color gamut correction matrix according to the rough color gamut correction matrix;
[0112] Determine the rough tristimulus values corresponding to the landing position of the rough color gamut correction matrix;
[0113] For any color channel component of any color channel component of the white screen in the color gamut correction matrix, when the accurate tristimulus value is greater than the coarse tristimulus value, the optimal color gamut correction matrix landing point range is determined according to the tristimulus value corresponding to the maximum value of the component, the landing point position corresponding to the maximum value of the component, the coarse tristimulus value corresponding to the landing point position of the coarse color gamut correction matrix, the landing point position of the coarse color gamut correction matrix, and the accurate tristimulus value; or
[0114] When the accurate stimulation value is less than the rough tristimulus value, the optimal color gamut correction matrix landing point range is determined according to the tristimulus value corresponding to the minimum value of the component, the landing point position corresponding to the minimum value of the component, the rough tristimulus value corresponding to the landing point position of the rough color gamut correction matrix, the landing point position of the rough color gamut correction matrix, and the accurate tristimulus value.
[0115] Exemplarily, determining the optimal color gamut correction matrix landing point range mainly determines the starting point and the ending point of the range. The core of determining the starting point and the ending point is to know more accurately where the optimal point may fall. Although the grayscale in the ideal color gamut correction matrix has a large error, the optimal point always falls near the ideal matrix.
[0116] Exemplarily, when the coarse color gamut correction matrix is determined, the landing point of the coarse color gamut correction matrix can be determined according to the coarse color gamut correction matrix, and the coarse tristimulus values corresponding to the landing point of the coarse color gamut correction matrix can be determined according to the coarse color gamut correction matrix.
[0117] The rough tristimulus values and the accurate tristimulus values can be compared, and the optimal color gamut correction matrix landing range can be determined based on the comparison results.
[0118] Exemplarily, for any color channel component of any color channel component of a white screen in a color gamut correction matrix, when the accurate tristimulus value is greater than the coarse tristimulus value, the optimal color gamut correction matrix landing point range can be determined according to the tristimulus value corresponding to the maximum value of the component, the landing point position corresponding to the maximum value of the component, the coarse tristimulus value corresponding to the landing point position of the coarse color gamut correction matrix, the landing point position of the coarse color gamut correction matrix, and the accurate tristimulus value; or,
[0119] When the accurate tristimulus values are less than the coarse tristimulus values, the optimal color gamut correction matrix landing point range can be determined based on the tristimulus values corresponding to the minimum value of the component, the landing point position corresponding to the minimum value of the component, the coarse tristimulus values corresponding to the landing point position of the coarse color gamut correction matrix, the landing point position of the coarse color gamut correction matrix, and the accurate tristimulus values.
[0120] For example, the white screen in the color gamut matrix (that is, the red component mixed into white) component (i.e. the red component of the red component) as an example, it is known The tristimulus value when the component is 0 is , The tristimulus value when the component is 255 is , and the rough color gamut correction matrix landing position (i.e., the value of the r component of the R component of the rough color gamut correction matrix) and the accurate tristimulus value Among them, the accurate three stimulus values It can be determined based on the chromaticity coordinates of the target white point and the common color gamut.
[0121] In addition, according to the test experiments on the screen, The components are roughly linearly related to the corresponding tristimulus values X, and the same is true for the other components.
[0122] Therefore, it is possible to measure The corresponding rough tristimulus values are . and compare and size.
[0123] like , then about (i.e., the value of the r component of the R component of the rough color gamut correction matrix), and (i.e. the maximum value of the r component is 255), Building a linear equation ,Will and ,as well as, and Substituting into the linear equation, we can get and , and then the accurate three stimulus values Substituting into the above linear equation, the obtained r value is the exact landing point position. Finally, Centered on arrive The distance is , then the starting point can be obtained and end point (That is, the optimal color gamut correction matrix r component landing range).
[0124] like , then about (i.e., the value of the r component of the R component of the rough color gamut correction matrix), and (i.e. the minimum value of the r component is 0), Building a linear equation , the remaining operations and subsequent operations of other components are the same as the above steps.
[0125] In some embodiments, constructing the RGB exhaustive space within the optimal color gamut matrix landing point range may include:
[0126] According to the starting point and the ending point of the optimal color gamut correction matrix array landing point range, the tristimulus values of the starting point and the tristimulus values of the ending point are determined respectively;
[0127] According to the tristimulus values of the starting point and the tristimulus values of the ending point, the RGB exhaustive space is constructed using the tristimulus value superposition principle.
[0128] For example, since the screen color coordinates will change with the grayscale and are limited by the 8-bit precision of the color gamut correction matrix, the mixed colors mixed by the color gamut correction matrix with the smallest chromaticity distance from the common color gamut may not necessarily meet the target white effect. Therefore, it is necessary to exhaustively enumerate the RGB exhaustive space to find the optimal point where the color gamut meets the common color gamut requirements and can mix the target white effect.
[0129] Accordingly, the tristimulus values of the starting point and the tristimulus values of the ending point can be determined respectively according to the starting point and the ending point of the optimal color gamut correction matrix landing range, and the color space correction can be performed based on the tristimulus values of the starting point and the tristimulus values of the ending point, and then the RGB exhaustive space can be constructed using the tristimulus value superposition principle.
[0130] For example, the RGB exhaustive space can be Figure 3 As shown, taking the RGB components that make up red as an example, the optimal point must fall between the starting point P0 and the ending point P1. Among them, the red components of P0 and P1 can be divided by the starting point and end point OK, the same goes for the green and blue components.
[0131] Among them, points P0 and P1 are the diagonal vertices of the cube (such as Figure 3 As shown in the figure, P0 is the starting point and P1 is the end point. Because it is in three-dimensional space, P1 is determined by the three coordinate values of RGB. Therefore, it is necessary to determine the starting chromaticity coordinates (such as the starting red chromaticity coordinates, the starting blue chromaticity coordinates or the starting green chromaticity coordinates) and the end point chromaticity coordinates of each color component respectively.
[0132] By measuring the tristimulus value information of the starting point and the tristimulus value information of the ending point, for any color component, the tristimulus values of the starting point and the tristimulus values of the ending point of the color component can be used as the diagonal vertices of the cube to construct a cube. The cube is the RGB exhaustive space of the color component (the RGB combination of the component in the optimal color gamut correction matrix will fall into this space).
[0133] Based on the RGB exhaustive space of each color component mentioned above, the RGB combination of each color component that meets the chromaticity distance condition (such as the chromaticity distance of the same color component with the common color domain is less than a preset threshold value) can be searched respectively. Then, according to the principle of tristimulus value superposition (that is, the tristimulus value of the mixed white can be obtained by superposition of the tristimulus values of the R component, the G component and the B component), the RGB combination of each color component whose chromaticity distance with the target point meets the chromaticity distance condition (such as less than a preset threshold value) can be further screened. Then, based on the sum of the chromaticity distance of the RGB combination of each color component and the chromaticity distance of the same color component with the common color domain, and the chromaticity distance between the mixed white and the target white point (one color component corresponds to one distance, and white corresponds to one distance), the RGB combination of each color component with the smallest sum of the distances can be determined as the RGB combination constituting the optimal color gamut correction matrix.
[0134] In some embodiments, searching for the optimal RGB combination from the RGB exhaustive space based on the chromaticity distance between the RGB combination and each color component of the common color gamut, and determining the optimal color gamut correction matrix based on the optimal RGB combination may include:
[0135] Searching for a first RGB combination, a second RGB combination, and a third RGB combination in the RGB exhaustive space respectively; wherein the chromaticity distance between the first RGB combination and the common color gamut red is less than a first threshold, the chromaticity distance between the second RGB combination and the common color gamut green is less than a second threshold, and the chromaticity distance between the third RGB combination and the common color gamut blue is less than a third threshold;
[0136] Determine a first candidate RGB combination, a second candidate RGB combination, and a third candidate RGB combination from the first RGB combination, the second RGB combination, and the third RGB combination; wherein the chromaticity distance between the candidate white and the target white point is less than a fourth threshold, and the candidate white is obtained by mixing a first RGB combination, a second RGB combination, and a third RGB combination;
[0137] For any first candidate RGB combination, any second candidate RGB combination, any third candidate RGB combination, and the corresponding candidate white, determine the sum of the candidate chromaticity distances; wherein the sum of the candidate chromaticity distances is the sum of the chromaticity distance between the first candidate RGB combination and the common color gamut red, the chromaticity distance between the second candidate RGB combination and the common color gamut green, the chromaticity distance between the third candidate RGB combination and the common color gamut blue, and the chromaticity distance between the candidate white and the target white point;
[0138] An optimal color gamut correction matrix is determined based on the first target RGB combination, the second target RGB combination, and the third target RGB combination; wherein the first target RGB combination, the second target RGB combination, and the third target RGB combination are the first candidate RGB combination, the second candidate RGB combination, and the third candidate RGB combination whose corresponding sum of candidate chromaticity distances is the smallest.
[0139] Exemplarily, an RGB combination (which may be referred to as a first RGB combination) whose chromaticity distance with the common color gamut red is less than a preset threshold (which may be referred to as the first threshold), an RGB combination (which may be referred to as a second RGB combination) whose chromaticity distance with the common color gamut green is less than a preset threshold (which may be referred to as the second threshold), and an RGB combination (which may be referred to as a third RGB combination) whose chromaticity distance with the common color gamut blue is less than a preset threshold (which may be referred to as the second threshold) may be searched in the RGB exhaustive space respectively.
[0140] Exemplarily, the first threshold, the second threshold, and the third threshold may be completely the same, partially the same, or completely different.
[0141] For example, taking the Bt709 color gamut as the common color gamut, all RGB combinations whose distance to the Bt709 red chromaticity is less than 0.003 (taking the first threshold value of 0.003 as an example) can be screened out in the process of exhausting the red RGB exhaustive space (i.e., the first RGB combination mentioned above). Similarly, similar screening processes are performed in the green RGB exhaustive space and the blue RGB exhaustive space.
[0142] Exemplarily, when the first RGB combination, the second RGB combination and the third RGB combination are determined, the first RGB combination, the second RGB combination and the third RGB combination (which may be referred to as the first candidate RGB combination, the second candidate RGB combination and the third candidate RGB combination, respectively) in which the chromaticity distance between the mixed white (which may be referred to as the candidate white) and the target white point is less than a preset threshold value (which may be referred to as the fourth threshold value) can be determined from the first RGB combination, the second RGB combination and the third RGB combination.
[0143] When the first candidate RGB combination, the second candidate RGB combination and the third candidate RGB combination are determined, for any first candidate RGB combination, any second candidate RGB combination, any third candidate RGB combination, and the corresponding candidate white (i.e., the white obtained by mixing the first candidate RGB combination, the second candidate RGB combination and the third candidate RGB combination), determine the sum of the candidate chromaticity distances.
[0144] Furthermore, the optimal color gamut correction matrix can be determined based on the first candidate RGB combination, the second candidate RGB combination and the third candidate target RGB combination (which can be referred to as the first target RGB combination, the second target RGB combination and the third target RGB combination) with the smallest sum of corresponding candidate chromaticity distances.
[0145] Exemplarily, the chromaticity distance may be determined by:
[0146]
[0147] Where x and y represent the measured chromaticity coordinates. , Represents the target chromaticity coordinates.
[0148] Since the value of the z coordinate in the chromaticity coordinates satisfies: z=1-xy, the size relationship between the chromaticity distances determined in the above manner based on x and y can represent the size relationship between the chromaticity distances determined based on x, y and z.
[0149] Exemplary, tristimulus value superposition principle: given red R, green G, and blue B, the tristimulus value of white can be mixed by the following formula:
[0150]
[0151] The method provided by the present application is described above. The device provided by the present application is described below:
[0152] See also Figure 4 , is a schematic diagram of the structure of a color gamut correction device for an electronic display device provided in an embodiment of the present application, such as Figure 4As shown, the electronic display device color gamut correction device may include:
[0153] A first determining unit 410 is used to determine a common color gamut between a color gamut to be corrected and a target color gamut; wherein the color gamut to be corrected is a color gamut before correction of the electronic display device to be corrected;
[0154] A second determination unit 420 is used to determine a target RGB brightness component according to the common color gamut and the chromaticity coordinates of the target white point; wherein the target RGB brightness component meets the common color gamut requirements and can be mixed into a target white effect;
[0155] A third determining unit 430 is used to determine a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut;
[0156] A construction unit 440 is used to determine the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, and construct an RGB exhaustive space within the optimal color gamut correction matrix landing range; wherein the RGB exhaustive space supports the calculation of the color mixing effects corresponding to the RGB combinations in all color gamut correction matrices;
[0157] The fourth determination unit 450 is used to search for an optimal RGB combination from the RGB exhaustive space according to the chromaticity distance between the RGB combination and each color component of the common color gamut, and determine an optimal color gamut correction matrix according to the optimal RGB combination; wherein the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected.
[0158] In some embodiments, the first determining unit 410 determines a common color gamut between the color gamut to be corrected and the target color gamut, including:
[0159] In the case where the first color gamut triangle contains the second color gamut triangle, the target color gamut is determined as a common color gamut; wherein the first color gamut triangle is the color gamut triangle corresponding to the color gamut to be corrected, and the second color gamut triangle is the color gamut triangle corresponding to the target color gamut; or
[0160] When the first color gamut triangle intersects with the second color gamut triangle, a third color gamut triangle is determined according to the intersection of the first color gamut triangle and the second color gamut triangle; wherein the second color gamut triangle includes the third color gamut triangle;
[0161] The color gamut corresponding to the third color gamut triangle is determined as a common color gamut. In some embodiments, the first determining unit 410 determines the third color gamut triangle according to the intersection of the first color gamut triangle and the second color gamut triangle, including:
[0162] Query the intersection points corresponding to the vertices of the color gamut triangle from the intersection points of the first color gamut triangle and the second color gamut triangle;
[0163] For any vertex, if no corresponding intersection point is found, the vertex in the first color gamut triangle and a specified vertex in the second color gamut triangle are determined as corresponding intersection points; wherein the specified vertex does not exceed the first color gamut triangle and the second color gamut triangle;
[0164] The intersection points corresponding to the vertices are respectively used as the vertices of the candidate color gamut triangle to determine the candidate color gamut triangle;
[0165] The candidate color gamut triangle with the largest area is determined as the third color gamut triangle.
[0166] In some embodiments, the second determining unit 420 determines the target RGB brightness component according to the common color gamut and the chromaticity coordinates of the target white point, including:
[0167] Determine, based on the common color gamut, a brightness-normalized tristimulus value matrix corresponding to the common color gamut; and determine, based on the chromaticity coordinates of the target white point, tristimulus values corresponding to the target white point;
[0168] The target RGB brightness components are determined according to the brightness-normalized tristimulus value matrix and the tristimulus values corresponding to the target white point.
[0169] In some embodiments, the third determination unit 430 determines a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut, including:
[0170] Determining a standard tristimulus value matrix according to the brightness normalized tristimulus value matrix and the target RGB brightness component; wherein the brightness normalized tristimulus value matrix is determined according to the common color gamut;
[0171] Determining a gain matrix according to the tristimulus value matrix of the electronic display device to be corrected and the standard tristimulus value matrix;
[0172] A rough color gamut correction matrix is determined according to the gain matrix.
[0173] In some embodiments, the construction unit 440 determines the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, including:
[0174] Determine the location of the rough color gamut correction matrix according to the rough color gamut correction matrix;
[0175] Determine the rough tristimulus values corresponding to the landing position of the rough color gamut correction matrix;
[0176] For any color channel component of any color channel component of the white screen in the color gamut correction matrix, when the accurate tristimulus value is greater than the coarse tristimulus value corresponding to the landing position of the coarse color gamut correction matrix, determine the optimal color gamut correction matrix landing range according to the tristimulus value corresponding to the maximum value of the component, the landing position corresponding to the maximum value of the component, the coarse tristimulus value corresponding to the landing position of the coarse color gamut correction matrix, the landing position of the coarse color gamut correction matrix, and the accurate tristimulus value; or
[0177] When the accurate tristimulus values are less than the rough tristimulus values, the optimal color gamut correction matrix landing range is determined according to the tristimulus values corresponding to the minimum value of the component, the landing point position corresponding to the minimum value of the component, the rough tristimulus values corresponding to the landing point position of the rough color gamut correction matrix, the landing point position of the rough color gamut correction matrix, and the accurate tristimulus values.
[0178] In some embodiments, the construction unit 440 constructs an RGB exhaustive space within the optimal color gamut correction matrix landing point range, including:
[0179] According to the starting point and the ending point of the optimal color gamut correction matrix landing point range, the tristimulus value of the starting point and the tristimulus value of the ending point are determined respectively;
[0180] According to the tristimulus values of each color component at the starting point and the tristimulus values at the ending point, an RGB exhaustive space is constructed by utilizing the tristimulus value superposition principle.
[0181] In some embodiments, the fourth determination unit 450 searches for an optimal RGB combination from the RGB exhaustive space according to the chromaticity distance between the RGB combination and each color component of the common color gamut, and determines an optimal color gamut correction matrix according to the optimal RGB combination, including:
[0182] Searching for a first RGB combination, a second RGB combination, and a third RGB combination in the RGB exhaustive space respectively; wherein the chromaticity distance between the first RGB combination and the common color gamut red is less than a first threshold, the chromaticity distance between the second RGB combination and the common color gamut green is less than a second threshold, and the chromaticity distance between the third RGB combination and the common color gamut blue is less than a third threshold;
[0183] Determine a first candidate RGB combination, a second candidate RGB combination, and a third candidate RGB combination from the first RGB combination, the second RGB combination, and the third RGB combination; wherein the chromaticity distance between the candidate white and the target white point is less than a fourth threshold, and the candidate white is obtained by mixing a first RGB combination, a second RGB combination, and a third RGB combination;
[0184] For any first candidate RGB combination, any second candidate RGB combination, any third candidate RGB combination, and the corresponding candidate white, determine the sum of the candidate chromaticity distances; wherein the sum of the candidate chromaticity distances is the sum of the chromaticity distance between the first candidate RGB combination and the common color gamut red, the chromaticity distance between the second candidate RGB combination and the common color gamut green, the chromaticity distance between the third candidate RGB combination and the common color gamut blue, and the chromaticity distance between the candidate white and the target white point;
[0185] The first target RGB combination, the second target RGB combination and the third target RGB combination are determined as the optimal RGB combination, and the optimal color gamut correction matrix is determined based on the first target RGB combination, the second target RGB combination and the third target RGB combination; wherein the first target RGB combination, the second target RGB combination and the third target RGB combination are the first candidate RGB combination, the second candidate RGB combination and the third candidate RGB combination with the smallest sum of corresponding candidate chromaticity distances.
[0186] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory is used to store computer programs; the processor is used to implement the color gamut correction method of the electronic display device described above when executing the program stored in the memory.
[0187] See also Figure 5 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 501 and a memory 502 storing machine executable instructions. The processor 501 and the memory 502 may communicate via a system bus 503. In addition, by reading and executing the machine executable instructions corresponding to the color gamut correction logic of the electronic display device in the memory 502, the processor 501 may execute the color gamut correction method of the electronic display device described above.
[0188] The memory 502 mentioned herein may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (RadomAccess Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0189] In some embodiments, a machine-readable storage medium is also provided. Figure 5 The memory 502 in the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the color gamut correction method of the electronic display device described above is implemented. For example, the machine-readable storage medium can be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0190] An embodiment of the present application also provides a computer program product, which stores a computer program and, when a processor executes the computer program, prompts the processor to execute the color gamut correction method for an electronic display device described above.
Claims
1. A method for color gamut correction of an electronic display device, It is characterized in that include: Determine a common color gamut between a color gamut to be corrected and a target color gamut; wherein the color gamut to be corrected is a color gamut before correction of the electronic display device to be corrected; Determining a target RGB brightness component based on the common color gamut and the chromaticity coordinates of the target white point; wherein the target RGB brightness component meets the common color gamut requirements and can be mixed into a target white effect; Determine a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut; Determine the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, and construct an RGB exhaustive space within the optimal color gamut correction matrix landing range; wherein the RGB exhaustive space supports the calculation of the color mixing effects corresponding to the RGB combinations in all color gamut correction matrices; According to the chromaticity distance between the RGB combination and each color component of the common color gamut, an optimal RGB combination is searched from the RGB exhaustive space, and an optimal color gamut correction matrix is determined according to the optimal RGB combination; wherein the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected.
2. The method according to claim 1, It is characterized in that The determining of a common color gamut between the color gamut to be corrected and the target color gamut comprises: In the case where the first color gamut triangle contains the second color gamut triangle, the target color gamut is determined as a common color gamut; wherein the first color gamut triangle is the color gamut triangle corresponding to the color gamut to be corrected, and the second color gamut triangle is the color gamut triangle corresponding to the target color gamut; or When the first color gamut triangle intersects with the second color gamut triangle, a third color gamut triangle is determined according to the intersection of the first color gamut triangle and the second color gamut triangle; wherein the second color gamut triangle includes the third color gamut triangle; The color gamut corresponding to the third color gamut triangle is determined as the common color gamut.
3. The method according to claim 2, It is characterized in that The determining a third color gamut triangle according to the intersection of the first color gamut triangle and the second color gamut triangle comprises: Query the intersection points corresponding to the vertices of the color gamut triangle from the intersection points of the first color gamut triangle and the second color gamut triangle; For any vertex, if no corresponding intersection point is found, the vertex in the first color gamut triangle and a specified vertex in the second color gamut triangle are determined as corresponding intersection points; wherein the specified vertex does not exceed the first color gamut triangle and the second color gamut triangle; The intersection points corresponding to the vertices are respectively used as the vertices of the candidate color gamut triangle to determine the candidate color gamut triangle; The candidate color gamut triangle with the largest area is determined as the third color gamut triangle.
4. The method according to claim 1, It is characterized in that Determining the target RGB brightness component according to the common color gamut and the chromaticity coordinates of the target white point includes: Determine, based on the common color gamut, a brightness-normalized tristimulus value matrix corresponding to the common color gamut; and determine, based on the chromaticity coordinates of the target white point, tristimulus values corresponding to the target white point; The target RGB brightness components are determined according to the brightness-normalized tristimulus value matrix and the tristimulus values corresponding to the target white point.
5. The method according to claim 1, It is characterized in that The step of determining a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut comprises: Determining a standard tristimulus value matrix according to the brightness normalized tristimulus value matrix and the target RGB brightness component; wherein the brightness normalized tristimulus value matrix is determined according to the common color gamut; Determining a gain matrix according to the tristimulus value matrix of the electronic display device to be corrected and the standard tristimulus value matrix; A rough color gamut correction matrix is determined according to the gain matrix.
6. The method according to claim 1, It is characterized in that The step of determining the optimal color gamut correction matrix landing point range according to the rough color gamut correction matrix includes: Determine the location of the rough color gamut correction matrix according to the rough color gamut correction matrix; Determine the rough tristimulus values corresponding to the landing position of the rough color gamut correction matrix; For any color channel component of any color channel component of the white screen in the color gamut correction matrix, when the accurate tristimulus value is greater than the coarse tristimulus value corresponding to the landing position of the coarse color gamut correction matrix, the optimal color gamut correction matrix landing range is determined according to the tristimulus value corresponding to the maximum value of the component, the landing position corresponding to the maximum value of the component, the coarse tristimulus value corresponding to the landing position of the coarse color gamut correction matrix, the landing position of the coarse color gamut correction matrix, and the accurate tristimulus value; or, When the accurate tristimulus values are smaller than the coarse tristimulus values corresponding to the landing position of the coarse color gamut correction matrix, the optimal color gamut correction matrix landing range is determined according to the tristimulus values corresponding to the minimum value of the component, the landing position corresponding to the minimum value of the component, the coarse tristimulus values corresponding to the landing position of the coarse color gamut correction matrix, the landing position of the coarse color gamut correction matrix, and the accurate tristimulus values.
7. The method according to claim 1, It is characterized in that The constructing of the RGB exhaustive space within the optimal color gamut correction matrix landing point range includes: According to the starting point and the ending point of the optimal color gamut correction matrix landing point range, respectively determine the tristimulus value of the starting point and the tristimulus value of the ending point; According to the tristimulus values of each color component at the starting point and the tristimulus values at the ending point, an RGB exhaustive space is constructed by utilizing the tristimulus value superposition principle.
8. The method according to claim 1, It is characterized in that The step of searching for an optimal RGB combination from the RGB exhaustive space according to the chromaticity distance between the RGB combination and each color component of the common color gamut, and determining an optimal color gamut correction matrix according to the optimal RGB combination, comprises: Searching for a first RGB combination, a second RGB combination, and a third RGB combination in the RGB exhaustive space respectively; wherein the chromaticity distance between the first RGB combination and the common color gamut red is less than a first threshold, the chromaticity distance between the second RGB combination and the common color gamut green is less than a second threshold, and the chromaticity distance between the third RGB combination and the common color gamut blue is less than a third threshold; Determine a first candidate RGB combination, a second candidate RGB combination, and a third candidate RGB combination from the first RGB combination, the second RGB combination, and the third RGB combination; wherein the chromaticity distance between the candidate white and the target white point is less than a fourth threshold, and the candidate white is obtained by mixing a first RGB combination, a second RGB combination, and a third RGB combination; For any first candidate RGB combination, any second candidate RGB combination, any third candidate RGB combination, and the corresponding candidate white, determine the sum of the candidate chromaticity distances; wherein the sum of the candidate chromaticity distances is the sum of the chromaticity distance between the first candidate RGB combination and the common color gamut red, the chromaticity distance between the second candidate RGB combination and the common color gamut green, the chromaticity distance between the third candidate RGB combination and the common color gamut blue, and the chromaticity distance between the candidate white and the target white point; The first target RGB combination, the second target RGB combination and the third target RGB combination are determined as the optimal RGB combination, and the optimal color gamut correction matrix is determined based on the first target RGB combination, the second target RGB combination and the third target RGB combination; wherein the first target RGB combination, the second target RGB combination and the third target RGB combination are the first candidate RGB combination, the second candidate RGB combination and the third candidate RGB combination with the smallest sum of corresponding candidate chromaticity distances.
9. A color gamut correction device for an electronic display device, It is characterized in that include: A first determining unit is used to determine a common color gamut between a color gamut to be corrected and a target color gamut; wherein the color gamut to be corrected is a color gamut before correction of the electronic display device to be corrected; A second determination unit is used to determine a target RGB brightness component according to the common color gamut and the chromaticity coordinates of the target white point; wherein the target RGB brightness component meets the common color gamut requirements and can be mixed into a target white effect; A third determining unit, configured to determine a rough color gamut correction matrix according to the target RGB brightness component, the tristimulus value matrix of the electronic display device to be corrected, and the common color gamut; A construction unit, used to determine the optimal color gamut correction matrix landing range according to the rough color gamut correction matrix, and construct an RGB exhaustive space within the optimal color gamut correction matrix landing range; wherein the RGB exhaustive space supports the calculation of the color mixing effects corresponding to the RGB combinations in all color gamut correction matrices; The fourth determination unit is used to search for an optimal RGB combination from the RGB exhaustive space according to the chromaticity distance between the RGB combination and each color component of the common color gamut, and determine an optimal color gamut correction matrix according to the optimal RGB combination; wherein the optimal color gamut correction matrix is used to perform color gamut correction on the electronic display device to be corrected.
10. An electronic device, It is characterized in that comprising a processor and a memory, wherein: Memory, used to store computer programs; A processor, for implementing the method according to any one of claims 1 to 8 when executing a program stored in a memory.
11. A computer program product, It is characterized in that The computer program product stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
