Color gamut conversion method and device, computer equipment and storage medium

By introducing coordinates of the target color temperature and original color temperature in the color gamut conversion, the target conversion coefficient is calculated, and the problems of low color temperature adjustment efficiency and poor accuracy in the existing technology are solved, and efficient and accurate color temperature adjustment is achieved.

CN119418671APending Publication Date: 2025-02-11XIAN QINGSONG PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310926710.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

During the color gamut conversion, the color temperature adjustment efficiency is low and the accuracy is poor, so repeated trials and tries to collect proportional coefficients.

Method used

By obtaining the target color temperature, target brightness, original color temperature and original brightness, determine the coordinates in the three stimulus range, calculate the target conversion coefficient, and perform color gamut conversion to adjust the color temperature.

Benefits of technology

It improves the efficiency and accuracy of color temperature adjustment, avoids repeated trial and collection, and ensures the accuracy of color temperature adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119418671A_ABST
    Figure CN119418671A_ABST
Patent Text Reader

Abstract

The invention provides a color gamut conversion method and device, computer equipment and a storage medium, and the method comprises the steps: determining a first target coordinate in a tristimulus value domain according to a target color temperature and first target brightness corresponding to the target color temperature; determining a first original coordinate in the tristimulus value domain according to the original color temperature of the display screen and the first original brightness corresponding to the original color temperature, and determining a second original coordinate in the tristimulus value domain according to the original color gamut of the display screen and the second original brightness corresponding to the original color gamut; obtaining a target conversion coefficient according to the target color gamut, the first target coordinate, the second target coordinate, the first original coordinate, the second original coordinate and the first target brightness; and according to the target conversion coefficient, performing color gamut conversion on the to-be-converted color coordinates of the obtained image data to obtain target color coordinates. Repeated trial and error are not needed, and the efficiency of color temperature adjustment is improved; and the color temperature adjustment is based on the expected target color temperature, so that the color temperature adjustment precision is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image display technology, and in particular to a color gamut conversion method, device, computer equipment and storage medium. Background Art

[0002] The current display screen is implemented with the color mixing principle of RGB three colors, and the maximum brightness and wavelength range of each single-phase color of the display screen can be emitted by the light-emitting materials and driving methods of its electronic devices, which are the rated parameters that cannot be easily changed. Usually, due to various factors of the display screen, the actual displayed color will be inconsistent with the color defined by the original RGB parameters, resulting in poor display effect. Therefore, it is necessary to perform color gamut conversion to adjust the original RGB parameters of the image to overcome the problem that the color actually displayed by the display screen is inconsistent with the color defined by the original RGB parameters.

[0003] However, in the prior art, when color gamut conversion is performed, the color temperature can only be adjusted by repeatedly trying the proportional coefficient after the conversion coefficient is obtained, which is inefficient and has poor accuracy. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a color gamut conversion method, device, computer equipment and storage medium.

[0005] In a first aspect, in one embodiment, the present invention provides a color gamut conversion method, comprising:

[0006] Determine the first target coordinates in the tristimulus value domain according to the acquired target color temperature and the first target brightness corresponding to the target color temperature;

[0007] Determine a first original coordinate in the tristimulus value domain according to the acquired original color temperature of the display screen and a first original brightness corresponding to the original color temperature, and determine a second original coordinate in the tristimulus value domain according to an original color domain of the display screen and a second original brightness corresponding to the original color domain;

[0008] Obtaining a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the second target coordinates, the first original coordinates, the second original coordinates, and the first target brightness;

[0009] According to the target conversion coefficient, the color coordinates to be converted of the acquired image data are converted into a color gamut to obtain the target color coordinates.

[0010] In one embodiment, a target conversion coefficient of the color coordinate to be converted is obtained according to the target color gamut, the first target coordinate, the first original coordinate, the second original coordinate and the first target brightness, including:

[0011] According to the target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness, an initial conversion coefficient of the color coordinates to be converted and a second target brightness corresponding to the target color gamut are obtained;

[0012] Compare each single-phase brightness in the second target brightness with the corresponding single-phase brightness in the second original brightness;

[0013] If at least one single-phase brightness in the second target brightness is greater than the corresponding single-phase brightness in the second original brightness, the second target brightness is attenuated to obtain a modified brightness corresponding to the second target brightness; each single-phase brightness in the modified brightness is not greater than the corresponding single-phase brightness in the second original brightness;

[0014] A target conversion coefficient is obtained according to the corrected brightness, the target color gamut, the first target coordinate, the first original coordinate, and the second original coordinate.

[0015] In one embodiment, performing attenuation processing on the second target brightness includes:

[0016] According to the magnitude relationship of each single-phase brightness in the second target brightness, determining the attenuation amount of each single-phase brightness in the second target brightness;

[0017] Attenuation processing is performed on each single-phase brightness in the second target brightness according to the attenuation amount of each single-phase brightness in the second target brightness.

[0018] In one embodiment, according to the magnitude relationship of each single-phase brightness in the second target brightness, determining the attenuation amount of each single-phase brightness in the second target brightness includes:

[0019] According to the ratio between the brightness values ​​of each single-phase brightness in the second target brightness, the attenuation amount of each single-phase brightness in the second target brightness is determined.

[0020] In one embodiment, according to the target conversion coefficient, the color coordinates to be converted are converted to obtain the target color coordinates, including:

