Multi-color light mixing method and apparatus, system, and computer device
By defining three determination regions under four-color mixing conditions, the mixing ratio of the target colored light is calculated, solving the problem of infinitely many solutions in traditional technology and achieving accurate mixing control and continuous color display.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- SUZHOU OPPLE LIGHTING
- Filing Date
- 2025-12-25
- Publication Date
- 2026-07-02
AI Technical Summary
Under four-color mixing conditions, traditional techniques have an infinite number of solutions, making it impossible to accurately control the output of the target colored light.
By defining three judgment areas based on the color gamut range composed of four colors and according to the preset direction projection method, the judgment area into which the target colored light falls is determined, thereby calculating the mixing ratio of the four colors and controlling the output of the target colored light in the mixing process.
It achieves accurate control of the mixing ratio under four-color mixing conditions, solves the problem of infinitely many solutions, and ensures the continuity of color display through coordinate correction when the target color coordinates exceed the color gamut.
Smart Images

Figure CN2025145543_02072026_PF_FP_ABST
Abstract
Description
Multicolor mixing methods, apparatus, systems and computer equipment
[0001] Cross-references to related applications
[0002] This application claims priority to Chinese Patent Application No. 2024119348833, filed on December 25, 2024, entitled "Multicolor Mixing Method, Apparatus, System and Computer Equipment", which is incorporated herein by reference in its entirety. Technical Field
[0003] This application relates to the field of color display technology, and in particular to a multicolor mixing method, apparatus, system and computer equipment. Background Technology
[0004] Currently, algorithms for RGB three-color mixing are very mature. Due to the uniqueness of the solution, the desired light mixing can be obtained using the parameters of the three colors. However, when calculating the desired light mixing conditions using four colors, the addition of an extra color leads to an infinite number of solutions. Therefore, a four-color mixing algorithm is urgently needed to solve the above problems. Summary of the Invention
[0005] This application proposes a multicolor mixing method, apparatus, system, and computer device. It can set three judgment areas based on the color gamut range composed of four colors according to a preset direction projection method, thereby calculating the mixing ratio of the four colors by determining the judgment area into which the target colored light falls, and controlling the output of the target colored light based on the above mixing ratio, thus solving the problem of infinitely many solutions in the four-color mixing in traditional technical solutions.
[0006] On one hand, embodiments of this application provide a multicolor mixing method, including:
[0007] Obtain the target color coordinates and target brightness of the target colored light, as well as the color coordinates and brightness of the four mixed colors;
[0008] Three determination regions are obtained based on the color coordinates of the four mixed colors;
[0009] The target color coordinates of the target colored light are determined to fall into a target determination region, which is one of three determination regions;
[0010] The mixing ratios of various colors required to form the target colored light are determined based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light.
[0011] In one possible implementation, obtaining the three determination regions based on the color coordinates of the four mixed colors includes:
[0012] In the mixed light color gamut formed by four color coordinates, one vertex is selected and defined as point A, and the other three vertices are marked as points B, C and D respectively in counterclockwise or clockwise directions.
[0013] Project the target colored light point T onto the connecting line in a preset direction. Above, the first projection point E is obtained;
[0014] Based on the points A, B, C, and D of the mixed color gamut and the first projection point E, three determination regions are obtained: the first determination region ΔACD, the second determination region ΔAED, and the third determination region ΔABD.
[0015] In one possible implementation, determining the target color coordinates of the target colored light falling into the target determination region includes:
[0016] Determine the x-coordinates or y-coordinates of points B and C, and correspondingly determine the x-coordinates or y-coordinates of the target colored light;
[0017] When the x-coordinate or y-coordinate of the target colored light is less than the corresponding x-coordinate or y-coordinate of point B, it is determined that the target colored light falls within the first determination area ΔACD.
[0018] When the x-coordinate or y-coordinate of the target colored light is greater than or equal to the corresponding x-coordinate or y-coordinate of point B and less than the corresponding x-coordinate or y-coordinate of point C, it is determined that the target colored light falls within the second determination area ΔAED.
[0019] When the x-coordinate or y-coordinate of the target colored light is greater than or equal to the corresponding x-coordinate or y-coordinate of point C, it is determined that the target colored light falls within the third determination area ΔABD.
[0020] In one possible implementation, determining the mixing ratios of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light includes:
[0021] Based on the color coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices of the target determination region and the target color coordinates (x1, y1), (x2, y2), (x3, y3) of the target colored light... Ctarget ,y Ctarget ), to obtain x inter and y inter :
[0022] Based on the color coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices of the target determination region, and the x... inter and y inter , to obtain L1a L 2a and L 3a ;
[0023] According to the L 1a L 2a and L 3a The brightness of the three vertices of the target determination area determines the three-way mixed light color power ratios P1, P2, and P3 under the preset output ratio conditions.
[0024] In one possible implementation, the x inter and y inter The corresponding calculation formulas are: y inter =m 12 *(x inter -x1)+y1,
[0025] in,
[0026] In one possible implementation, the L 1a L 2a and L 3a The corresponding calculation formulas are: L 1a =L inter -L 2a L 3a =L Ctarget -L inter ,
[0027] in, L Ctarget The target brightness of the target colored light.
[0028] In one possible implementation, the calculation formulas for the color power proportions P1, P2, and P3 are as follows:
[0029] One possible implementation also includes:
[0030] When it is determined that the target colored light falls within the second determination region ΔAED, then according to the target color coordinates (x, y) of the target colored light... Ctarget ,y Ctarget ) and target brightness L Ctarget and the color coordinates (x) of points B and C B ,y B ),(x C ,y C Determine the color coordinates (x, y) of the mapping point. E ,y E ) and brightness L E ;
[0031] Based on the principle of dual-color mixing, according to the color coordinates (x) of the mapping point E ,y E ) and brightness L E and the color coordinates (x) of points B and C B ,y B ),(x C ,y C The power ratio P of the two mixed light sources at points B and C was determined. Ba and P Ca The ratio of the two after normalization is used as the color power percentage corresponding to point E in the three-way mixed color.
[0032] In one possible implementation, when the x-coordinate of the mapping point is the same as the x-coordinate of the target colored light, the chromaticity coordinate (x) of the mapping point is... E ,y E ) and brightness L E The corresponding calculation formulas are: x E =x Ctarget , L E =L Ctarget .
[0033] In one possible implementation, the P Ba and P Ca The corresponding calculation formulas are: L Ba =L target -L Ca ,
[0034] One possible implementation also includes:
[0035] Determine whether any of the three mixed-color power percentages P1, P2, and P3 are negative;
[0036] If not, the color power percentage of each mixed color is output normally; if so, the coordinates of the target colored light are corrected.
[0037] In one possible implementation, correcting the coordinates of the target colored light includes:
[0038] Calculate the projection position of the target colored light on the adjacent color gamut boundary of its corresponding target determination region;
[0039] Replace the target color coordinates (x, y) of the target colored light with the coordinates of the projection position. Ctarget ,y Ctarget ), thus obtaining the corrected target color coordinates (xpjt ,y pjt );
[0040] The corrected four-way color mixing color power ratios P1, P2, and P3 were determined.
[0041] On one hand, embodiments of this application provide a multicolor mixing device, including:
[0042] Color gamut parameter acquisition unit: configured to acquire the target color coordinates and target brightness of the target colored light, as well as the color coordinates and brightness of the four mixed colors;
[0043] Landing point area determination unit: configured to obtain three determination areas based on the color coordinates of the four mixed colors;
[0044] The target color coordinates of the target colored light are determined to fall into a target determination region, which is one of three determination regions;
[0045] The light mixing ratio determination unit is configured to determine the light mixing ratio of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light.
[0046] On one hand, this application provides a light source system including four light-emitting units and the above-mentioned multicolor mixing device. The multicolor mixing device is configured to output a control signal corresponding to the mixing ratio to drive the corresponding light-emitting units to emit light, so as to mix the target colored light.
[0047] On one hand, embodiments of this application provide a computer device, including: a storage device and a processor;
[0048] A memory, wherein one or more computer programs are stored;
[0049] The processor is configured to load one or more computer programs to implement the above-described multicolor mixing method.
[0050] In this embodiment, the target color coordinates and target brightness of the target light, as well as the color coordinates and brightness of the four mixing colors, are first obtained. Then, three determination regions are obtained based on the color coordinates of the four mixing colors. The target determination region into which the target color coordinates of the target light fall is determined, and the target determination region is one of the three determination regions. The mixing ratios of various colors required to form the target light are determined based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target light. Thus, on the one hand, this application proposes a novel mixing algorithm. By projecting the color gamut range composed of four colors according to a preset direction, three determination regions defined by three colors are obtained. The mixing ratio of the corresponding colors is calculated by determining the determination region into which the target light falls, thereby accurately controlling the mixing ratio to output the target light and solving the problem of infinitely many solutions for the target light in four-color mixing. On the other hand, when the color coordinates of the target light are outside the color gamut defined by the four colors, the color coordinate correction method of this application can find the nearest color coordinates for outputting similar colors, ensuring the continuity of color display. Attached Figure Description
[0051] 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.
[0052] Figure 1 is a schematic flowchart of a multicolor mixing method provided in an embodiment of this specification;
[0053] Figure 2 is a schematic diagram of the target colored light within the color gamut composed of four colors in the traditional technology.
[0054] Figure 3 is a schematic diagram showing the relative positional relationship between the target colored light and the color gamut range composed of four colors provided in the embodiments of this specification.
[0055] Figure 4 is a schematic diagram illustrating the principle of a multicolor mixing method provided in the embodiments of this specification;
[0056] Figure 5 is a schematic diagram of the division of the landing area provided in the embodiments of this specification;
[0057] Figure 6 is a schematic diagram of the shaded areas corresponding to different determination regions provided in the embodiments of this specification;
[0058] Figure 7 is a schematic diagram showing the location of projection point E provided in the embodiment of this specification;
[0059] Figure 8 is a schematic diagram showing the position of the target colored light falling in the target determination area according to the embodiment of this specification;
[0060] Figure 9 is a schematic diagram showing the position of the target colored light falling outside the target determination area according to the embodiment of this specification;
[0061] Figure 10 is a schematic diagram of a multicolor mixing device provided in an embodiment of this specification.
[0062] Figure 11 is a schematic diagram of a light source system provided in an embodiment of this specification. Detailed Implementation
[0063] 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.
[0064] Currently, the algorithms for RGB three-color mixing are very mature. Due to the uniqueness of the solution, the required proportion of the three colors to participate in the mixing can be calculated using the parameters of the three colors. However, when calculating the required target color mixing conditions using four colors, the addition of one more color leads to an infinite number of solutions. Therefore, a simplified four-color mixing algorithm is needed to solve the above problems.
[0065] Therefore, in order to solve the above-mentioned technical problems, this application proposes a multi-color mixing method. This method defines three judgment regions based on the color gamut range composed of four colors according to a preset projection direction. Each judgment region is composed of three colors. By determining the judgment region into which the target colored light falls, the mixing ratio of the corresponding color is calculated. Based on the mixing ratio, the mixing process is accurately controlled to output the target colored light.
[0066] As shown in Figures 1 and 4, this application provides a multicolor light mixing method, including:
[0067] S100: Obtain the target color coordinates and target brightness of the target colored light, as well as the color coordinates and brightness of the four mixed colors;
[0068] Specifically, the chromaticity coordinates and luminance of the four mixed colors are measured, and the chromaticity coordinates and luminance of the four mixed colors are expressed as (x n ,y n ) and L n Where n represents A, B, C, and D respectively.
[0069] The target color coordinates are input as (x Ctarget,y Ctarget ); Target brightness is L Ctarget , where is any positive integer greater than 0.
[0070] S200: Three determination regions are obtained based on the color coordinates of the four mixed colors;
[0071] In one implementation, step S200 obtains three determination regions based on the color coordinates of the four mixed colors, including:
[0072] In the mixed light color gamut formed by four color coordinates, one vertex is selected and defined as point A, and the other three vertices are marked as points B, C and D respectively in counterclockwise or clockwise directions.
[0073] Project the target colored light point T onto the connecting line in a preset direction. Above, the first projection point E is obtained;
[0074] Based on the points A, B, C, and D of the mixed color gamut and the first projection point E, three determination regions are obtained: the first determination region ΔACD, the second determination region ΔAED, and the third determination region ΔABD.
[0075] In this application, the four vertices of the quadrilateral's color gamut must satisfy the condition that when points B and C are projected in a preset direction, the projected points of points B and C can both fall on the side length. superior.
[0076] Project the two mixed color points B and C, located in the middle position, onto the line connecting the other two mixed color points A and D, according to a preset direction. Above, and obtain the second projection point G and the third projection point H;
[0077] The color coordinates of the two mixed colors located in the middle position are connected to their corresponding projection points, and the mixed color gamut is divided into the first landing area ΔACD, the second landing area ΔBCGH, and the third landing area ΔABD.
[0078] When the target colored light falls into the first landing area ΔACD, the second landing area ΔBCGH, and the third landing area ΔABD, it is determined that the target colored light falls into the first determination area ΔACD, the second determination area ΔAED, and the third determination area ΔABD, respectively.
[0079] S300: Determine the target color coordinates of the target colored light to fall into the target determination region, wherein the target determination region is one of three determination regions;
[0080] Specifically, as shown in Figures 5 and 6, the horizontal and vertical directions in Figures 5 and 6 are the X-axis and Y-axis directions of the color gamut coordinate system in which the quadrilateral's color gamut is located, respectively.
[0081] When the current projection direction is the Y-axis direction, the target judgment area is determined by comparing the area where the X coordinate falls.
[0082] When the current projection direction is the X-axis direction, the target judgment area is determined by comparing the area where the Y coordinate falls.
[0083] Step S300 determines the target determination area into which the target color coordinates of the target colored light fall, including:
[0084] Determine the x-coordinates or y-coordinates of points B and C, and correspondingly determine the x-coordinates or y-coordinates of the target colored light;
[0085] When the x-coordinate or y-coordinate of the target colored light is less than the corresponding x-coordinate or y-coordinate of point B, it is determined that the target colored light falls within the first determination area ΔACD.
[0086] When the x-coordinate or y-coordinate of the target colored light is greater than or equal to the corresponding x-coordinate or y-coordinate of point B and less than the corresponding x-coordinate or y-coordinate of point C, it is determined that the target colored light falls within the second determination area ΔAED.
[0087] When the x-coordinate or y-coordinate of the target colored light is greater than or equal to the corresponding x-coordinate or y-coordinate of point C, it is determined that the target colored light falls within the third determination region ΔABD.
[0088] Specifically, as shown in Figure 6 and Table 1,
[0089] Table 1
[0090] In this embodiment, the projection direction is taken as the Y-axis direction in Figure 6 as an example for explanation:
[0091] When the x-coordinate of the target colored light is x target <x C When the target colored light falls into region I, it is determined that the target colored light falls into the first determination region ΔACD.
[0092] When the x-coordinate of the target colored light is x C ≤x target <x B If the target colored light falls in the area of region II, then the target colored light is determined to fall into the second determination region ΔAED.
[0093] When the x-coordinate of the target colored light is xB ≤x target If the target colored light falls in the specified area, then the target colored light is determined to fall into the third determination area ΔABD.
[0094] The definition of the determination area is as follows: when the target colored light is determined to correspond to the current determination area, the three vertices of the triangle area of the current determination area are used as the basic three colors for light mixing, that is, the technical solution of converting to three-color light mixing is achieved.
[0095] When the target determination area is the first determination area ΔACD or the third determination area ΔABD, the basic three colors are three colors A, C and D or A, B and D from the four mixed colors of the quadrilateral color gamut in this application.
[0096] When the target determination area is determined to be the second determination area ΔAED, the color coordinates of point E need to be calculated and combined with points A and D to form the basic three colors for the three-color mixing scheme.
[0097] Specifically, the color coordinates of the vertices of the triangle region corresponding to the target determination region are set as (x1, y1), (x2, y2), (x3, y3) and the corresponding brightness is L1, L2, L3.
[0098] The table below illustrates the triangle vertices of the target determination region according to different partitioning scenarios:
[0099] Table 2
[0100] In some other implementations, the side length As the longest side, points B and C are perpendicular to the side length. When projecting along the direction, the projected points of points B and C fall on the side length. The above is used to divide the landing area and determine the corresponding judgment area.
[0101] S400: Determine the mixing ratio of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light.
[0102] In one embodiment, step S400 determines the mixing ratios of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light, including:
[0103] Based on the color coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices of the target determination region and the target color coordinates (x1, y1), (x2, y2), (x3, y3) of the target colored light... Ctarget ,yCtarget ), to obtain x inter and y inter :
[0104] Based on the color coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices of the target determination region, and the x... inter and y inter , to obtain L 1a L 2a and L 3a ;
[0105] According to the L 1a L 2a and L 3a The brightness of the three vertices of the target determination area determines the three-way mixed light color power ratios P1, P2, and P3 under the preset output ratio conditions.
[0106] In one implementation, x inter and y inter The corresponding calculation formulas are: y inter =m 12 -(x inter -x1)+y1,
[0107] in,
[0108] In one implementation, the L 1a L 2a and L 3a The corresponding calculation formulas are: L 1a =L inter -L 2a L 3a =L Ctarget -L inter ,
[0109] in, L Ctarget The target brightness of the target colored light.
[0110] In one implementation, the calculation formulas for the color power proportions P1, P2, and P3 are as follows:
[0111] In the corresponding L 1a L 2a and L 3a Under these conditions, by accurately controlling the color power ratios of P1, P2, and P3, the target colored light is mixed and output. Ctarget =P1-L1+P2*L2+P3*L3
[0112] Based on the above formula for calculating target brightness, P1, P2, and P3 can be determined using the formulas corresponding to the color power proportions P1, P2, and P3. The calculated P1, P2, and P3 are normalized results. Adding the color power proportion of another color not included in the vertex calculation (which is 0), the ratios of the four colors can be obtained.
[0113] This can be understood as the color power proportions of the three unnormalized mixed lights being: Multiply them by After normalization, we obtain P1, P2, and P3.
[0114] Specifically, the four mixed-color lights are driven and controlled under the same hardware conditions.
[0115] Preferably, under the condition of 100% power output, L in the above formula 1a L 2a and L 3a These represent the 100% brightness of the three mixed light sources, respectively.
[0116] In one implementation, it further includes:
[0117] When it is determined that the target colored light falls within the second determination region ΔAED, then according to the target color coordinates (x, y) of the target colored light... Ctarget ,y Ctarget ) and target brightness L Ctarget and the color coordinates (x) of points B and C B ,y B ),(x C ,y C Determine the color coordinates (x, y) of the mapping point. E ,y E ) and brightness L E ;
[0118] Based on the principle of dual-color mixing, according to the color coordinates (x) of the mapping point E ,y E ) and brightness L E and the color coordinates (x) of points B and C B ,y B ),(x C ,y C The power ratio P of the two mixed light sources at points B and C was determined. Ba and P Ca The ratio of the two after normalization is used as the color power percentage corresponding to point E in the three-way mixed color.
[0119] In one embodiment, when the x-coordinate of the mapping point is the same as the x-coordinate of the target colored light, the chromaticity coordinate (x) of the mapping point is... E ,y E ) and brightness L E The corresponding calculation formulas are: x E =x Ctarget , L E =L Ctarget .
[0120] Specifically, when the target coordinates fall within zone II, the coordinates of point E (x, y, y) must first be calculated. E ,y E ) and brightness L E .
[0121] In one implementation, P Ba and P Ca The corresponding calculation formulas are: L Ba =L target -L Ca ,
[0122] Specifically, based on the principle of two-color mixing, the required proportions P of point E under the mixing of colors B and C are calculated. Ba and P Ca .
[0123] P Ba and P Ca After normalization, the ratio P between the two is obtained. Ba ′ and P Ca ′.
[0124] Since the target coordinates fall within region II, P needs to be further calculated by combining the ratios of P1, P2, and P3. Ba and P Ca By allocating P2 according to the ratio of the two, we can obtain P1, P2*P. Ba ′,P2*P Ca P' and P3 represent the color power percentages of the four colors at points A, B, C, and D, which are equivalent to the color power percentages of the three colors at points A, E, and D.
[0125] When the target coordinates fall in Zone I and Zone III, the color power percentage of the other color in the four colors in the mixed color gamut that is not included in the vertex calculation can be set to 0, and the color power percentage of the four colors can also be obtained.
[0126] In one embodiment, correcting the coordinates of the target colored light includes:
[0127] Calculate the projection position of the target colored light on the adjacent color gamut boundary of its corresponding target determination region;
[0128] Replace the target color coordinates (x, y) of the target colored light with the coordinates of the projection position. Ctarget ,y Ctarget ), thus obtaining the corrected target color coordinates (x pjt ,y pjt );
[0129] The color power ratios P1, P2, and P3 of the corrected four-way color mixing were determined.
[0130] Specifically, assess whether there are negative values for the proportion of each color. If not, output the power proportion of each color normally.
[0131] As shown in Figure 9, a negative value indicates that the target color coordinates are not within the color gamut defined by this light source system. To solve this problem, coordinate correction is needed to find a similar color. Specifically, the projection position of the target coordinates onto the color gamut boundary is calculated; this position is the corrected new target color point (x). pjt ,y pjt The specific calculation method is as follows: y pjt =m 12 x pjt -y2-m 12 x2
[0132] Set the new target color point (x) pjt ,y pjt ) replace the original (x) Ctarget ,y Ctarget The above calculation method is used to obtain the corrected power ratio of each color.
[0133] Referring to Figure 10, which is a schematic diagram of a multicolor mixing device provided in an embodiment of this application, the multicolor mixing device 1000 may specifically include:
[0134] Color gamut parameter acquisition unit 1001: configured to acquire the target color coordinates and target brightness of the target colored light, as well as the color coordinates and brightness of the four mixed colors;
[0135] Landing point area determination unit 1002: is configured to obtain three determination areas based on the color coordinates of the four mixed colors;
[0136] The target color coordinates of the target colored light are determined to fall into a target determination region, which is one of three determination regions;
[0137] The light mixing ratio determination unit 1003 is configured to determine the light mixing ratio of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light.
[0138] This application provides a light source system including four light-emitting units and a multi-color mixing device. The multi-color mixing device is configured to output a control signal corresponding to the mixing ratio to drive the corresponding light-emitting units to emit light, so as to mix the target colored light.
[0139] Specifically, as shown in Figure 11, the light source system includes:
[0140] 100: The control chip can perform logical analysis and calculation on the input color information, output the corresponding color ratios and provide the corresponding PWM control signals. This is the main execution unit of the color algorithm.
[0141] 200: Control module, which can be a wireless connection device such as an infrared remote control, Wi-Fi or Bluetooth module, or a wired serial connection device, through a specific interface to input the required color-related information, such as color coordinates and brightness.
[0142] 300: Power conversion module, which transforms the original AC power into DC power required by the main light source system.
[0143] A~D: Four physically separate light-emitting units, including but not limited to narrowband light sources and broadband light sources or a combination of the two.
[0144] An embodiment of this application provides a computer device, including: a storage device and a processor;
[0145] A memory, wherein one or more computer programs are stored;
[0146] The processor is configured to load one or more computer programs to implement the multicolor mixing method of this application.
[0147] 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.
[0148] 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.
[0149] 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.
[0150] 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.
[0151] 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)).
[0152] 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 method for multicolor light mixing, comprising: Obtain the target color coordinates and target brightness of the target colored light, as well as the color coordinates and brightness of the four mixed colors; Three determination regions are obtained based on the color coordinates of the four mixed colors; The target color coordinates of the target colored light are determined to fall into a target determination region, which is one of three determination regions; The mixing ratios of various colors required to form the target colored light are determined based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light.
2. The multicolor mixing method according to claim 1, wherein, The process of obtaining three determination regions based on the color coordinates of the four mixed colors includes: In the mixed light color gamut formed by four color coordinates, one vertex is selected and defined as point A, and the other three vertices are marked as points B, C and D respectively in counterclockwise or clockwise directions. Project the target colored light point T onto the connecting line in a preset direction. Above, the first projection point E is obtained; Based on the points A, B, C, and D of the mixed color gamut and the first projection point E, three determination regions are obtained: the first determination region ΔACD, the second determination region ΔAED, and the third determination region ΔABD.
3. The multicolor mixing method according to claim 2, wherein, The determination of the target color coordinates of the target light falling into the target determination region includes: Determine the x-coordinates or y-coordinates of points B and C, and correspondingly determine the x-coordinates or y-coordinates of the target colored light; When the x-coordinate or y-coordinate of the target colored light is less than the corresponding x-coordinate or y-coordinate of point B, it is determined that the target colored light falls within the first determination area ΔACD. When the x-coordinate or y-coordinate of the target colored light is greater than or equal to the corresponding x-coordinate or y-coordinate of point B and less than the corresponding x-coordinate or y-coordinate of point C, it is determined that the target colored light falls within the second determination area ΔAED. When the x-coordinate or y-coordinate of the target colored light is greater than or equal to the corresponding x-coordinate or y-coordinate of point C, it is determined that the target colored light falls within the third determination area ΔABD.
4. The multicolor mixing method according to claim 1, wherein, The step of determining the mixing ratios of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light includes: Based on the color coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices of the target determination region and the target color coordinates (x1, y1), (x2, y2), (x3, y3) of the target colored light... Ctarget ,y Ctarget ), to obtain x inter and y inter : Based on the color coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices of the target determination region, and the x... inter and y inter , to obtain L 1a L 2a and L 3a ; According to the L 1a L 2a and L 3a The brightness of the three vertices of the target determination area determines the three-way mixed light color power ratios P1, P2, and P3 under the preset output ratio conditions.
5. The multicolor mixing method according to claim 4, wherein, The x inter and y inter The corresponding calculation formulas are: y inter =m 12 *(x inter -x1)+y1, in, 6. The multicolor mixing method according to claim 4, wherein, The L 1a L 2a and L 3a The corresponding calculation formulas are: L 1a =L inter -L 2a L 3a =L Ctarget -L inter , in, L Ctarget The target brightness of the target colored light.
7. The multicolor mixing method according to claim 4, wherein, The calculation formulas for the color power ratios P1, P2, and P3 are as follows:
8. The multicolor mixing method according to claim 4 further includes: When it is determined that the target colored light falls within the second determination region ΔAED, then according to the target color coordinates (x, y) of the target colored light... Ctarget ,y Ctarget ) and target brightness L Ctarget and the color coordinates (x) of points B and C B ,y B ),(x C ,y C Determine the color coordinates (x, y) of the mapping point. E ,y E ) and brightness L E ; Based on the principle of dual-color mixing, according to the color coordinates (x) of the mapping point E ,y E ) and brightness L E and the color coordinates (x) of points B and C B ,y B ),(x C ,y C The power ratio P of the two mixed light sources at points B and C was determined. Ba and P Ca The ratio of the two after normalization is used as the color power percentage corresponding to point E in the three-way mixed color.
9. The multicolor mixing method according to claim 8, wherein, When the x-coordinate of the mapping point is the same as the x-coordinate of the target colored light, the chromaticity coordinate (x) of the mapping point is... E ,y E ) and brightness L E The corresponding calculation formulas are: x E =x Ctarget , L E =L Ctarget .
10. The multicolor mixing method according to claim 9, wherein, The P Ba and P Ca The corresponding calculation formulas are: L Ba =L target -L Ca , 11. The multicolor mixing method according to any one of claims 4 to 7, further comprising: Determine whether any of the three mixed-color power percentages P1, P2, and P3 are negative; If not, the color power percentage of each mixed color is output normally; if so, the coordinates of the target colored light are corrected.
12. The multicolor mixing method according to claim 11, wherein, The correction of the coordinates of the target colored light includes: Calculate the projection position of the target colored light on the adjacent color gamut boundary of its corresponding target determination region; Replace the target color coordinates (x, y) of the target colored light with the coordinates of the projection position. Ctarget ,y Ctarget ), thus obtaining the corrected target color coordinates (x pjt ,y pjt ); The corrected four-way color mixing color power ratios P1, P2, and P3 were determined.
13. A multicolor mixing device, comprising: Color gamut parameter acquisition unit: configured to acquire the target color coordinates and target brightness of the target colored light, as well as the color coordinates and brightness of the four mixed colors; Landing point area determination unit: configured to obtain three determination areas based on the color coordinates of the four mixed colors; The target color coordinates of the target colored light are determined to fall into a target determination region, which is one of three determination regions; The light mixing ratio determination unit is configured to determine the light mixing ratio of various colors required to form the target colored light based on the color coordinates and brightness of the three vertices of the target determination region and the target color coordinates of the target colored light.
14. A light source system comprising four light-emitting units and a multicolor mixing device as described in claim 13, wherein the multicolor mixing device is configured to output control signals corresponding to the mixing ratio to drive the corresponding light-emitting units to emit light, thereby mixing to produce the target colored light.
15. A computer device, comprising: Storage devices and processors; A memory, wherein one or more computer programs are stored; The processor is configured to load one or more computer programs to implement the multicolor mixing method as described in any one of claims 1-12.