Color gamut conversion method, apparatus, computer device, computer storage medium and computer program product
By using color gamut conversion methods and algorithms, the problem of lamps being unable to fully display sRGB color gamut colors has been solved, achieving continuous and accurate display of pattern colors on lamps, ensuring complete presentation of pattern colors and reducing color distortion.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- SUZHOU OPPLE LIGHTING
- Filing Date
- 2025-11-17
- Publication Date
- 2026-05-21
Smart Images

Figure CN2025135354_21052026_PF_FP_ABST
Abstract
Description
Color gamut conversion methods, apparatus, computer equipment, computer storage media and computer program products
[0001] This application claims priority to Chinese Patent Application No. 202411648812.7, filed on November 18, 2024, entitled "Color Gamut Conversion Method, Apparatus and Computer Equipment", the contents of which are incorporated herein by reference in part. Technical Field
[0002] This application relates to the field of color display technology, and in particular to a color gamut conversion method, apparatus, computer equipment, computer storage medium, and computer program product. Background Technology
[0003] A surface light source lamp composed of multi-pixel point light sources can display colored patterns. In actual operation, an image can be selected by computer or mobile phone, and the corresponding point color coordinate information can be selected on the pattern according to the distribution position of the pixel light sources on the lamp, so that the lamp pixels display the corresponding colors to realize the display of the image pattern.
[0004] However, images on computers and mobile phones are usually based on the sRGB color gamut, while the color coordinates of the LEDs selected in lamps may not be the standard sRGB color gamut coordinates. This means that the color gamut of the lamp may not be able to fully display all the colors in the sRGB color gamut, resulting in a difference between the pattern seen by the user on the computer and mobile phone and the actual effect displayed by the lamp. Summary of the Invention
[0005] This application provides a color gamut conversion method, apparatus, computer equipment, computer storage medium, and computer program product, which can convert a portion of a pattern exceeding the sRGB color gamut of an image into the color gamut of a lamp, ensuring the continuity of the overall pattern color presented by the lamp and effectively reducing color distortion.
[0006] On the one hand, embodiments of this application provide a color gamut conversion method, including:
[0007] Obtain pixel information and color gamut information of the target image;
[0008] Determine whether the color gamut information meets the conditions for the effective color gamut of the display device;
[0009] If not, obtain the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values;
[0010] Based on the color gamut conversion algorithm, the target color gamut information is determined according to the color gamut information and the effective color gamut, and the target pixel information is determined according to the target color gamut information;
[0011] The target pixel information is sent to the display device for display.
[0012] In one possible implementation, determining whether the color gamut information meets the conditions for the effective color gamut of the display device includes:
[0013] The color gamut information is compared with the effective color gamut range of the display device;
[0014] If the color gamut range corresponding to the color gamut information is smaller than the color gamut range of the effective color gamut, then the condition is determined not to be met.
[0015] In one possible implementation, obtaining the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values, includes:
[0016] The pixel values of the target image are obtained based on the pixel information: the first R value, the first G value, and the first B value;
[0017] The pixel value is converted into color coordinates using a first transformation matrix, and the pixel brightness value is determined based on the first R value, the first G value, and the first B value.
[0018] In one possible implementation, the color gamut conversion algorithm determines the target color gamut information based on the chromaticity information and the effective color gamut, including:
[0019] The effective color gamut is processed to obtain a first conversion region, a second conversion region, and a third conversion region;
[0020] Based on the three color gamut ranges corresponding to the color coordinates and the first conversion region, the second conversion region and the third conversion region, the proportional relationships between each pair are determined respectively;
[0021] A color gamut conversion algorithm is used to convert the color coordinates and pixel brightness values based on the proportional relationship, thereby obtaining the target color coordinates and target pixel brightness values.
[0022] In one possible implementation, processing the effective color gamut to obtain a first conversion region, a second conversion region, and a third conversion region includes:
[0023] Select a reference point within the color gamut corresponding to the effective color gamut, and obtain the color coordinates of the effective color gamut;
[0024] The first conversion region, the second conversion region, and the third conversion region are obtained based on the reference point and the color coordinates of the effective color gamut.
[0025] In one possible implementation, determining the target pixel information based on the target chromaticity information includes:
[0026] The X, Y, and Z coordinates of the current pixel in the XYZ coordinate system are assumed to be known.
[0027] Based on the known coordinate values, the color coordinates in the target color information are transformed using a second transformation matrix to obtain two additional coordinate values among the X, Y, and Z values;
[0028] The known coordinate values are adjusted cyclically and two other coordinate values are obtained until both coordinate values are within the pixel range. Then, the target pixel information is obtained based on the three coordinate values.
[0029] In one possible implementation, the known coordinate values are cyclically adjusted and two additional coordinate values are obtained until both coordinate values are within the pixel range. Then, the target pixel information is obtained based on the three coordinate values, including:
[0030] The binary search method is used to gradually increase or decrease the preset difference on the known coordinate values, and the corresponding two coordinate values are obtained cyclically until both coordinate values are within the pixel range.
[0031] The pixel brightness value corresponding to the three coordinate values within the pixel range is the maximum pixel brightness value, so as to obtain the target pixel information.
[0032] In one possible implementation, sending the target pixel information to the display device for display includes:
[0033] The target pixel information of all pixels is integrated to obtain the target image for preview display.
[0034] On one hand, embodiments of this application provide a color gamut conversion device, including:
[0035] Acquisition unit: used to acquire pixel information and color gamut information of the target image;
[0036] Processing unit: used to determine whether the color gamut information meets the conditions for the effective color gamut of the display device;
[0037] If not, obtain the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values;
[0038] The processing unit is further configured to determine target chromaticity information based on the chromaticity information and the effective chromaticity based on the chromaticity information and the chromaticity based on the chromaticity conversion algorithm, and to determine target pixel information based on the target chromaticity information;
[0039] The target pixel information is sent to the display device for display.
[0040] On one hand, embodiments of this application provide a computer device, including: a storage device and a processor;
[0041] A memory, wherein one or more computer programs are stored;
[0042] A processor is used to load one or more computer programs to implement the above-described color gamut conversion method.
[0043] On one hand, embodiments of this application provide a computer storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, can perform the aforementioned color gamut conversion method.
[0044] On one hand, embodiments of this application provide a computer program product, including computer instructions, which are stored in a computer storage medium. The processor of a computer device reads the computer instructions from the computer storage medium and executes them, enabling the computer device to perform the aforementioned color gamut conversion method.
[0045] In this embodiment, the pixel information and color gamut information of the target image are first obtained; then, it is determined whether the color gamut information meets the conditions of the effective color gamut of the display device; if not, the corresponding chromaticity information is obtained based on the pixel information, the chromaticity information including color coordinates and pixel brightness values; and the target chromaticity information is determined based on the chromaticity information and the effective color gamut using a color gamut conversion algorithm; finally, the target chromaticity information is sent to the display device for display. Thus, on the one hand, when obtaining the color gamut information of the target image, this application can combine the effective color gamut of the display device to determine whether the target image can be fully previewed; on the other hand, the color gamut conversion algorithm maps and converts the portion of the target image exceeding the effective color gamut to the effective color gamut of the display device, while maximizing the fit with the input image color gamut for color display, ensuring the relative continuity of the overall pattern color, realizing the preview of the target image conversion effect, and realistically restoring the image brightness values. Attached Figure Description
[0046] To more clearly illustrate the technical solutions and advantages in the embodiments or conventional technologies of this specification, the accompanying drawings used in the description of the embodiments or conventional technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 is a schematic flowchart of a color gamut conversion method provided in an embodiment of this specification;
[0048] Figure 2 is a schematic diagram illustrating the principle of a color gamut conversion method provided in an embodiment of this specification;
[0049] Figure 3 is a schematic diagram of the color gamut mapping method provided in the embodiments of this specification;
[0050] Figure 4 is a preview of the first sRGB color gamut to SDL color gamut conversion provided in the embodiments of this specification;
[0051] Figure 5 is a preview of the second sRGB color gamut to SDL color gamut conversion provided in the embodiments of this specification;
[0052] Figure 6 is a schematic diagram of a color gamut conversion device provided in an embodiment of this specification. Detailed Implementation
[0053] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0054] As shown in Figure 1, this application provides a color gamut conversion method, including:
[0055] S100: Obtain pixel information and color gamut information of the target image;
[0056] S200: Determine whether the color gamut information meets the conditions for the effective color gamut of the display device;
[0057] S300: If not, obtain the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values;
[0058] S400: Based on the color gamut conversion algorithm, determine the target color gamut information according to the color gamut information and the effective color gamut, and determine the target pixel information according to the target color gamut information;
[0059] S500: Send the target pixel information to the display device for display.
[0060] It should be noted that the color gamut conversion method of this application is applied in the field of lighting fixtures. When the lighting fixture obtains an image to be displayed from a user terminal such as a computer or mobile phone, the pattern on the image is displayed through the lighting fixture or other display device.
[0061] Images on computers and mobile phones are typically based on the sRGB color gamut, while the color coordinates of the LEDs selected in lighting fixtures may not be standard sRGB color gamut coordinates. Therefore, the color gamut of the lighting fixture may not be able to fully display all the colors in the sRGB color gamut, and it is necessary to convert the sRGB color gamut to the color gamut of the lighting fixture.
[0062] In one implementation, step S200, determining whether the color gamut information meets the conditions for the effective color gamut of the display device, includes:
[0063] The color gamut information is compared with the effective color gamut range of the display device;
[0064] If a determination is needed, it can be made by checking if any one of the three vertices (R, G, B) of our color gamut is outside the sRGB color gamut range.
[0065] If the color gamut range corresponding to the color gamut information is smaller than the color gamut range of the effective color gamut, then the condition is determined not to be met.
[0066] In one embodiment, obtaining the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values, includes:
[0067] The pixel values of the target image are obtained based on the pixel information: the first R value, the first G value, and the first B value;
[0068] The pixel value is converted into color coordinates using a first transformation matrix, and the pixel brightness value is determined based on the first R value, the first G value, and the first B value.
[0069] Specifically, by using the input target image, each pixel of the target image is extracted to obtain the corresponding pixel value (R, G, B): the first R value, the first G value, and the first B value. After conversion, the color coordinates and brightness value of the pixel are obtained.
[0070] The conversion process utilizes the correspondence between the RGB model and the HIS model to convert the pixel RGB values in the RGB model into color coordinates and brightness values in the HIS model.
[0071] Color coordinates include the parameters hue (H) and saturation (S). Hue (H) is represented by angles, reflecting the spectral wavelength that a color most closely approximates. Saturation (S) indicates the lightness or darkness of a color; higher saturation results in a darker color. Hue (H) and saturation (S) are represented as Cx and Cy, respectively.
[0072] The brightness value is the parameter brightness I, which is determined by the object's reflectance. The higher the reflectance, the brighter the object, and vice versa. Brightness I is denoted as Bri.
[0073] The calculation method is as follows:
[0074] (1) Using conventional sRGB combined with the first transformation matrix, XYZ is calculated, where the transformation matrix is as follows:
[0075] The transformation matrix is a general parameter, calculated as follows: X = r*0.4360747 + g*0.3850649 + b*0.1430804; Y = r*0.2225045 + g*0.7168786 + b*0.0606169; Z = r*0.0139322 + g*0.0971045 + b*0.7141733;
[0076] (2) The chromatic coordinates are calculated based on XYZ: Cx=X / (X+Y+Z) Cy=Y / (X+Y+Z)
[0077] (3) Take the maximum value among the pixel values (R, G, B) as the brightness value of the pixel: Bri = Max(R, G, B)
[0078] In one implementation, step S400, based on a color gamut conversion algorithm, determines the target color gamut information according to the color gamut information and the effective color gamut, including:
[0079] S410: Process the effective color gamut to obtain a first conversion region, a second conversion region, and a third conversion region;
[0080] S420: Determine the proportional relationship between each pair of the three color gamut ranges corresponding to the color coordinates and the first conversion region, the second conversion region and the third conversion region respectively;
[0081] S430: The color coordinates and the pixel brightness value are converted by the ratio relationship using a color gamut conversion algorithm to obtain the target color coordinates and the target pixel brightness value.
[0082] In one implementation, step S410 processes the effective color gamut to obtain a first conversion region, a second conversion region, and a third conversion region, including:
[0083] Select a reference point within the color gamut corresponding to the effective color gamut, and obtain the color coordinates of the effective color gamut;
[0084] The first conversion region, the second conversion region, and the third conversion region are obtained based on the reference point and the color coordinates of the effective color gamut.
[0085] Specifically, an anchor point is defined, and the pixel is located at the color coordinates of the anchor point. The color coordinates of this point remain consistent before and after the transformation. Typically, the anchor point is specified as standard white (W) in the sRGB color gamut to ensure that the common color white can be displayed correctly and to improve the accuracy of color gamut mapping.
[0086] Without setting an anchor point, directly mapping the color gamut may cause some common color distortions, such as white being converted to pale yellow.
[0087] The principle of color gamut mapping is as follows:
[0088] (1) Three triangular regions are formed by anchor point W and the maximum Rmax, Gmax and Bmax in the sRGB color gamut, which are the first conversion region, the second conversion region and the third conversion region: WRG, WRB and WGB.
[0089] Secondly, determine the region to which the color coordinates to be converted belong:
[0090] Calculate the components of the three points in the regions WRG, WRB, and WGB where the pixel is located. Assuming the coordinates of W, R, and G are (sx1, sy1), (sx2, sy2), and (sx3, sy3) respectively, the components are p1, p2, and p3: m = (sy1 - sy3) * (x - sx3) / (sx1 - sx3) + sy3 n = sy2 - sy3 - (sy1 - sy3) * (sx2 - sx3) / (sx1 - sx3) p2 = (ym) / n p1 = (x - sx3) / (sx1 - sx3) - (sx2 - sx3) / (sx1 - sx3) * p2 p3 = 1 - p1 - p2
[0091] In Figure 3, wB, wR, and wG represent the values of p1, p2, and p3, respectively.
[0092] When any one of the values p1, p2, and p3 is negative, it is determined to be a color outside the color gamut. Therefore, the correspondence in the above formula can be used to map and convert colors outside the color gamut.
[0093] (2) When two of the three components wB, wR, wG are positive, it means that the pixel is located in the area formed by the two components.
[0094] Assuming the current color gamut is WGR, applying the above proportions to the new color gamut W'(dx1,dy1), B'(dx2,dy2), R'(dx3,dy3) yields the new color coordinates: Cx=p1*dx1+p2*dx2+(1-p1-p2)*dx3 Cy=p1*dy1+p2*dy2+(1-p1-p2)*dy3
[0095] In one embodiment, converting the target chromaticity information into its corresponding target pixel information includes:
[0096] The X, Y, and Z coordinates of the current pixel in the XYZ coordinate system are assumed to be known.
[0097] Based on the known coordinate values, the color coordinates in the target color information are transformed using a second transformation matrix to obtain two additional coordinate values among the X, Y, and Z values;
[0098] The known coordinate values are adjusted cyclically and two other coordinate values are obtained until both coordinate values are within the pixel range. Then, the target pixel information is obtained based on the three coordinate values.
[0099] In one implementation, the process of cyclically adjusting the known coordinate values and obtaining two other coordinate values until both coordinate values are within the pixel range, then obtaining the target pixel information based on the three coordinate values includes:
[0100] The binary search method is used to gradually increase or decrease the preset difference on the known coordinate values, and the corresponding two coordinate values are obtained cyclically until both coordinate values are within the pixel range.
[0101] The pixel brightness value corresponding to the three coordinate values within the pixel range is the maximum pixel brightness value, so as to obtain the target pixel information.
[0102] In one embodiment, step S500, which involves sending the target pixel information to the display device for display, includes:
[0103] The target pixel information of all pixels is integrated to obtain the target image for preview display.
[0104] Specifically, the principle of calculating pixel RGB values using color coordinates and brightness values is as follows:
[0105] RGB values can usually be calculated from color coordinates using a transformation matrix, but color coordinates cannot be used to calculate RGB values.
[0106] This is because while color coordinates can be used to calculate the X and Z values in XYZ, they cannot be used to calculate the Y value. Therefore, we can solve this problem using a different approach:
[0107] (1) Assume that the Y value of the pixel in the XYZ coordinate system is y0.
[0108] (2) Calculate the X and Z values in the XYZ coordinate system from the color coordinates Cx and Cy. Cx = p1*dx1 + p2*dx2 + (1 - p1 - p2)*dx3 Cy = p1*dy1 + p2*dy2 + (1 - p1 - p2)*dy3
[0109] (3) Use the second transformation matrix to convert XYZ to RGB values. The second transformation matrix is as follows:
[0110] (4) Find the largest RGB value, Max(R,G,B), and determine if it is within the valid range (0-255). If it is below 255, gradually increase y0 and repeat the first three steps until Max(R,G,B) is in the range [255, 255.5). If it is above 255, gradually decrease y0 and repeat the above calculation process until Max(R,G,B) is in the range [255, 255.5). The above two iterative processes improve the search efficiency through binary search and obtain the converted maximum RGB value.
[0111] (5) Before the color gamut conversion, the maximum value among R, G, and B, Max(R, G, B), is taken as the brightness value Bri0 of the pixel.
[0112] During the color gamut conversion process, the brightest R, G, and B values after conversion are also processed proportionally to obtain new RGB values: R = R * Bri0 / 255; G = G * Bri0 / 255; B = B * Bri0 / 255.
[0113] By synchronously calculating the new chromaticity information and new RGB values corresponding to all pixels, it is equivalent to converting the initial sRGB color gamut of the image before color gamut conversion to the SDL color gamut within the color gamut range of the lamp, integrating the pixel information of all pixels on the image, and sending it to the lamp for display preview.
[0114] The color gamut conversion method of this application enables the complete display of all colors in the sRGB color gamut of a user-input image that cannot be fully represented on the lighting fixture. This method closely reproduces and displays the colors of the pattern, ensuring the continuity of the overall pattern colors. At the same time, by selecting anchor points as reference points, the color gamut mapping conversion is assisted, ensuring that the anchor points can be displayed normally, facilitating accurate color gamut mapping conversion. This allows for real-time preview of images in the sRGB color gamut, achieving color conversion outside the color gamut and friendly compatibility with the color gamuts corresponding to different images.
[0115] The application process of the color gamut conversion method in this application under normal scenarios is as follows:
[0116] During trial production of the lamps, the color coordinates of the lamps are measured using an integrating sphere when each monochrome LED is lit, thus obtaining the color gamut range. During mass production, this parameter is written into the product and registered on the server.
[0117] Users import images with a custom sRGB color gamut range into the system. The system uses the color gamut conversion algorithm in this application to calculate and preview the image, and the user confirms whether to display it.
[0118] After the user confirms the display, the application (APP or web page) sends the calculated color coordinates and brightness values to the lighting device for display.
[0119] Referring to Figure 6, which is a schematic diagram of a color gamut conversion device provided in an embodiment of this application, the color gamut conversion device 600 may specifically include:
[0120] Acquisition unit 601: used to acquire pixel information and color gamut information of the target image;
[0121] Processing unit 602: Used to determine whether the color gamut information meets the conditions for the effective color gamut of the display device;
[0122] If not, obtain the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values;
[0123] Processing unit 602 is further configured to determine target chromaticity information based on the chromaticity information and the effective chromaticity based on a chromaticity conversion algorithm;
[0124] The target chromaticity information is sent to the display device for display.
[0125] An embodiment of this application provides a computer device, including: a storage device and a processor;
[0126] A memory, wherein one or more computer programs are stored;
[0127] A processor is used to load one or more computer programs to implement the color gamut conversion method in this application.
[0128] Furthermore, it should be noted that this application embodiment also provides a computer storage medium, which stores a computer program, and the computer program includes program instructions. When the processor executes the above program instructions, it can execute the methods in the corresponding embodiments described above. Therefore, it will not be described again here.
[0129] For technical details not disclosed in the embodiments of the computer storage medium involved in this application, please refer to the description of the method embodiments of this application. As an example, program instructions may be deployed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network.
[0130] According to one aspect of this application, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, enabling the computer device to perform the methods described in the preceding embodiments; therefore, further details will not be provided here.
[0131] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0132] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0133] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A color gamut conversion method, wherein, include: Obtain pixel information and color gamut information of the target image; Determine whether the color gamut information meets the conditions for the effective color gamut of the display device; If not, obtain the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values; Based on the color gamut conversion algorithm, the target color gamut information is determined according to the color gamut information and the effective color gamut, and the target pixel information is determined according to the target color gamut information; The target pixel information is sent to the display device for display.
2. The color gamut conversion method according to claim 1, wherein, The determination of whether the color gamut information meets the conditions for the effective color gamut of the display device includes: The color gamut information is compared with the effective color gamut range of the display device; If the color gamut range corresponding to the color gamut information is smaller than the color gamut range of the effective color gamut, then the condition is determined not to be met.
3. The color gamut conversion method according to claim 1, wherein, The step of obtaining the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values, includes: The pixel values of the target image are obtained based on the pixel information: the first R value, the first G value, and the first B value; The pixel value is converted into color coordinates using a first transformation matrix, and the pixel brightness value is determined based on the first R value, the first G value, and the first B value.
4. The color gamut conversion method according to claim 1, wherein, The color gamut conversion algorithm determines the target color gamut information based on the color gamut information and the effective color gamut, including: The effective color gamut is processed to obtain a first conversion region, a second conversion region, and a third conversion region; Based on the three color gamut ranges corresponding to the color coordinates and the first conversion region, the second conversion region and the third conversion region, the proportional relationships between each pair are determined respectively; A color gamut conversion algorithm is used to convert the color coordinates and pixel brightness values based on the proportional relationship, thereby obtaining the target color coordinates and target pixel brightness values.
5. The color gamut conversion method according to claim 4, wherein, The process of processing the effective color gamut to obtain a first conversion region, a second conversion region, and a third conversion region includes: Select a reference point within the color gamut corresponding to the effective color gamut, and obtain the color coordinates of the effective color gamut; The first conversion region, the second conversion region, and the third conversion region are obtained based on the reference point and the color coordinates of the effective color gamut.
6. The color gamut conversion method according to claim 1, wherein, Determining the target pixel information based on the target chromaticity information includes: The X, Y, and Z coordinates of the current pixel in the XYZ coordinate system are assumed to be known. Based on the known coordinate values, the color coordinates in the target color information are transformed using a second transformation matrix to obtain two additional coordinate values among the X, Y, and Z values; The known coordinate values are adjusted cyclically and two other coordinate values are obtained until both coordinate values are within the pixel range. Then, the target pixel information is obtained based on the three coordinate values.
7. The color gamut conversion method according to claim 6, wherein, The process involves cyclically adjusting the known coordinate values and obtaining two additional coordinate values until both coordinate values are within the pixel range. Then, the target pixel information is obtained based on these three coordinate values, including: The binary search method is used to gradually increase or decrease the preset difference on the known coordinate values, and the corresponding two coordinate values are obtained cyclically until both coordinate values are within the pixel range. The pixel brightness value corresponding to the three coordinate values within the pixel range is the maximum pixel brightness value, so as to obtain the target pixel information.
8. The color gamut conversion method according to claim 1, wherein, Sending the target pixel information to the display device for display includes: The target pixel information of all pixels is integrated to obtain the target image for preview display.
9. A color gamut conversion device, wherein, include: Acquisition unit: used to acquire pixel information and color gamut information of the target image; Processing unit: used to determine whether the color gamut information meets the conditions for the effective color gamut of the display device; If not, obtain the corresponding chromaticity information based on the pixel information, wherein the chromaticity information includes chromaticity coordinates and pixel brightness values; The processing unit is further configured to determine target chromaticity information based on the chromaticity information and the effective chromaticity based on the chromaticity information and the effective chromaticity based on the chromaticity conversion algorithm, and to determine target pixel information based on the target chromaticity information; The target pixel information is sent to the display device for display.
10. A computer device, wherein, include: Storage devices and processors; A memory, wherein one or more computer programs are stored; A processor for loading one or more computer programs to implement the color gamut conversion method as described in any one of claims 1-8.
11. A computer storage medium, wherein, The computer storage medium stores a computer program, which includes program instructions. When the processor executes the program instructions, it can perform the color gamut conversion method as described in any one of claims 1-8.
12. A computer program product, wherein, The method includes computer instructions stored in a computer storage medium, which are read from and executed by the processor of the computer device, enabling the computer device to perform the color gamut conversion method as described in any one of claims 1-8.