[0021] According to the target conversion coefficient, the color coordinates to be converted are converted to a color gamut to obtain intermediate color coordinates;

[0022] Compare the intermediate color coordinates with the original color gamut;

[0023] If there are abnormal color coordinates exceeding the original color gamut in the intermediate color coordinates, negative boundary processing is performed on the abnormal color coordinates in the intermediate color coordinates to obtain the target color coordinates.

[0024] In one embodiment, negative boundary processing is performed on abnormal color coordinates in the intermediate color coordinates, including:

[0025] For each abnormal color coordinate, determine the target color gamut boundary line closest to the abnormal color coordinate in the original color gamut, determine the target boundary color coordinate on the target color gamut boundary line, and replace the abnormal color coordinate with the target boundary color coordinate.

[0026] In one embodiment, determining the target boundary color coordinates on the boundary line of the target color gamut includes:

[0027] Determine the perpendicular color coordinates between the abnormal color coordinates and the target color gamut boundary line;

[0028] The vertical color coordinates are determined as the target boundary color coordinates.

[0029] In a second aspect, in one embodiment, the present invention provides a color gamut conversion device, comprising:

[0030] A first coordinate determination module, used to determine the first target coordinates in the tristimulus value domain according to the acquired target color temperature and the first target brightness corresponding to the target color temperature;

[0031] A second coordinate determination module is used to determine the first original coordinates in the tristimulus value domain according to the acquired original color temperature of the display screen and the first original brightness corresponding to the original color temperature, and to determine the second original coordinates in the tristimulus value domain according to the original color domain of the display screen and the second original brightness corresponding to the original color domain;

[0032] A coefficient determination module, used for obtaining a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness;

[0033] The color gamut conversion module is used to perform color gamut conversion on the to-be-converted color coordinates of the acquired image data according to the target conversion coefficient to obtain the target color coordinates.

[0034] In a third aspect, in one embodiment, the present invention provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the color gamut conversion method in any of the above embodiments.

[0035] In a fourth aspect, in one embodiment, the present invention provides a storage medium storing a computer program, and the computer program is loaded by a processor to execute the steps in the color gamut conversion method in any of the above embodiments.

[0036] Through the above-mentioned color gamut conversion method, device, computer equipment and storage medium, in the process of obtaining the target conversion coefficient, the desired target color temperature, the first target brightness corresponding to the target color temperature, the original color temperature of the display screen, and the first original brightness corresponding to the original color temperature are introduced, so that after the color coordinates are subsequently converted into a color gamut according to the target conversion coefficient, since the mapping relationship between the target color temperature and the original color temperature is reflected in the target conversion coefficient, the color temperature adjustment is also completed synchronously, without repeated trial and error, thereby improving the efficiency of the color temperature adjustment; and the color temperature adjustment is based on the desired target color temperature, thereby also improving the accuracy of the color temperature adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 A schematic diagram of an application scenario of a color gamut conversion method in an embodiment of the present invention;

[0039] Figure 2 Schematic diagram of a color gamut conversion method according to an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of the relationship between the target color gamut and the original color gamut in one embodiment of the present invention;

[0041] Figure 4 A schematic diagram of the relationship between the target color gamut and the original color gamut in another embodiment of the present invention;

[0042] Figure 5 A schematic diagram of the structure of a color gamut conversion device in one embodiment of the present invention;

[0043] Figure 6 The figure is a schematic diagram of the internal structure of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0045] In the description of the present invention, it should be understood that the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any person skilled in the art to implement and use the present invention, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present invention obscure. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

[0046] The color gamut conversion method in the embodiment of the present invention is applied to a color gamut conversion device, and the color gamut conversion device is arranged in a computer device; the computer device can be a terminal, such as a mobile phone or a tablet computer, and the computer device can also be a server, or a service cluster composed of multiple servers.

[0047] like Figure 1 As shown, Figure 1 This is a schematic diagram of an application scenario of the color gamut conversion method in an embodiment of the present invention. The application scenario of the color gamut conversion method in an embodiment of the present invention includes a computer device 100 (a color gamut conversion device is integrated in the computer device 100), and a computer-readable storage medium corresponding to the color gamut conversion method is run in the computer device 100 to execute the steps of the color gamut conversion method.

[0048] Understandably, Figure 1 The computer device in the application scenario of the color gamut conversion method shown, or the device included in the computer device, does not constitute a limitation on the embodiments of the present invention, that is, the number of devices and types of devices included in the application scenario of the color gamut conversion method, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present invention.

[0049] The computer device 100 in the embodiment of the present invention may be an independent device, or a device network or device cluster composed of devices. For example, the computer device 100 described in the embodiment of the present invention includes but is not limited to a computer, a network host, a single network device, a plurality of network devices, or a cloud device composed of a plurality of devices. The cloud device is composed of a large number of computers or network devices based on cloud computing.

[0050] Those skilled in the art will understand that Figure 1 The application scenario shown in the figure is only an application scenario corresponding to the technical solution of the present invention, and does not constitute a limitation on the application scenario of the technical solution of the present invention. Other application scenarios may also include Figure 1 More or fewer computer devices shown in, or computer device network connection relationships, such as Figure 1 Only one computer device is shown. It can be understood that the scenario of the color gamut conversion method can also include one or more other computer devices, which are not specifically limited here. The computer device 100 can also include a memory for storing information related to the color gamut conversion method.

