CN114900925B - Multi-primary color light control method and application thereof - Google Patents
Multi-primary color light control method and application thereof Download PDFInfo
- Publication number
- CN114900925B CN114900925B CN202210644770.4A CN202210644770A CN114900925B CN 114900925 B CN114900925 B CN 114900925B CN 202210644770 A CN202210644770 A CN 202210644770A CN 114900925 B CN114900925 B CN 114900925B
- Authority
- CN
- China
- Prior art keywords
- color
- primary
- sub
- rgb
- brightness
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Color Image Communication Systems (AREA)
Abstract
The application provides a multi-primary color light control method and application thereof, comprising the following steps: acquiring inherent highest brightness of each primary color of the multi-primary color lamp, corresponding inherent color coordinates and color mixing parameters input by a user; converting the toning parameters into RGB toning parameters; performing color gamut division according to the positions of the inherent color coordinates of the primary colors in a CIE1931 chromaticity diagram to form a plurality of triangular sub-color gamuts; sequentially establishing the corresponding relation between each sub color gamut and the RGB color mixing parameters; analyzing according to the RGB color matching parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color matching parameters to obtain the target color mixing color coordinates; acquiring a total value of mixed brightness of each primary color and brightness corresponding to each primary color according to the target mixed color coordinate; and calculating the duty ratio according to the inherent highest brightness of each primary color and the brightness corresponding to each primary color and outputting to control the multi-primary-color lamp. This application can adjust convenient to use under the RGB mode.
Description
Technical Field
The application relates to the technical field of light control, in particular to a multi-primary-color light control method and application thereof.
Background
The color is closely related to life, and people in life need colorful light environment atmosphere.
The CMY mode is a method of synthesizing colors by using 3 basic colors of Cyan (Cyan), magenta (Magenta), and Yellow (Yellow) at a certain ratio, and is a subtractive color mode that relies on filter rendering. In the CMY model, the displayed color is not the color directly from the light, but is produced by the remaining light reflected or filtered after the light is absorbed by the object. Meanwhile, the HSV mode can express the brightness, the tone and the brightness of colors very visually, is convenient for the contrast between colors and the communication of emotion, and is a color model facing users. The parameters of the colors in this model are: hue (H: hue), saturation (S: saturation), and brightness (V: value). This is a color model proposed based on the physiological characteristics of human observed colors.
In the early high-power art-performing lamp, the color light source is high in cost due to technical problems, so that a white light HID light source is generally used, and color filtering and color mixing are additionally performed on CMY components, so that a color light effect is obtained. For example, patent publication No. CN112178590a, a color-gradient CMY color film tray dedicated to stage lighting, is interpreted and embodies the importance of CMY mode.
In the prior art, the HSV mode can only be converted into the RGB three-primary-color mode, and the four primary colors are invalid. For example, the patent terminal with publication number CN111935885a and the linkage control method, device and storage medium of device light color only realize the HSV to RGB mode.
With the continuous development of light source technology, high-power color LED light source lamps continuously appear, and the development is from three primary colors to multiple primary colors. The three primary colors RGB have a narrow color gamut space, so that the narrow color gamut cannot meet the pursuit of people for a wider color gamut and better color quality. Therefore, the appearance of multi-primary-color lamps is promoted, such as 6 primary colors RGCALC (red, green, blue, amber, lemon and cyan), obviously the polygonal RALGCB of the CIE1931 chromaticity diagram has a wider color gamut than the triangular RGB, and can mix more colors. Secondly, the multi-primary color mixing has the characteristics of rich and continuous spectrum components, so that the mixed color has a very high color rendering index, and the color of the illuminated object is vividly restored.
Complementary colors of RGB colors are CMY colors, respectively, and can correspond one by one. When the primary colors are increased, the prior art cannot correspond to CMY one by one. The traditional CMY dimming mode is deeply branded in the heart of the dimmers, and the development of a multi-primary color CMY digital dimming system is a problem to be solved urgently due to the replacement of the light source. Meanwhile, the HSV mode in the prior art is disjointed with multiple primary colors, and the problem to be solved urgently is to develop a lighting system for controlling multiple primary colors in the HSV mode.
Therefore, a multi-primary light control method and application thereof are needed, which can realize the control of multi-primary colors in the CMY or HSV mode, do not need to add an independent primary color input control channel even if the number of primary colors is more, are downward compatible, and meet the use habit of users.
Disclosure of Invention
The embodiment of the application provides a multi-primary color light control method and application thereof, aiming at the problems existing at present.
The core technology of the invention mainly realizes that CMY or HSV mode is used for controlling multi-primary colors, even if the number of the primary colors is more, an independent primary color input control channel is not required to be added, the downward compatibility is realized, the use habit of a user is met, meanwhile, CMY or HSV mode is used for controlling the multi-primary colors, and the related accurate color matching of the system is realized.
In a first aspect, the present application provides a multi-primary light control method, comprising the steps of:
s00, obtaining the inherent highest brightness of each primary color of the multi-primary color lamp, the inherent color coordinate corresponding to each primary color, and the color mixing parameter and the target sub-color gamut input by a user;
s10, converting the color matching parameters into RGB color matching parameters;
s20, performing color gamut division according to the positions of the inherent color coordinates of the primary colors in a CIE1931 chromaticity diagram to form a plurality of triangular sub-color gamuts;
s30, sequentially establishing the corresponding relation between each sub color gamut and the RGB color mixing parameters;
s40, analyzing according to the RGB color mixing parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color mixing parameters to obtain target color mixing coordinates;
s50, acquiring a total value of mixed brightness of each primary color and brightness corresponding to each primary color according to the target mixed color coordinate;
and S60, calculating the duty ratio according to the inherent highest brightness of each primary color and the brightness corresponding to each primary color and outputting to control the multi-primary-color lamp.
Further, in step S20, the specific steps are:
sequentially connecting the inherent color coordinates of each primary color in a CIE1931 chromaticity diagram to form a polygon;
one vertex is selected as a common vertex, and the other vertexes are sequentially connected with the common vertex to form a plurality of sub-gamuts, wherein the number of the sub-gamuts is less than that of the primary colors.
Further, in step S30, the specific steps are:
selecting one of the sub-color gamuts as a default sub-color gamut;
corresponding three top points of the default sub-color gamut with brightness values of RGB primary colors in the RGB color mixing parameters one by one to establish a corresponding relation;
the default sub-gamut is rotated around the common point of all sub-gamuts, and vertex overlap geometric transformation is performed on the remaining sub-gamuts to establish a correspondence between each sub-gamut and the luminance values of the RGB primaries in the RGB toning parameters.
Further, in step S50, the target mixed color coordinates are brought into the linear programming model to obtain the total mixed brightness value of the primary colors and the brightness corresponding to the primary colors, wherein the linear programming model is established based on the inherent maximum brightness of the primary colors, the inherent color coordinates of the primary colors, and the brightness values of the RGB primary colors in the RGB color matching parameters.
Further, in step S60, the specific steps are:
and dividing the brightness corresponding to each primary color by the inherent highest brightness of each primary color to obtain a duty ratio, and outputting the duty ratio as a PWM signal to control the multi-primary color lamp.
Further, in step S00, the inherent maximum brightness of each primary color and the corresponding inherent color coordinate of the multi-primary-color lamp are obtained in a dark closed environment.
Further, the toning parameters include CMY toning parameters and HSV toning parameters.
In a second aspect, the present application provides a multi-primary light control device based on RGB mode, comprising:
the input unit is used for acquiring inherent highest brightness of each primary color of the multi-primary color lamp, corresponding inherent color coordinates and color mixing parameters input by a user, wherein the color mixing parameters comprise brightness values of RGB primary colors and a target sub-color gamut;
a signal conversion unit for converting the CMY toning parameters or the HSV toning parameters into RGB toning parameters;
the signal analysis unit is used for carrying out color gamut division according to the positions of the inherent color coordinates of the primary colors in a CIE1931 chromaticity diagram to form a plurality of triangular sub-color gamuts; establishing corresponding relations between the sub-color domains and RGB color mixing parameters in sequence;
the color matching operation unit is used for analyzing and obtaining target mixed color coordinates according to the RGB color matching parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color matching parameters; acquiring a total value of mixed brightness of each primary color and brightness corresponding to each primary color according to the target mixed color coordinate;
and the output control unit is used for calculating the duty ratio according to the inherent highest brightness of each primary color and the brightness corresponding to each primary color and outputting to control the multi-primary-color lamp.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, the memory having a computer program stored therein, the processor being configured to execute the computer program to perform the above-mentioned multi-primary light control method.
In a fourth aspect, the present application provides a readable storage medium having stored therein a computer program comprising program code for controlling a process to execute a process, the process comprising a multi-primary light control method according to the above.
The main contributions and innovation points of the invention are as follows: 1. compared with the prior art, the method has the advantages that CMY and HSV color matching parameters of a user are converted into RGB color matching parameters, the multi-primary color gamut is divided into the sub-regions, the relationship is established between the RGB color matching parameters of the user and each divided sub-color gamut, then the target color coordinates are analyzed according to the relationship and the inherent parameters of the multi-primary color lamp, and the total value of the mixed brightness of each primary color and the brightness corresponding to each primary color are calculated according to the target color coordinates, so that the duty ratio can be calculated according to the brightness of each primary color and the inherent parameters of the multi-primary color lamp for control without increasing a multi-channel pusher, the control can be realized only by the existing RGB three-channel pusher, even if the number of the primary colors is more, an independent primary color input control channel is not required to be increased, the downward compatibility is realized, and the use habit of the user is met;
2. compared with the prior art, the method has the advantages that the traditional CMY and HSV mode parameter input is downward compatible, the target color gamut is freely selected and set and expanded, the user input parameters are analyzed into the target color coordinates, and then the target color coordinates are output to each primary color light source through accurate color matching operation to be mixed into the target color, so that the method is complicated and simple;
3. compared with the prior art, the color matching arithmetic unit introduces the brightness and chromaticity parameters of all the primary colors of the system, and the system can be obtained by accurate closed-loop color matching and inputting.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a multi-primary light control method according to an embodiment of the present application;
FIG. 2 is a six primary color gamut diagram according to an embodiment of the present application;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the methods may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
The HSV mode and the CMY mode in the prior art can only control three primary colors, no method is available for realizing multi-primary colors, the HSV mode and the CMY mode in the prior art are directly used in a lighting system, input and output are irrelevant to the system, reference to brightness and chromaticity parameters of each primary color of a light source (for CMY, a filter is adopted) is eliminated, open-loop color matching is achieved, and input and output are different. Meanwhile, in the prior art, a plurality of parameters are manually input, the input and the output are irrelevant to the system, the reference of brightness and chromaticity parameters of each primary color of a light source is separated, and the method belongs to open-loop color matching and ensures that the input and the output have difference.
Based on the method, the method is compatible with parameter input of the traditional HSV mode and CMY mode downwards, freely selects and sets and expands the target color gamut, analyzes the user input parameters into target color coordinates, and outputs the target color coordinates to each primary color light source to be mixed into the target color through precise color matching operation, so that the method is complicated and simple. And introducing the brightness and chromaticity parameters of each primary color of the system, and accurately performing closed-loop color matching and inputting to obtain the color matching.
Example one
The application aims to provide a multi-primary-color light control method to solve the problems in the prior art.
Specifically, the embodiment of the present application provides a multi-primary light control method, specifically, referring to fig. 1, the method includes the following steps:
s00, acquiring inherent highest brightness of each primary color of the multi-primary color lamp, inherent color coordinates corresponding to each primary color and color mixing parameters input by a user (H for HSV) in 、S in 、V in For CMY is C in 、M in 、Y in ) And a target sub-gamut;
obtaining inherent maximum brightness and corresponding inherent color coordinates of each primary color of the multi-primary-color lamp in a dark closed environment, namely obtaining the maximum brightness value L of each primary color 1 、L 2 、.....、L m And obtaining color coordinates (x) of each primary color 1 ,y 1 )、(x 2 ,y 2 )、...、(x m ,y m );
S10, converting the color matching parameters into RGB color matching parameters;
the CMY and RGB in the prior art are mutually complementary one by one, and CMY is converted into RGB, and HSV is converted into RGB by the prior art;
s20, performing color gamut division according to the positions of the inherent color coordinates of the primary colors in a CIE1931 chromaticity diagram to form a plurality of triangular sub-color gamuts;
the intrinsic color coordinates of each primary color are sequentially connected in a CIE1931 chromaticity diagram to form a polygon;
selecting one vertex as a common vertex, and sequentially connecting the other vertices with the common vertex to form a plurality of sub color gamuts, wherein the number of the sub color gamuts is less than that of the primary colors;
s30, sequentially establishing the corresponding relation between each sub color gamut and the RGB color mixing parameters;
wherein, one of the sub-color gamuts is selected as a default sub-color gamut;
corresponding three top points of the default sub-color gamut with brightness values of RGB primary colors in the RGB color mixing parameters one by one to establish a corresponding relation;
rotating the default sub-color gamut around the common point of all the sub-color gamuts, and performing vertex overlapping geometric transformation on the other sub-color gamuts to establish a corresponding relation between each sub-color gamut and the brightness value of the RGB primary colors in the RGB color matching parameters;
s40, analyzing according to the RGB color mixing parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color mixing parameters to obtain target color mixing coordinates;
s50, acquiring a total value of mixed brightness of each primary color and brightness corresponding to each primary color according to the target mixed color coordinate;
the method comprises the steps of obtaining a total value of mixed brightness of each primary color and brightness corresponding to each primary color by bringing target mixed color coordinates into a linear programming model, wherein the linear programming model is established based on inherent highest brightness of each primary color, inherent color coordinates of each primary color and brightness values of RGB primary colors in RGB color mixing parameters;
and S60, calculating the duty ratio according to the inherent highest brightness of each primary color and the brightness corresponding to each primary color and outputting to control the multi-primary-color lamp.
The brightness corresponding to each primary color is divided by the inherent highest brightness of each primary color one by one to obtain a duty ratio, and the duty ratio is output as a PWM signal to control the multi-primary color lamp.
In this embodiment, the specific step of splitting the n-primary color gamut and establishing the corresponding relationship (step S30) is:
step 1, depicting color coordinates of each primary color in a CIE1931 chromaticity diagram, and sequentially connecting the color coordinates into polygons (as shown in a figure 2);
step 2, selecting a vertex in the polygon as a common vertex (for example, a point G in FIG. 2), drawing a connecting line to points of the primary colors which are separated, and cutting the connecting line into n-2 triangles;
step 3, selecting one of the triangles as a default sub-color gamut S1 (for example, Δ RGB in fig. 2), and establishing 3 primaries of the sub-color gamut and an RGB color matching parameter R in 、G in 、B in Corresponding relation of (e.g. R color corresponds to R) in G color corresponds to G in Color B corresponds to color B in );
Step 4, rotating the default sub-color gamut S1 around the common vertex, and performing vertex overlapping geometric transformation on the other sub-color gamuts to establish the 3-primary color and RGB color matching parameter R of the new sub-color gamut in 、G in 、B in In (e.g. in sub-gamut S2: color B corresponds to color R) in G color corresponds to G in Color C corresponds to color B in (ii) a In the sub-gamut S3: color A corresponds to R in G color corresponds to G in R corresponds to B in (ii) a In the sub-gamut S4: l color corresponds to R in G color corresponds to G in Color A corresponds to color B in )。
Step 5, repeating step 4 until the 3 primary colors and the RGB color matching parameters R of all the sub-color domains are matched in 、G in 、B in The relationship of (1) corresponds to (2).
In the embodiment, the input signal is analyzed into target color coordinates based on the intrinsic parameters of the primary colors of the light sourceThe following equation was used to establish:
whereinN is the maximum brightness adjustment level, L 1 ~L 3 Maximum inherent brightness of primary colors; (x) 1 ,y 1 ) And (x) 2 ,y 2 ) And (x) 3 ,y 3 ) The subscript number represents the color name of the primary color, the name of the primary color and R as the color coordinate of the primary color in 、G in 、B in And establishing according to the corresponding relation.
In this embodiment, in step S50, the linear programming model is:
wherein, subscript m is a positive integer not less than 3 to represent the number of primary colors; l' 1 、L’ 2 、.....、L’ m Target brightness to be determined of each primary color belongs to decision variables;is the pending total brightness of the color mixture; l is 1 、L 2 、.....、L m Is the inherent maximum luminance of each primary color;is the color coordinate of the target color mixture; (x) 1 ,y 1 )、(x 2 ,y 2 )、...、(x m ,y m ) Are the inherent color coordinates of each primary color.
In this embodiment, in step S60, the color matching result needs to be converted into a PWM signal, and the duty ratio is denoted as D:
wherein L' 1 、L’ 2 、.....、L’ m Is the brightness of the color matching result of each primary color, L 1 、L 2 、.....、L m Is the inherent maximum luminance of each primary color.
Example two
Based on the same conception, the application also provides a multi-primary color light control device based on the RGB mode, which comprises:
the input unit is used for acquiring inherent highest brightness of each primary color of the multi-primary color lamp, corresponding inherent color coordinates and color mixing parameters input by a user, wherein the color mixing parameters comprise brightness values of RGB primary colors and a target sub-color gamut;
a signal conversion unit for converting the CMY toning parameters or the HSV toning parameters into RGB toning parameters;
the signal analysis unit is used for carrying out color gamut division according to the positions of the inherent color coordinates of the primary colors in a CIE1931 chromaticity diagram to form a plurality of triangular sub-color gamuts; sequentially establishing the corresponding relation between each sub color gamut and the RGB color mixing parameters;
the color matching operation unit is used for analyzing and obtaining target mixed color coordinates according to the RGB color matching parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color matching parameters; and acquiring the total value of the mixed brightness of each primary color and the brightness corresponding to each primary color according to the target mixed color coordinate.
EXAMPLE III
Based on the second embodiment, the present embodiment provides the following practical use example.
Firstly, measuring the inherent brightness parameters of the lamp before delivery:
for example, a color lamp with 6 primary colors RGCAL (red, green, blue, amber, lemon, cyan) is placed in a black room, the maximum luminance of each primary color RGCAL is measured, and the subscripts 1, 2, 3, 4, 5, 6 represent the primary colors R, G, B, A, L, C, respectively, then the maximum luminance of each primary color is recorded as L 1 =955;L 2 =2240;L 3 =586;L 4 =2100;L 5 =2330;L 6 =2080。
Meanwhile, the color coordinates of RGBALC corresponding to the maximum luminance of each primary color are measured, and similarly, the subscripts 1, 2, 3, 4, 5, and 6 represent R, G, B, A, L, C, respectively, so the color coordinates of each primary color are respectively recorded as:
x 1 =0.566;y 1 =0.251
x 2 =0.136;y 2 =0.631
x 3 =0.164;y 3 =0.064
x 4 =0.504;y 4 =0.423
x 5 =0.332;y 5 =0.558
x 6 =0.076;y 6 =0.329。
secondly, analyzing the user input parameters:
for example, the user may color the lamp, select the sub-color gamut S1 (see FIG. 2) on the console, and input the color matching parameter C in M in Y in = {0,35,155} or H in S in V in = {46,61%,100% }, which converts to R as the middle toning parameter by using the principle of mutually complementing colors of CMY and RGB one by one in the prior art or the prior HS conversion algorithm in G in B in ={255,220,100}。
Firstly, the color coordinate of the target color mixture which the user wants to express under the intermediate color-mixing parameter is obtained。
Where the subscripts 1, 2, 3 correspond to the primary colors RGB, respectively, and N is the maximum brightness adjustment level (typically N =99, or 255, or 65535), in this example N =255. Substituting the known values:
intermediate toning parameter input value R in =255,G in =220,B in =100;
Intrinsic luminance value L 1 =955,L 2 =2240,L 3 =586;
Intrinsic base color coordinate x 1 =0.566,y 1 =0.251,x 2 =0.136,y 2 =0.631,x 3 =0.164,y 3 =0.064。
Solving the above two-dimensional equation system to obtain the color coordinate of the target color mixture
Substituting the above data into a linear programming model in the following equation:
solving the model by substituting data to obtain the maximum mixed brightnessThe brightness of each primary color of rgbac is:
L ’1 =955;
L ’2 =1008.763;
L’ 3 =586;
L’ 4 =2100;
L’ 5 =2330;
L’ 6 =878.729;
thus, the duty ratio D of PWM at this time is obtained:
by integrating the processes, the user performs color modulation operation on the lamp, selects the color gamut S1 on the console, and inputs the color modulation parameter C in M in Y in = {0,35,155} or H in S in V in = 46,61%,100% }. The operation module returns the PWM duty ratio, namely the PWM signal duty ratio output of each primary color of the RGCALC is D = {1,0.4503,1,1,1,0.4225} and is sent to the driver, and each primary color of the driving light source emits light according to the requirementAnd color mixing is performed. Therefore, at the moment, 6 primary colors participate in color mixing, so that the spectrum is continuous and rich, and the color rendering index is improved.
Example four
Based on the second embodiment, the present embodiment provides the following practical use case.
For example, the user inputs the same color matching parameter C as in the third embodiment in M in Y in = {0,35,155} or H in S in V in Conversion to R is likewise carried out for = 46,61%,100% } in G in B in =255,220,100, this time the sub-gamut S2 is selected on the console.
The color gamut S2 is composed of primary colors BGC (see FIG. 2), and B corresponds to R according to the corresponding rule in G color corresponds to G in Color C corresponds to color B in 。
Firstly, the color coordinate of the target color mixture which the user wants to express under the input parameters is obtained
Where the subscripts 3, 2, 6 correspond to the primary colors BGC, respectively, and N is the maximum brightness adjustment level (typically N =99, or 255, or 65535), which in this example is N =255. Substituting the known values:
intermediate toning parameter input value R in =255,G in =220,B in =100;
Intrinsic luminance value L 3 =586,L 2 =2240,L 6 =2080;
Intrinsic primary color coordinate x 3 =0.164,y 3 =0.064,x 2 =0.136,y 2 =0.631,x 6 =0.076,y 6 =0.329。
Solving the above two-dimensional equation system to obtain the color coordinate of the target mixed color
Substituting the above data into a linear programming model in the following equation:
solving the model by substituting data to obtain the maximum mixed brightnessThe brightness of each primary color of rgbac is:
L ’1 =145.823;
L ’2 =1305.08;
L’ 3 =586;
L’ 4 =0;
L’ 5 =0;
L’ 6 =2080;
thus, the duty ratio D of PWM at this time is obtained:
by integrating the processes, the user performs color modulation operation on the lamp, selects the color gamut S2 on the console, and inputs the color modulation parameter C in M in Y in = {0,35,155} or H in S in V in = 46,61%,100% }. The operation module returns the PWM duty ratio, namely the PWM signal duty ratio output of each primary color of the RGCALC is D = {0.1527,0.5813,1,0,0,1} and is sent to the driver, and each primary color of the driving light source emits light and mixes colors according to the requirement. It can be seen that 4 primaries are involved in the color mixing at this time.
EXAMPLE five
For example, the user inputs the same color matching parameter C as in the third embodiment in M in Y in = {0,35,155} or H in S in V in Conversion to R is likewise carried out for = 46,61%,100% } in G in B in =255,220,100, this time the sub-gamut S3 is selected on the console.
The color gamut S3 is composed of the primary colors AGR (see FIG. 2), and the color A corresponds to the color R according to the corresponding rule in G color corresponds to G in R corresponds to B in 。
Firstly, the color coordinate of the target color mixture which the user wants to express under the input parameters is obtained
Where the subscripts 4, 2, 1 correspond to the primary colors AGR, respectively, and N is the maximum brightness adjustment level (typically N =99, or 255, or 65535), which is N =255 in this example. Substituting the known values:
intermediate toning parameter input value R in =255,G in =220,B in =100;
Intrinsic luminance value L 4 =2100,L 2 =2240,L 1 =955;
Intrinsic base color coordinate x 4 =0.504,y 4 =0.423,x 2 =0.136,y 2 =0.631,x 1 =0.566,y 1 =0.251。
Solving the above two-dimensional equation system to obtain the color coordinate of the target mixed color
Substituting the above data into a linear programming model in the following equation:
solving the model by substituting data to obtain the maximum mixed brightnessThe brightness of each primary color of rgbac is:
L ’1 =939.807;
L ’2 =2237.339;
L’ 3 =0;
L’ 4 =2100;
L’ 5 =2330;
L’ 6 =0;
thus, the duty ratio D of PWM at this time is obtained:
by integrating the processes, the user performs color modulation operation on the lamp, selects the color gamut S3 on the console, and inputs the color modulation parameter C in M in Y in = {0,35,155} or H in S in V in = 46,61%,100% }. The operation module returns the PWM duty ratio, namely the PWM signal duty ratio output of each primary color of the RGCALC is D = {0.9841,0.9988,0,1,1,0} and is sent to the driver, and each primary color of the driving light source emits light and mixes colors according to the requirement. It can be seen that 4 primary colors participate in the color mixing at this time.
Example six
For example, the user inputs the same color matching parameter C as in the third embodiment in M in Y in = {0,35,155} or H in S in V in Conversion to R is likewise carried out for = 46,61%,100% } in G in B in = {255,220,100}, but this time subgamut S4 was selected on the console.
The color gamut S4 consists of the primary colors LGA (see FIG. 2), and L corresponds to R according to the corresponding rule in G color corresponds to G in Color A corresponds to color B in 。
Firstly, the color coordinate of the target color mixture which the user wants to express under the input parameters is obtained
Where the subscripts 5,2, 4 correspond to the primary colors LGA, respectively, and N is the maximum brightness adjustment level (typically N =99, or 255, or 65535), which in this example is N =255. Substituting the known values:
intermediate toning parameter input value R in =255,G in =220,B in =100;
Intrinsic luminance value L 5 =2330,L 2 =2240,L 4 =2100;
Intrinsic base color coordinate x 5 =0.332,y 5 =0.558,x 2 =0.136,y 2 =0.631,x 4 =0.504,y 4 =0.423。
Solving the above two-dimensional equation system to obtain the color coordinate of the target mixed color
Substituting the above data into a linear programming model in the following equation:
solving the model by substituting data to obtain the maximum mixed brightnessAt this timeThe brightness of each primary color of RGCALC is respectively as follows:
L ’1 =0
L ’2 =1895.013;
L’ 3 =0;
L’ 4 =800.626;
L’ 5 =2330;
L’ 6 =0;
thus, the duty ratio D of PWM at this time is obtained:
by integrating the processes, the user performs color modulation operation on the lamp, selects the color gamut S3 on the console, and inputs the color modulation parameter C in M in Y in = {0,35,155} or H in S in V in = {46,61%,100% }. The operation module returns the PWM duty ratio, namely the PWM signal duty ratio output of each primary color of the RGCALC is D = {0,0.8460,0,0.3813,1,0} and is sent to the driver, and each primary color of the driving light source emits light and mixes colors according to the requirement. It can be seen that 4 primary colors participate in the color mixing at this time.
EXAMPLE seven
The present embodiment also provides an electronic device, which, referring to fig. 3, comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to execute the computer program to perform the steps of any of the method embodiments described above.
Specifically, the processor 402 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
The processor 402 implements any of the multi-primary light control methods in the embodiments described above by reading and executing computer program instructions stored in the memory 404.
Optionally, the electronic apparatus may further include a transmission device 406 and an input/output device 408, where the transmission device 406 is connected to the processor 402, and the input/output device 408 is connected to the processor 402.
The transmitting device 406 may be used to receive or transmit data via a network. Specific examples of the network described above may include wired or wireless networks provided by communication providers of the electronic devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmitting device 406 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The input and output devices 408 are used to input or output information. In the present embodiment, the input information may be the gamut selection and the toning parameter C in M in Y in Or H in S in V in And the output information can be duty ratio or light color display and the like.
Example eight
The present embodiment also provides a readable storage medium having stored thereon a computer program comprising program code for controlling a process to execute a process, the process comprising the multi-primary light control method according to the first embodiment.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In general, the various embodiments may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
Embodiments of the invention may be implemented by computer software executable by a data processor of the mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets and/or macros can be stored in any device-readable data storage medium and they include program instructions for performing particular tasks. The computer program product may comprise one or more computer-executable components configured to perform embodiments when the program is run. The one or more computer-executable components may be at least one software code or a portion thereof. Further in this regard it should be noted that any block of the logic flow as in the figures may represent a program step, or an interconnected logic circuit, block and function, or a combination of a program step and a logic circuit, block and function. The software may be stored on physical media such as memory chips or memory blocks implemented within the processor, magnetic media such as hard or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. The physical medium is a non-transitory medium.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (7)
1. A multi-primary light control method, comprising the steps of:
s00, acquiring inherent highest brightness of each primary color of the multi-primary color lamp, inherent color coordinates corresponding to each primary color, CMY or HSV color mixing parameters input by a user and a target sub-color gamut;
s10, converting the CMY or HSV toning parameters into RGB toning parameters;
s20, sequentially connecting the inherent color coordinates of the primary colors in a CIE1931 chromaticity diagram to form a polygon;
selecting one vertex as a common vertex, and sequentially connecting the other vertices with the common vertex to form a plurality of sub color gamuts, wherein the number of the sub color gamuts is less than that of the primary colors;
s30, selecting one of the sub color gamuts as a default sub color gamut;
corresponding the three top points of the default sub-color gamut with the brightness values of the RGB primary colors in the RGB color matching parameters one by one to establish a corresponding relation;
rotating the default sub-color gamut around a common point of all the sub-color gamuts, and performing vertex overlap geometric transformation on the rest sub-color gamuts to establish a corresponding relation between each sub-color gamut and the brightness value of the RGB primary colors in the RGB color matching parameters;
s40, analyzing according to the RGB color matching parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color matching parameters to obtain target color mixing color coordinates;
s50, acquiring a total value of mixed brightness of each primary color and brightness corresponding to each primary color according to the target mixed color coordinate;
and S60, calculating the duty ratio according to the inherent highest brightness of each primary color and the brightness corresponding to each primary color and outputting to control the multi-primary-color lamp.
2. A multi-primary light control method according to claim 1, wherein in step S50, the total value of the mixed luminance of the primary colors and the luminance corresponding to the primary colors are obtained by substituting the coordinates of the target mixed color into a linear programming model, wherein the linear programming model is established based on the inherent maximum luminance of the primary colors, the coordinates of the inherent color of the primary colors, and the luminance values of the RGB primary colors in the RGB color-matching parameters.
3. A multi-primary light control method according to claim 1, wherein in step S60, the specific steps are:
and dividing the brightness corresponding to each primary color by the inherent highest brightness of each primary color to obtain a duty ratio, and outputting the duty ratio as a PWM signal to control the multi-primary color lamp.
4. A multi-primary light control method according to any of claims 1-3, wherein in step S00, the inherent maximum brightness of each primary color and the corresponding inherent color coordinates of the multi-primary light are obtained in a dark enclosed environment.
5. A multi-primary color light control device based on an RGB pattern, comprising:
the input unit is used for acquiring the inherent highest brightness of each primary color of the multi-primary color lamp, the inherent color coordinate corresponding to each primary color, a CMY (hue, saturation and value) toning parameter or an HSV (hue, saturation and value) toning parameter input by a user and a target sub-color gamut;
a signal conversion unit for converting the CMY toning parameters or the HSV toning parameters into RGB toning parameters;
the signal analysis unit is used for selecting one of the sub color gamuts as a default sub color gamut; corresponding three top points of the default sub-color gamut with brightness values of RGB primary colors in the RGB color mixing parameters one by one to establish a corresponding relation; rotating the default sub-color gamut around a common point of all sub-color gamuts, and performing vertex overlap geometric transformation on the other sub-color gamuts to establish a corresponding relationship between each sub-color gamut and a brightness value of an RGB primary color in the RGB color matching parameters; selecting one of the sub-color gamuts as a default sub-color gamut; corresponding three top points of the default sub-color gamut with brightness values of RGB primary colors in the RGB color mixing parameters one by one to establish a corresponding relation; rotating the default sub-color gamut around the common point of all the sub-color gamuts, and performing vertex overlapping geometric transformation on the other sub-color gamuts to establish a corresponding relation between each sub-color gamut and the brightness value of the RGB primary colors in the RGB color matching parameters;
the color matching operation unit is used for analyzing and obtaining target mixed color coordinates according to the RGB color matching parameters, the inherent highest brightness of each primary color, the color coordinates of each primary color and the corresponding relation between the sub color gamut and the RGB color matching parameters; acquiring a total value of mixed brightness of each primary color and brightness corresponding to each primary color according to the target mixed color coordinate;
and the output control unit is used for calculating the duty ratio according to the inherent highest brightness of each primary color and the brightness corresponding to each primary color and outputting to control the multi-primary-color lamp.
6. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is configured to execute the computer program to perform the multi-primary light control method according to any one of claims 1 to 4.
7. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, the computer program comprising program code for controlling a process to execute a process, the process comprising the multi-primary light control method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210644770.4A CN114900925B (en) | 2022-06-09 | 2022-06-09 | Multi-primary color light control method and application thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210644770.4A CN114900925B (en) | 2022-06-09 | 2022-06-09 | Multi-primary color light control method and application thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114900925A CN114900925A (en) | 2022-08-12 |
CN114900925B true CN114900925B (en) | 2023-03-10 |
Family
ID=82728987
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210644770.4A Active CN114900925B (en) | 2022-06-09 | 2022-06-09 | Multi-primary color light control method and application thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114900925B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117295206B (en) * | 2023-11-24 | 2024-04-12 | 杭州罗莱迪思科技股份有限公司 | Constant brightness constant power color mixing control method and lamp |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0563969A (en) * | 1991-09-04 | 1993-03-12 | Brother Ind Ltd | Color picture recorder |
CN104093247B (en) * | 2014-07-04 | 2016-05-11 | 复旦大学 | A kind of full gamut multichannel color mixing method |
CN106251369B (en) * | 2016-07-22 | 2019-04-16 | 北京小米移动软件有限公司 | Image processing method and device |
CN109819546B (en) * | 2017-11-21 | 2023-07-28 | 上海航空电器有限公司 | Wide color gamut dimming and mixing method and atmosphere lamp |
CN113453396A (en) * | 2021-06-11 | 2021-09-28 | 普联国际有限公司 | WRGB color mixing method and device based on additive color mixing, terminal equipment and storage medium |
-
2022
- 2022-06-09 CN CN202210644770.4A patent/CN114900925B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114900925A (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114727452B (en) | Multi-primary color light control method based on RGB mode and application thereof | |
US8981672B2 (en) | Color control of dynamic lighting | |
CN115334710B (en) | Isothermal line color matching control method and application thereof | |
US7760173B2 (en) | Projection display apparatus having image modulation timing changing function | |
CN109496035B (en) | Color matching method, color matching method and system for automatically realizing maximum brightness of colored lamp | |
CN115052387B (en) | Black body track and isotherm color modulation control method and application thereof | |
CN114900925B (en) | Multi-primary color light control method and application thereof | |
CN112616225A (en) | Color light lamp illumination control method and terminal equipment | |
US20070195382A1 (en) | Apparatus for gamut mapping and method of generating gamut boundary using the same | |
JP2008244613A (en) | Preparation method of color conversion definition of image output apparatus, its program, recording medium, image output apparatus and image processor | |
JP2001358962A (en) | Color image processor and method for image rendering | |
JPH1079020A (en) | Method for processing picture and device therefor | |
Murdoch | Dynamic color control in multiprimary tunable LED lighting systems | |
CN110277040A (en) | Show equipment | |
US8115978B2 (en) | Information processing method and information processing apparatus for simulating a result output from a first output device based on input data represented in a color space that is dependent on the input device by a second output device | |
CN114340080A (en) | Light mixing method, system and device of RGB-LED light source | |
CN110324476B (en) | Method for representing color generation performance of mobile phone screen | |
JP2006094524A (en) | Image-dependent black production system and mehotd using human contrast function highly sensitive to high frequency inside luminous channel | |
Calabria et al. | Herding CATs: a comparison of linear chromatic-adaptation transforms for CIECAM97s | |
US7430318B2 (en) | System and method for color correction for electronic printing | |
CN110363722A (en) | A kind of tone mapping method for electrowetting electric paper display | |
JP2007129439A (en) | Color conversion method | |
CN105869582B (en) | LCD white balances switch the optimization method and system of selection in real time | |
Masaoka | 23‐1: Invited Paper: Visualization of Color‐Gamut Coverage‐Gamut Ring Intersection | |
JP2005184601A (en) | Apparatus, method and program for image processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |