Multi-color light mixing method, device, system and computer equipment
By defining three determination regions under four-color mixing conditions and calculating the mixing ratio using the projection method of the target colored light, the problem of infinitely many solutions in four-color mixing is solved, and accurate control of the mixing ratio and continuity of color display are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- OPPLE LIGHTING CO LTD
- Filing Date
- 2024-12-25
- Publication Date
- 2026-04-17
AI Technical Summary
Under four-color mixing conditions, existing technologies have an infinite number of solutions, resulting in an uncertain target color mixing ratio.
By defining three judgment regions based on the color gamut range composed of four colors, and determining the judgment region into which the target colored light falls by the projection method of the target colored light, the mixing ratio of the corresponding color is calculated, and the target colored light is output by controlling 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 light coordinates exceed the color gamut.
Smart Images

Figure CN120676126B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of color display technology, and in particular to a multicolor mixing method, apparatus, system and computer equipment. Background Technology
[0002] 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-mentioned problems. Summary of the Invention
[0003] 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.
[0004] On one hand, embodiments of this application provide a multicolor mixing method, including:
[0005] 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;
[0006] Three determination regions are obtained based on the color coordinates of the four mixed colors;
[0007] 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;
[0008] 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.
[0009] In one possible implementation, obtaining the three determination regions based on the color coordinates of the four mixed colors includes:
[0010] 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.
[0011] Project the target colored light point T onto the connecting line in a preset direction. Above, the first projection point E is obtained;
[0012] Based on 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... Second Judgment Area and the third judgment area .
[0013] In one possible implementation, determining the target color coordinates of the target colored light falling into the target determination region includes:
[0014] 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;
[0015] 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 into the first determination area. Inside;
[0016] 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 into the second determination area. Inside;
[0017] 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 into the third determination area. Inside.
[0018] 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:
[0019] Based on the color coordinates of the three vertices of the target determination region , , and the target color coordinates of the target colored light ,get and :
[0020] Based on the color coordinates of the three vertices of the target determination region , , and the and ,get and ;
[0021] According to the above and The brightness of the three vertices of the target determination region determines the three-way mixed light color power ratio under the preset output ratio condition. .
[0022] In one possible implementation, the and The corresponding calculation formulas are:
[0023] ,
[0024] ,
[0025] in, , .
[0026] In one possible implementation, the and The corresponding calculation formulas are:
[0027] ,
[0028] ,
[0029] ,
[0030] in, , The target brightness of the target colored light.
[0031] In one possible implementation, the color power ratio The corresponding calculation formula is:
[0032] .
[0033] One possible implementation also includes:
[0034] When the target colored light is determined to fall into the second determination area Within, based on the target color coordinates of the target colored light. and target brightness and the color coordinates of points B and C. , Determine the color coordinates of the first projection point E. and brightness ;
[0035] Based on the principle of dual-color mixing, and according to the color coordinates of the first projection point E... and brightness and the color coordinates of points B and C. , The power ratio of the two mixed light sources at points B and C was determined. and The ratio of the two after normalization is used as the color power percentage corresponding to point E in the three-way mixed color.
[0036] In one possible implementation, when the abscissa of the first projection point E is the same as the abscissa of the target colored light, the chromatic coordinate of the first projection point E is... and brightness The corresponding calculation formulas are:
[0037] ,
[0038] ,
[0039] .
[0040] In one possible implementation, the and The corresponding calculation formulas are:
[0041] ,
[0042] ,
[0043] .
[0044] One possible implementation also includes:
[0045] Determine the color power ratio of the three-way mixed light colors Does the number contain negative numbers?
[0046] If not, the color power percentage of each mixed color is output normally; if so, the coordinates of the target colored light are corrected.
[0047] In one possible implementation, correcting the coordinates of the target colored light includes:
[0048] Calculate the projection position of the target colored light on the adjacent color gamut boundary of its corresponding target determination region;
[0049] Replace the target color coordinates of the target colored light with the coordinates of the projection position. The corrected target color coordinates are obtained. ;
[0050] Determine the color power ratio of the corrected four-way color mixing. .
[0051] On one hand, embodiments of this application provide a multicolor mixing device, including:
[0052] Color gamut parameter acquisition unit: used 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;
[0053] Landing point area determination unit: used to obtain three determination areas based on the color coordinates of the four mixed colors;
[0054] 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;
[0055] Mixing ratio determination unit: used to 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 area and the target color coordinates of the target colored light.
[0056] 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 used to output control signals corresponding to the mixing ratio to drive the corresponding light-emitting units to emit light, so as to mix the target colored light.
[0057] On one hand, embodiments of this application provide a computer device, including: a storage device and a processor;
[0058] A memory, wherein one or more computer programs are stored;
[0059] A processor is used to load one or more computer programs to implement the above-described multicolor mixing method.
[0060] 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
[0061] To more clearly illustrate the technical solutions and advantages in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the 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.
[0062] Figure 1 A schematic flowchart illustrating a multicolor mixing method provided in the embodiments of this specification;
[0063] Figure 2 This is a schematic diagram of the target colored light within the color gamut composed of four colors in the prior art.
[0064] Figure 3 This is a schematic diagram showing the relative positional relationship between the target colored light and the color gamut range composed of four colors, as provided in the embodiments of this specification.
[0065] Figure 4 A schematic diagram illustrating the principle of a multicolor mixing method provided in the embodiments of this specification;
[0066] Figure 5 This is a schematic diagram illustrating the division of the landing area provided in the embodiments of this specification;
[0067] Figure 6 A schematic diagram showing the shaded areas corresponding to different determination regions provided in the embodiments of this specification;
[0068] Figure 7This is a schematic diagram showing the location of projection point E provided in the embodiments of this specification;
[0069] Figure 8 This is a schematic diagram showing the position of the target colored light falling in the target determination area, as provided in the embodiments of this specification.
[0070] Figure 9 This is a schematic diagram showing the position of the target colored light falling outside the target determination area, as provided in the embodiments of this specification.
[0071] Figure 10 This is a schematic diagram of a multicolor mixing device provided in the embodiments of this specification.
[0072] Figure 11 This is a schematic diagram of a light source system provided in an embodiment of this specification. Detailed Implementation
[0073] 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.
[0074] 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.
[0075] 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.
[0076] like Figure 1 and Figure 4 As shown, this application provides a multicolor mixing method, including:
[0077] 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;
[0078] 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 follows: and Where n represents A, B, C, and D respectively.
[0079] The target color coordinates are input as follows Target brightness is , where is any positive integer greater than 0.
[0080] S200: Three determination regions are obtained based on the color coordinates of the four mixed colors;
[0081] In one implementation, step S200 obtains three determination regions based on the color coordinates of the four mixed colors, including:
[0082] 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.
[0083] Project the target colored light point T onto the connecting line in a preset direction. Above, the first projection point E is obtained;
[0084] Based on 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... Second Judgment Area and the third judgment area .
[0085] 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.
[0086] 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;
[0087] By connecting the color coordinates of the two mixed colors located in the middle position with their corresponding projection points, the mixed color gamut is divided into the first landing point region. Second landing area and the third landing area .
[0088] When the target colored light falls into the first landing point area Second landing area and the third landing area If the target colored light falls into the first determination area, then it is determined that the target colored light falls into the first determination area respectively. Second Judgment Area Third Judgment Area .
[0089] 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;
[0090] Specifically, such as Figure 5 and Figure 6 As shown, Figure 5 and Figure 6 The horizontal and vertical directions in the coordinate system represent the X-axis and Y-axis directions of the color gamut where the quadrilateral's color gamut is located, respectively.
[0091] 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.
[0092] 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.
[0093] Step S300 determines the target determination area into which the target color coordinates of the target colored light fall, including:
[0094] 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;
[0095] 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 into the first determination area. Inside;
[0096] 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 into the second determination area. Inside;
[0097] 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 into the third determination area. Inside.
[0098] Specifically, such as Figure 6 As shown in Table 1,
[0099]
[0100] Table 1
[0101] In this embodiment, the projection direction is taken as Figure 6 Let's take the Y-axis direction as an example for explanation:
[0102] When the x-coordinate of the target colored light If the target colored light falls into region I, then the corresponding target colored light is determined to fall into the first determination region. ;
[0103] When the x-coordinate of the target colored light If the target colored light falls in region II, then the corresponding target colored light is determined to fall into the second determination region. ;
[0104] When the x-coordinate of the target colored light If the target colored light falls into region III, then the corresponding target colored light is determined to fall into the third determination region. .
[0105] 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.
[0106] Among them, when the target determination area is the first determination area Or the third determination area At that time, the basic three colors are three of the four mixing colors of the quadrilateral color gamut in this application, namely points A, C and D, or points A, B and D.
[0107] When the target determination region is determined to be the second determination region When doing so, it is necessary to calculate the color coordinates of point E and combine them with points A and D to form a basic three-color system for mixing the three colors.
[0108] Specifically, the color coordinates of the vertices of the triangle region corresponding to the target determination region are set as follows: , , and the corresponding brightness is , , .
[0109] The table below illustrates the triangle vertices of the target determination region according to different partitioning scenarios:
[0110]
[0111] Table 2
[0112] 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.
[0113] 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.
[0114] 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:
[0115] Based on the color coordinates of the three vertices of the target determination region , , and the target color coordinates of the target colored light ,get and :
[0116] Based on the color coordinates of the three vertices of the target determination region , , and the and ,get and ;
[0117] According to the above and The brightness of the three vertices of the target determination region determines the three-way mixed light color power ratio under the preset output ratio condition. .
[0118] In one implementation, and The corresponding calculation formulas are:
[0119] ,
[0120] ,
[0121] in, , .
[0122] In one embodiment, the and The corresponding calculation formulas are:
[0123] ,
[0124] ,
[0125] ,
[0126] in, , The target brightness of the target colored light.
[0127] In one implementation, color power ratio The corresponding calculation formula is:
[0128] .
[0129] In the corresponding and Under these conditions, through accurate control and Color power ratio output, mixed light output target colored light:
[0130] .
[0131] Based on the above formula for calculating target brightness, it can be determined by the color power ratio. The corresponding calculation formula is determined and Among them, the calculated and This is the normalized result. Adding the fact that the color power percentage of another color not included in the vertex calculation is 0, we can obtain the ratio of the four colors.
[0132] This can be understood as the color power proportions of the three unnormalized mixed lights being: , , Multiply them by After normalization, we get .
[0133] Specifically, the four mixed-color lights are driven and controlled under the same hardware conditions.
[0134] Preferably, under the condition of 100% power output, in the above formula These represent the 100% brightness of the three mixed light sources, respectively.
[0135] In one implementation, it further includes:
[0136] When the target colored light is determined to fall into the second determination area Within, based on the target color coordinates of the target colored light. and target brightness and the color coordinates of points B and C. , Determine the color coordinates of the first projection point E. and brightness ;
[0137] Based on the principle of dual-color mixing, and according to the color coordinates of the first projection point E... and brightness and the color coordinates of points B and C. , The power ratio of the two mixed light sources at points B and C was determined. and The ratio of the two after normalization is used as the color power percentage corresponding to point E in the three-way mixed color.
[0138] In one embodiment, when the abscissa of the first projection point E is the same as the abscissa of the target colored light, the chromatic coordinate of the first projection point E is... and brightness The corresponding calculation formulas are:
[0139] ,
[0140] ,
[0141] .
[0142] Specifically, when the target coordinates fall within zone II, the coordinates of point E must be calculated first. and brightness .
[0143] In one implementation, and The corresponding calculation formulas are:
[0144] ,
[0145] ,
[0146] .
[0147] Specifically, based on the principle of two-color mixing, the required proportions of point E's coordinates under the mixing of colors B and C are calculated. and .
[0148] Will and The ratio of the two was obtained after normalization. and .
[0149] The target coordinates fall within zone II, which requires further consideration. and The ratio, further calculated and According to the ratio of the two By allocating the funds, you can obtain... and The color power percentage of the four colors at points A, B, C, and D is equivalent to the color power percentage of the three colors at points A, E, and D.
[0150] 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.
[0151] In one embodiment, correcting the coordinates of the target colored light includes:
[0152] Calculate the projection position of the target colored light on the adjacent color gamut boundary of its corresponding target determination region;
[0153] Replace the target color coordinates of the target colored light with the coordinates of the projection position. The corrected target color coordinates are obtained. ;
[0154] Determine the color power ratio of the corrected four-way color mixing. .
[0155] Specifically, assess whether there are negative values for the proportion of each color. If not, output the power proportion of each color normally.
[0156] like Figure 9 As shown, if a negative value exists, it means 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, and this position is the new target color point after correction. The specific calculation method is as follows:
[0157] ,
[0158] .
[0159] New target color point Replace the original The above calculation method is used to obtain the corrected power ratio of each color.
[0160] See Figure 10 , Figure 10This is a schematic diagram of a multicolor mixing device provided in an embodiment of this application. In specific implementation, the multicolor mixing device 1000 may include:
[0161] Color gamut parameter acquisition unit 1001: used 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;
[0162] Landing point area determination unit 1002: used to obtain three determination areas based on the color coordinates of the four mixed colors;
[0163] 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;
[0164] Mixing ratio determination unit 1003: used to 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 area and the target color coordinates of the target colored light.
[0165] This application provides a light source system including four light-emitting units and a multi-color mixing device. The multi-color mixing device is used to output control signals corresponding to the mixing ratio to drive the corresponding light-emitting units to emit light, so as to mix the target colored light.
[0166] Specifically, such as Figure 11 As shown, the light source system includes:
[0167] 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.
[0168] 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.
[0169] 300: Power conversion module, which transforms the original AC power into DC power required by the main light source system.
[0170] 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.
[0171] An embodiment of this application provides a computer device, including: a storage device and a processor;
[0172] A memory, wherein one or more computer programs are stored;
[0173] A processor is used to load one or more computer programs to implement the multicolor mixing method in this application.
[0174] 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.
[0175] 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.
[0176] 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.
[0177] 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.
[0178] 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 the present invention 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)).
[0179] 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 of mixing light of multiple colors, characterized by, include: 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. 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 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... Second Judgment Area and the third judgment area .
2. The multicolor mixing method according to claim 1, characterized in that, 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 into the first determination area. Inside; 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 into the second determination area. Inside; 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 into the third determination area. Inside.
3. The multicolor mixing method according to claim 1, characterized in that, 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 of the three vertices of the target determination region , , and the target color coordinates of the target colored light ,get and : Based on the color coordinates of the three vertices of the target determination region , , and the and ,get , and ; According to the above , and The brightness of the three vertices of the target determination region determines the three-way mixed light color power ratio under the preset output ratio condition. ; The and The corresponding calculation formulas are: , , in, , ; The , and The corresponding calculation formulas are: , , , in, , The target brightness of the target colored light.
4. The multicolor mixing method according to claim 3, characterized in that, The color power ratio The corresponding calculation formula is: 。 5. The multicolor mixing method according to claim 3, characterized in that, Also includes: When the target colored light is determined to fall into the second determination area Within, based on the target color coordinates of the target colored light. and target brightness and the color coordinates of points B and C. , Determine the color coordinates of the first projection point E. and brightness ; Based on the principle of dual-color mixing, and according to the color coordinates of the first projection point E... and brightness and the color coordinates of points B and C. , The power ratio of the two mixed light sources at points B and C was determined. and The ratio of the two after normalization is used as the color power percentage corresponding to point E in the three-way mixed color.
6. The multicolor mixing method according to claim 5, characterized in that, When the abscissa of the first projection point E is the same as the abscissa of the target colored light, the chromatic coordinate of the first projection point E is... and brightness The corresponding calculation formulas are: , , 。 7. The multicolor mixing method according to claim 6, characterized in that, The and The corresponding calculation formulas are: , , 。 8. The multicolor mixing method according to claim 3 or 4, characterized in that, Also includes: Determine the color power ratio of the three-way mixed light colors Does the number contain negative numbers? If not, the color power percentage of each mixed color is output normally; if so, the coordinates of the target colored light are corrected.
9. The multicolor mixing method according to claim 8, characterized in that, 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 of the target colored light with the coordinates of the projection position. The corrected target color coordinates are obtained. ; Determine the color power ratio of the corrected four-way color mixing. .
10. A multicolor mixing device, characterized in that, include: Color gamut parameter acquisition unit: used 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: used 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 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 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... Second Judgment Area and the third judgment area ; Mixing ratio determination unit: used to 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 area and the target color coordinates of the target colored light.
11. A light source system, characterized in that, It includes four light-emitting units and a multi-color mixing device as described in claim 10, wherein the multi-color mixing device is used to output control signals corresponding to the mixing ratio to drive the corresponding light-emitting units to emit light, so as to mix the target colored light.
12. A computer device, characterized in that, 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 multicolor mixing method as described in any one of claims 1-9.
Citation Information
Patent Citations
Color temperature adjusting method, color temperature adjusting equipment, lamp and storage medium
CN116546688A