[0051] In addition, in the application scenario of the color gamut conversion method in the embodiment of the present invention, the computer device 100 may be provided with a display device, or the computer device 100 may not be provided with a display device and may be connected to an external display device 200 for communication, and the display device 200 is used to output the result of the color gamut conversion method executed in the computer device. The computer device 100 may access a backend database 300 (the backend database 300 may be a local memory of the computer device 100, or the backend database 300 may also be provided in the cloud), and the backend database 300 may store information related to the color gamut conversion method.

[0052] It should be noted that Figure 1 The application scenario of the color gamut conversion method shown is only an example. The application scenario of the color gamut conversion method described in the embodiment of the present invention is to more clearly illustrate the technical solution of the embodiment of the present invention, and does not constitute a limitation on the technical solution provided by the embodiment of the present invention.

[0053] Based on the application scenario of the above color gamut conversion method, an embodiment of the color gamut conversion method is proposed.

[0054] First, as Figure 2 As shown, in one embodiment, the present invention provides a color gamut conversion method, comprising:

[0055] Step 201, determining a first target coordinate in a tristimulus value domain according to the acquired target color temperature and a first target brightness corresponding to the target color temperature;

[0056] Before determining the first target coordinates, the target color temperature and the corresponding first target brightness need to be obtained, and the target color gamut also needs to be obtained;

[0057] Among them, target parameters such as target color temperature, first target brightness and target color gamut are input by the user according to his own needs;

[0058] Among them, the color gamut refers to the color coordinate range in the xyL domain (brightness (Y) and chromaticity (x, y) are used to describe color, brightness (Y) indicates the brightness of the color, chromaticity x and y correspond to the horizontal and vertical coordinates of the color respectively), which is expressed by the maximum color coordinates corresponding to the three single colors R, G, and B. The color temperature refers to the color coordinates obtained by mixing the three single colors R, G, and B in the color gamut at the maximum brightness (that is, the color coordinates of W, which can also be called the color coordinates of white), and the brightness corresponding to the color temperature refers to the brightness obtained by mixing the three single colors R, G, and B in the color gamut at the maximum brightness, that is, the color coordinates and corresponding brightness obtained by mixing the three single colors R, G, and B in the color gamut at the maximum brightness are used as the color temperature and the brightness corresponding to the color temperature respectively;

[0059] Among them, the display screen is directly displayed based on the RGB domain, and the RGB domain cannot be used as the basis for color gamut conversion in this embodiment, for example, color temperature and brightness cannot be specified. Therefore, in this embodiment, it is necessary to obtain various parameters in the xyL domain;

[0060] Among them, the target color temperature is the color temperature input by the user or selected from the preset color temperature table; similarly, the first target brightness is the brightness input by the user or selected from the preset brightness table and corresponding to the color temperature; similarly, the target color gamut is the color gamut input by the user or selected from the preset color gamut table; specifically, the target color temperature, the first target brightness and the target color gamut can be expressed as shown in Table 1:

[0061] Table 1

[0062]

[0063] In Table 1, R' represents the maximum value of R in the RGB domain, which is represented by the color coordinates (xr', yr') in the xyL domain, G' represents the maximum value of G in the RGB domain, which is represented by the color coordinates (xg', yg') in the xyL domain, B' represents the maximum value of B in the RGB domain, which is represented by the color coordinates (xb', yb') in the xyL domain, W' represents the white color obtained by mixing R', G', and B' at the maximum brightness, which is represented by the color coordinates (xw', yw') in the xyL domain, and Lw' represents the first target brightness; It should be noted that since the color coordinates and corresponding brightness obtained by mixing the three single colors R, G, and B in the color gamut at the maximum brightness are respectively used as the color temperature and the brightness corresponding to the color temperature, after specifying the first target brightness corresponding to the target color temperature, there is no need to specify the second target brightness corresponding to the target color gamut, that is, the second target brightness depends on the first target brightness. On the basis of determining the first target brightness, the second target brightness can be obtained through the relevant mapping relationship later, that is, the current second target brightness Lr', Lg', and Lb' are all unknown parameters;

[0064] Among them, the tristimulus value domain (XYZ domain) refers to the way the human eye perceives color, using three basic stimuli to describe the feeling of all colors; these three basic stimuli are related to the three colors of red (R), green (G), and blue (B) in the RGB domain, so they are also called RGB tristimulus values; usually we can get the desired color by adjusting the intensity of these three colors; in the tristimulus value domain, each color can be described by three numbers, which are represented as X, Y, and Z; through these numbers, we can know the performance of a specific color in three basic dimensions; in order to facilitate calculations and introduce the required functional relationships, the parameters in the xyL domain need to be converted to the XYZ domain; specifically, based on the conversion formula from the xyL domain to the XYZ domain (i.e., formula 1) and the first target coordinates obtained according to the target color temperature and the first target brightness, they can be expressed in the XYZ domain as shown in Table 2:

[0065]

[0066] Table 2

[0067]

[0068] Among them, the first target coordinates obtained according to the target color temperature (xw', yw') and the first target brightness Lw' are expressed as (Xw', Yw', Zw') in the XYZ domain; it should be noted that since the second target brightness corresponding to the target color gamut is not specified, when converting to the XYZ domain, the second target coordinates in the XYZ domain cannot be directly obtained according to the target color gamut and the second target brightness corresponding to the target color gamut, that is, in the XYZ domain, the second target coordinates (Xr', Y r', Z r'), (X g', Y g', Z g'), (Xb', Y b', Z b') are all unknown parameters;

[0069] Step 202, determining a first original coordinate in the tristimulus value domain according to the acquired original color temperature of the display screen and a first original brightness corresponding to the original color temperature, and determining a second original coordinate in the tristimulus value domain according to an original color domain of the display screen and a second original brightness corresponding to the original color domain;

[0070] Among them, the original color temperature, the original color gamut, the first original brightness and the second original brightness are all rated parameters of the display screen. Therefore, when specifying the target parameters, the rated parameters need to be used as the upper limit, especially the brightness. For example, if the first original brightness is Lw and the first target brightness is Lw', then Lw' is not greater than Lw. Specifically, the original color temperature, the first original brightness, the original color gamut and the second original brightness can be expressed as shown in Table 3:

[0071] Table 3

[0072]

[0073] In Table 3, R represents the maximum value of R in the RGB domain, which is represented by the color coordinates (xr, yr) in the xyL domain, G represents the maximum value of G in the RGB domain, which is represented by the color coordinates (xg, yg) in the xyL domain, B represents the maximum value of B in the RGB domain, which is represented by the color coordinates (xb, yb) in the xyL domain, W represents the white color obtained by mixing R, G, and B at the maximum brightness, which is represented by the color coordinates (xw, yw) in the xyL domain, Lw represents the first original brightness, Lr represents the brightness corresponding to R in the second original brightness, Lg represents the brightness corresponding to G in the second original brightness, and Lb represents the brightness corresponding to B in the second original brightness;

[0074] Among them, the relationship between the target color gamut and the original color gamut can be as follows Figure 3 As shown, in Figure 3 In the example, the original color gamut completely covers the target color gamut;

[0075] Among them, consistent with the above target parameters, the original parameters also need to be converted from the xyL domain to the XYZ domain; specifically, based on the conversion formula from the xyL domain to the XYZ domain (i.e., Formula 1) and the first original coordinates obtained according to the original color temperature and the first original brightness and the second original coordinates obtained according to the original color domain and the second original brightness can be expressed in the XYZ domain as shown in Table 4:

[0076] Table 4

[0077]

[0078] Wherein, the first original coordinate obtained according to the original color temperature (xw, yw) and the first original brightness Lw is expressed as (Xw, Yw, Zw) in the XYZ domain, the first sub-original coordinate in the second original coordinate obtained according to the first sub-original color gamut (xr, yr) in the original color gamut and the first sub-original brightness Lr in the second original brightness is expressed as (Xr, Yr, Zr) in the XYZ domain, the second sub-original coordinate in the second original coordinate obtained according to the second sub-original color gamut (xg, yg) in the original color gamut and the second sub-original brightness Lg in the second original brightness is expressed as (Xg, Yg, Zg) in the XYZ domain, and the third sub-original coordinate in the second original coordinate obtained according to the third sub-original color gamut (xb, yb) in the original color gamut and the third sub-original brightness Lb in the second original brightness is expressed as (Xb, Yb, Zb) in the XYZ domain;

[0079] Step 203, obtaining a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness;

[0080] Assume that the initial conversion factor is:

[0081]

[0082] Assume that the second target coordinates corresponding to the target color gamut and the second target brightness are:

[0083]

[0084] It is known that the second original coordinates corresponding to the original color gamut and the second original brightness are:

[0085]

[0086] Then you can define:

[0087]

[0088] Right now:

[0089]

[0090]

[0091]

[0092] According to formula 1, we can get:

[0093]

[0094] Yr'=Lr'

[0095]

[0096]

[0097] Yg'=Lg'

[0098]

[0099]

[0100] Yb'=Lb'

[0101]

[0102] As mentioned above, the color coordinates and corresponding brightness obtained by mixing the three single colors R, G, and B in the color gamut at maximum brightness are used as the color temperature and the brightness corresponding to the color temperature, respectively, so they can also be combined:

[0103] Lw'=Lr'+Lg'+Lb';

[0104]

[0105] Finally, the initial conversion coefficients Rr, Rg, Rb, Gr, Gg, Gb, Br, Bg, Bb and the second target brightness Lr', Lg', Lb' are obtained. If other factors are not considered, the obtained initial conversion coefficients can be directly determined as the target conversion coefficients;

[0106] Step 204, performing color gamut conversion on the to-be-converted color coordinates of the acquired image data according to the target conversion coefficient to obtain the target color coordinates;

[0107] The image data to be displayed is RGB parameters in the RGB domain, such as a pixel (222, 165, 203) represented by 8 bits, and the target conversion coefficient is implemented based on the XYZ domain. Therefore, it is also necessary to convert it to the XYZ domain to obtain the corresponding color coordinates to be converted, and then perform color gamut conversion on the color coordinates to be converted according to the target conversion coefficients to obtain the corresponding target color coordinates. Finally, the target image data in the RGB domain is restored according to the target color coordinates and the target image data is displayed.

[0108] Through the above-mentioned color gamut conversion method, in the process of obtaining the target conversion coefficient, the desired target color temperature, the first target brightness corresponding to the target color temperature, the original color temperature of the display screen, and the first original brightness corresponding to the original color temperature are introduced, so that after the color coordinates are subsequently converted into a color gamut according to the target conversion coefficient, since the mapping relationship between the target color temperature and the original color temperature is reflected in the target conversion coefficient, the color temperature adjustment is also completed synchronously, without repeated trial and error, thereby improving the efficiency of the color temperature adjustment; and the color temperature adjustment is based on the desired target color temperature, thereby also improving the accuracy of the color temperature adjustment.

[0109] In one embodiment, a target conversion coefficient of the color coordinate to be converted is obtained according to the target color gamut, the first target coordinate, the first original coordinate, the second original coordinate and the first target brightness, including:

[0110] According to the target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness, an initial conversion coefficient of the color coordinates to be converted and a second target brightness corresponding to the target color gamut are obtained;

[0111] From the calculation process of the above embodiment, it can be known that in addition to obtaining the initial conversion coefficient, the second target brightness Lr', Lg', Lb' can also be obtained;

[0112] Compare each single-phase brightness in the second target brightness with the corresponding single-phase brightness in the second original brightness;

[0113] Among them, the above embodiment has mentioned that the specified first target brightness Lw' is not greater than the first original brightness Lw of the display screen. Similarly, the obtained second target brightness Lr', Lg', Lb' cannot be greater than the second original brightness Lr, Lg, Lb of the display screen (when the specified first target brightness Lw' is close to or equal to the first original brightness Lw, it is easy for the second target brightness Lr', Lg', Lb' to be greater than the second original brightness Lr, Lg, Lb). Therefore, it is necessary to compare Lr' in the second target brightness with Lr in the second original brightness, compare Lg' in the second target brightness with Lg in the second original brightness, and compare Lb' in the second target brightness with Lb in the second original brightness;

[0114] If at least one single-phase brightness in the second target brightness is greater than the corresponding single-phase brightness in the second original brightness, the second target brightness is attenuated to obtain a modified brightness corresponding to the second target brightness; each single-phase brightness in the modified brightness is not greater than the corresponding single-phase brightness in the second original brightness;

[0115] Among them, after the attenuation processing, each single-phase brightness in the obtained modified brightness is not greater than the corresponding single-phase brightness in the second original brightness. If the obtained modified brightness is Lr", Lg", Lb", that is, Lr"≤Lr, Lg"≤Lg', Lb"≤Lb;

[0116] Obtaining a target conversion coefficient according to the corrected brightness, the target color gamut, the first target coordinate, the first original coordinate, and the second original coordinate;

[0117] After obtaining the corrected brightness, the corrected brightness can be used as a known parameter of the second target brightness in the above calculation process, and recalculated to obtain the corresponding target conversion coefficient;

[0118] Substituting the corrected brightness into the calculation process in the above embodiment, we can obtain:

[0119]

[0120]

[0121]

[0122] That is, the target conversion coefficient is obtained:

[0123]

[0124] It can be understood that the target conversion coefficient is calculated based on the corrected brightness. Therefore, when the target conversion coefficient is used for color gamut conversion in the subsequent process, the problem of brightness exceeding the rated value and causing abnormal display will not occur. In addition, when performing brightness correction, the present embodiment fully uses the second original brightness as the upper limit, and can directly determine the corrected brightness that meets the requirements. Compared with the prior art that adjusts according to the ratio between adjacent coefficients, it can also avoid repeated trial and error, thereby improving the efficiency of brightness correction.

[0125] In one embodiment, performing attenuation processing on the second target brightness includes:

[0126] According to the magnitude relationship of each single-phase brightness in the second target brightness, determining the attenuation amount of each single-phase brightness in the second target brightness;

[0127] The purpose of the attenuation processing is to make each single-phase brightness in the obtained corrected brightness not greater than the corresponding single-phase brightness in the second original brightness; based on this condition, there are many ways of attenuation processing, such as only attenuating the single-phase brightness in the second target brightness that is greater than the corresponding single-phase brightness in the second original brightness, but this method will affect the color temperature, and ultimately reduce the chromaticity accuracy of the image display, that is, reduce the image display effect; therefore, for this situation, this embodiment can first determine the corresponding attenuation weight according to the size relationship of each single-phase brightness in the second target brightness, and the attenuation weight represents the attenuation degree of each single-phase brightness, thereby avoiding attenuating a single-phase brightness alone; for example, in the second target brightness, Lr>Lg>Lb, then the determined attenuation weight is kr>kg>kb;

[0128] Among them, after the attenuation weight is determined, the corresponding attenuation amount can be calculated according to the attenuation weight and the brightness value of each single-phase brightness in the second target brightness; specifically, the attenuation amount of Lr in the second target brightness is Lr*kr, the attenuation amount of Lg in the second target brightness is Lg*kg, and the attenuation amount of Lb in the second target brightness is Lb*kb;

[0129] Attenuation processing is performed on each single-phase brightness in the second target brightness according to the attenuation amount of each single-phase brightness in the second target brightness.

[0130] The corresponding attenuation weight is determined by the size relationship of each single-phase brightness in the second target brightness, and attenuation is performed according to the attenuation weight, so that the single-phase brightness in the second target brightness is attenuated synergistically, thereby ensuring the accuracy of color temperature to a certain extent, improving the chromaticity accuracy of image display, that is, improving the image display effect.

[0131] In one embodiment, according to the magnitude relationship of each single-phase brightness in the second target brightness, determining the attenuation amount of each single-phase brightness in the second target brightness includes:

[0132] Determine the attenuation of each single-phase brightness in the second target brightness according to the ratio between the brightness values ​​of each single-phase brightness in the second target brightness;

[0133] Among them, although the attenuation weight has been determined according to the magnitude relationship of each single-phase brightness in the second target brightness in the above embodiment, this method can only guarantee the accuracy of the color temperature to a certain extent, and cannot be 100%; therefore, in this embodiment, for this situation, the attenuation weight is determined directly according to the brightness value of each single-phase brightness in the second target brightness, so as to ensure that the attenuation degree of each single-phase brightness in the second target brightness is consistent, that is, the relationship between the corrected brightness and the second target brightness can be expressed as Lr”:Lg”:Lb”=Lr':Lg':Lb'.

[0134] In one embodiment, according to the target conversion coefficient, the color coordinates to be converted are converted to obtain the target color coordinates, including:

[0135] According to the target conversion coefficient, the color coordinates to be converted are converted to a color gamut to obtain intermediate color coordinates;

[0136] Compare the intermediate color coordinates with the original color gamut;

[0137] Among them, the intermediate color coordinates are the representation of the color coordinates to be converted in the xyL domain, and the intermediate color coordinates refer to the color coordinates of each single phase corresponding to each pixel point;

[0138] If there are abnormal color coordinates in the intermediate color coordinates that exceed the original color gamut, negative boundary processing is performed on the abnormal color coordinates in the intermediate color coordinates to obtain the target color coordinates;

[0139] Among them, when the specified target color gamut itself exceeds the original color gamut, and the color coordinates of the to-be-converted color coordinates of the image data to be displayed in the xyL domain are just at the boundary of the original color gamut, then after the color gamut conversion, the color coordinates represented in the xyL domain are likely to exceed the original color gamut; if the relationship between the target color gamut and the original color gamut is as follows Figure 4 As shown, when the color coordinates of the color coordinates to be converted in the xyL domain are close to (xg, yg), after the color gamut conversion, the color coordinates represented in the xyL domain are also close to (xg', yg'), so that an exceeding situation may occur easily; it can be understood that due to the physical limitation of the absolute chromaticity of the three phase colors of the display screen, that is, the light-emitting device cannot emit light of negative brightness, therefore, in this embodiment, it is necessary to perform negative boundary processing on the abnormal color coordinates exceeding the original color gamut in view of this situation, so that the color coordinates of the obtained target color coordinates in the xyL domain do not exceed the original color gamut.

[0140] In one embodiment, negative boundary processing is performed on abnormal color coordinates in the intermediate color coordinates, including:

[0141] For each abnormal color coordinate, determine the target color gamut boundary line closest to the abnormal color coordinate in the original color gamut, determine the target boundary color coordinate on the target color gamut boundary line, and replace the abnormal color coordinate with the target boundary color coordinate;

[0142] Among them, the original color gamut includes three color gamut boundary lines, such as Figure 4As shown, the three color gamut boundary lines are the red-green color gamut boundary line (xr, yr)-(xg, yg), the green-blue color gamut boundary line (xg, yg)-(xb, yb), and the blue-red color gamut boundary line (xb, yb)-(xr, yr). If the abnormal color coordinate is (xg', yg'), the green-blue color gamut boundary line (xg, yg)-(xb, yb) is the closest target color gamut boundary line, and all color coordinates on the target color gamut boundary line are used as boundary color coordinates, and finally one of the boundary color coordinates is determined as the target boundary color coordinate.

[0143] By determining the target boundary color coordinates on the color gamut boundary line to replace the abnormal color coordinates, the problem of negative boundaries is solved and the accuracy of the chromaticity corresponding to the abnormal color coordinates is guaranteed to a large extent.

[0144] In one embodiment, determining the target boundary color coordinates on the boundary line of the target color gamut includes:

[0145] Determine the perpendicular color coordinates between the abnormal color coordinates and the target color gamut boundary line;

[0146] Determine the vertical color coordinate as the target boundary color coordinate;

[0147] Among them, the perpendicular line segment from the point to the line is the shortest distance. Therefore, in this embodiment, the perpendicular color coordinates of the abnormal color coordinates and the target color gamut boundary line are directly determined and the perpendicular color coordinates are determined as the target boundary color coordinates, which maximizes the accuracy of the abnormal color coordinates corresponding to the chromaticity.

[0148] Second, as Figure 5 As shown, in one embodiment, the present invention provides a color gamut conversion device, comprising:

[0149] A first coordinate determination module 301 is used to determine the first target coordinates in the tristimulus value domain according to the acquired target color temperature and the first target brightness corresponding to the target color temperature;

[0150] A second coordinate determination module 302 is used to determine a first original coordinate in a tristimulus value domain according to the acquired original color temperature of the display screen and a first original brightness corresponding to the original color temperature, and to determine a second original coordinate in the tristimulus value domain according to an original color domain of the display screen and a second original brightness corresponding to the original color domain;

[0151] A coefficient determination module 303 is used to obtain a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness;

[0152] The color gamut conversion module 304 is used to perform color gamut conversion on the to-be-converted color coordinates of the acquired image data according to the target conversion coefficient to obtain the target color coordinates.

[0153] Through the above-mentioned color gamut conversion device, in the process of obtaining the target conversion coefficient, the desired target color temperature, the first target brightness corresponding to the target color temperature, the original color temperature of the display screen, and the first original brightness corresponding to the original color temperature are introduced, so that after the color coordinates are subsequently converted into a color gamut according to the target conversion coefficient, since the mapping relationship between the target color temperature and the original color temperature is reflected in the target conversion coefficient, the color temperature adjustment is also completed synchronously, without repeated trial and error, thereby improving the efficiency of the color temperature adjustment; and the color temperature adjustment is based on the desired target color temperature, thereby also improving the accuracy of the color temperature adjustment.

[0154] In one embodiment, the coefficient determination module is specifically used to obtain the initial conversion coefficient of the color coordinates to be converted and the second target brightness corresponding to the target color gamut according to the target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness; each single-phase brightness in the second target brightness is compared with the corresponding single-phase brightness in the second original brightness; if at least one single-phase brightness in the second target brightness is greater than the corresponding single-phase brightness in the second original brightness, the second target brightness is attenuated to obtain a corrected brightness corresponding to the second target brightness; each single-phase brightness in the corrected brightness is not greater than the corresponding single-phase brightness in the second original brightness; the target conversion coefficient is obtained according to the corrected brightness, the target color gamut, the first target coordinates, the first original coordinates and the second original coordinates.

[0155] In one embodiment, the coefficient determination module determines the attenuation of each single-phase brightness in the second target brightness according to the size relationship of each single-phase brightness in the second target brightness; and performs attenuation processing on each single-phase brightness in the second target brightness according to the attenuation of each single-phase brightness in the second target brightness.

[0156] In one embodiment, the coefficient determination module is specifically used to determine the attenuation amount of each single-phase brightness in the second target brightness according to the ratio between the brightness values ​​of each single-phase brightness in the second target brightness.

[0157] In one embodiment, the color gamut conversion module is specifically used to perform color gamut conversion on the color coordinates to be converted according to the target conversion coefficient to obtain intermediate color coordinates; compare the intermediate color coordinates with the original color gamut; if there are abnormal color coordinates in the intermediate color coordinates that exceed the original color gamut, negative boundary processing is performed on the abnormal color coordinates in the intermediate color coordinates to obtain the target color coordinates.

[0158] In one embodiment, the color gamut conversion module is specifically used to determine, for each abnormal color coordinate, a target color gamut boundary line closest to the abnormal color coordinate in the original color gamut, determine a target boundary color coordinate on the target color gamut boundary line, and replace the abnormal color coordinate with the target boundary color coordinate.

[0159] In one embodiment, the color gamut conversion module is specifically used to determine the perpendicular color coordinates between the abnormal color coordinates and the target color gamut boundary line; and determine the perpendicular color coordinates as the target boundary color coordinates.

[0160] In a third aspect, in one embodiment, the present invention provides a computer device, such as Figure 6 As shown, it shows the structure of the computer device involved in the present invention, specifically:

[0161] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 6 The structure of the computer device shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0162] The processor 401 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and computer programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.

[0163] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0164] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0165] The computer device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0166] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 will run the computer program stored in the memory 402 to perform the following steps:

[0167] Determine the first target coordinates in the tristimulus value domain according to the acquired target color temperature and the first target brightness corresponding to the target color temperature;

[0168] Determine a first original coordinate in the tristimulus value domain according to the acquired original color temperature of the display screen and a first original brightness corresponding to the original color temperature, and determine a second original coordinate in the tristimulus value domain according to an original color domain of the display screen and a second original brightness corresponding to the original color domain;

[0169] Obtaining a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the second target coordinates, the first original coordinates, the second original coordinates, and the first target brightness;

[0170] According to the target conversion coefficient, the color coordinates to be converted of the acquired image data are converted into a color gamut to obtain the target color coordinates.

[0171] Through the above-mentioned computer device, in the process of obtaining the target conversion coefficient, the desired target color temperature, the first target brightness corresponding to the target color temperature, the original color temperature of the display screen, and the first original brightness corresponding to the original color temperature are introduced, so that after the color gamut conversion of the color coordinates is subsequently performed according to the target conversion coefficient, since the mapping relationship between the target color temperature and the original color temperature is reflected in the target conversion coefficient, the color temperature adjustment is also completed synchronously, without repeated trial and error, thereby improving the efficiency of the color temperature adjustment; and the color temperature adjustment is based on the desired target color temperature, thereby also improving the accuracy of the color temperature adjustment.

[0172] A person of ordinary skill in the art will appreciate that all or part of the steps in any of the methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0173] In a fourth aspect, in one embodiment, the present invention provides a storage medium storing a plurality of computer programs, wherein the computer programs can be loaded by a processor to perform the following steps:

[0174] Determine the first target coordinates in the tristimulus value domain according to the acquired target color temperature and the first target brightness corresponding to the target color temperature;

[0175] Determine a first original coordinate in the tristimulus value domain according to the acquired original color temperature of the display screen and a first original brightness corresponding to the original color temperature, and determine a second original coordinate in the tristimulus value domain according to an original color domain of the display screen and a second original brightness corresponding to the original color domain;

[0176] Obtaining a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the second target coordinates, the first original coordinates, the second original coordinates, and the first target brightness;

[0177] According to the target conversion coefficient, the color coordinates to be converted of the acquired image data are converted into a color gamut to obtain the target color coordinates.

[0178] Through the above storage medium, in the process of obtaining the target conversion coefficient, the desired target color temperature, the first target brightness corresponding to the target color temperature, the original color temperature of the display screen, and the first original brightness corresponding to the original color temperature are introduced, so that after the color coordinates are subsequently converted into a color gamut according to the target conversion coefficient, since the mapping relationship between the target color temperature and the original color temperature is reflected in the target conversion coefficient, the color temperature adjustment is also completed synchronously, without repeated trial and error, thereby improving the efficiency of the color temperature adjustment; and the color temperature adjustment is based on the desired target color temperature, thereby also improving the accuracy of the color temperature adjustment.

[0179] It will be appreciated by those skilled in the art that any reference to memory, storage, database or other medium used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0180] Since the computer program stored in the storage medium can execute the steps in the color gamut conversion method in any embodiment provided by the present invention, the beneficial effects that can be achieved by the color gamut conversion method in any embodiment provided by the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0181] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0182] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0183] The above is a detailed introduction to a color gamut conversion method, device, computer equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0184] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

Claims

1. A color gamut conversion method, characterized in that: include: Determine the first target coordinates in the tristimulus value domain according to the acquired target color temperature and the first target brightness corresponding to the target color temperature; Determine the first original coordinates in the tristimulus value domain according to the acquired original color temperature of the display screen and the first original brightness corresponding to the original color temperature, and determine the second original coordinates in the tristimulus value domain according to the original color domain of the display screen and the second original brightness corresponding to the original color domain; Obtaining a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the first original coordinates, the second original coordinates, and the first target brightness; According to the target conversion coefficient, the color coordinates to be converted of the acquired image data are converted into a color gamut to obtain the target color coordinates.

2. The color gamut conversion method according to claim 1, characterized in that: The step of obtaining a target conversion coefficient of the color coordinates to be converted according to the target color gamut, the first target coordinates, the first original coordinates, the second original coordinates, and the first target brightness includes: According to the target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness, an initial conversion coefficient of the color coordinates to be converted and a second target brightness corresponding to the target color gamut are obtained; Comparing each single-phase brightness in the second target brightness with the corresponding single-phase brightness in the second original brightness; If at least one single-phase brightness in the second target brightness is greater than the corresponding single-phase brightness in the second original brightness, the second target brightness is attenuated to obtain a modified brightness corresponding to the second target brightness; each single-phase brightness in the modified brightness is not greater than the corresponding single-phase brightness in the second original brightness; The target conversion coefficient is obtained according to the corrected brightness, the target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness.

3. The color gamut conversion method according to claim 2, characterized in that: The attenuating the brightness of the second target includes: Determine the attenuation of each single-phase brightness in the second target brightness according to the magnitude relationship of each single-phase brightness in the second target brightness; Attenuation processing is performed on each single-phase brightness in the second target brightness according to the attenuation amount of each single-phase brightness in the second target brightness.

4. The color gamut conversion method according to claim 3, characterized in that: The determining, according to the magnitude relationship of each single-phase brightness in the second target brightness, to obtain the attenuation amount of each single-phase brightness in the second target brightness includes: According to the ratio between the brightness values ​​of each single-phase brightness in the second target brightness, the attenuation amount of each single-phase brightness in the second target brightness is determined.

5. The color gamut conversion method according to claim 1, characterized in that: The step of performing color gamut conversion on the color coordinates to be converted according to the target conversion coefficient to obtain the target color coordinates includes: According to the target conversion coefficient, the color coordinates to be converted are converted to obtain intermediate color coordinates; Comparing the intermediate color coordinates with the original color gamut; If there are abnormal color coordinates exceeding the original color gamut in the intermediate color coordinates, negative boundary processing is performed on the abnormal color coordinates in the intermediate color coordinates to obtain the target color coordinates.

6. The color gamut conversion method according to claim 5, characterized in that: The performing negative boundary processing on the abnormal color coordinates in the intermediate color coordinates includes: For each abnormal color coordinate, determine the target color gamut boundary line closest to the abnormal color coordinate in the original color gamut, determine the target boundary color coordinate on the target color gamut boundary line, and replace the abnormal color coordinate with the target boundary color coordinate.

7. The color gamut conversion method according to claim 6, characterized in that: The determining of the target boundary color coordinates on the boundary line of the target color gamut includes: Determine the perpendicular color coordinates of the abnormal color coordinates and the target color gamut boundary line; The vertical color coordinate is determined as the target boundary color coordinate.

8. A color gamut conversion device, characterized in that: include: A first coordinate determination module, used to determine a first target coordinate in a tristimulus value domain according to the acquired target color temperature and a first target brightness corresponding to the target color temperature; a second coordinate determination module, configured to determine a first original coordinate in the tristimulus value domain according to the acquired original color temperature of the display screen and a first original brightness corresponding to the original color temperature, and to determine a second original coordinate in the tristimulus value domain according to an original color domain of the display screen and a second original brightness corresponding to the original color domain; a coefficient determination module, configured to obtain a target conversion coefficient according to the acquired target color gamut, the first target coordinates, the first original coordinates, the second original coordinates and the first target brightness; The color gamut conversion module is used to perform color gamut conversion on the to-be-converted color coordinates of the acquired image data according to the target conversion coefficient to obtain the target color coordinates.

9. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the steps in the color gamut conversion method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is loaded by a processor to execute the steps in the color gamut conversion method according to any one of claims 1 to 7.