CN114867148A - Multi-path light mixing method and terminal - Google Patents
Multi-path light mixing method and terminal Download PDFInfo
- Publication number
- CN114867148A CN114867148A CN202210449684.8A CN202210449684A CN114867148A CN 114867148 A CN114867148 A CN 114867148A CN 202210449684 A CN202210449684 A CN 202210449684A CN 114867148 A CN114867148 A CN 114867148A
- Authority
- CN
- China
- Prior art keywords
- color
- color temperature
- value
- light mixing
- component value
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 8
- 230000003287 optical effect Effects 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
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
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the 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
- Processing Of Color Television Signals (AREA)
Abstract
本发明公开一种多路混光方法及终端,接收色温调节指令,所述色温调节指令包括目标色温值;根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于所述最优拟合曲线将所述目标色温值转换为RGB分量值;基于所述RGB分量值确定所述目标色温值对应的色坐标;根据所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,并根据所述RGBC四路混光比例调节色温,不再像现有技术中,使用调光软件或根据以往经验混光,而是基于根据黑体轨迹与预设色温颜色对照表中得到的最优拟合曲线计算出混光比例,能够实现对黑体轨迹色温的匹配,且无需多次模拟混光,从而能够快速精准地调节色温。
The invention discloses a multi-channel light mixing method and a terminal, which receive a color temperature adjustment instruction, wherein the color temperature adjustment instruction includes a target color temperature value; an optimal fitting curve is obtained according to a blackbody locus and a preset color temperature color comparison table, and based on the The optimal fitting curve converts the target color temperature value into an RGB component value; determines the color coordinate corresponding to the target color temperature value based on the RGB component value; calculates RGBC according to the color coordinate combined with the Glassman color mixing law. and adjust the color temperature according to the RGBC four-way mixing ratio, instead of using dimming software or mixing light according to past experience as in the prior art, it is based on the color comparison table according to the blackbody locus and the preset color temperature The optimal fitting curve obtained in , calculates the light mixing ratio, which can match the color temperature of the blackbody locus, and does not need to simulate the light mixing multiple times, so that the color temperature can be adjusted quickly and accurately.
Description
技术领域technical field
本发明涉及LED混光技术领域,尤其涉及一种多路混光方法及终端。The invention relates to the technical field of LED light mixing, in particular to a multi-channel light mixing method and a terminal.
背景技术Background technique
在LED照明灯具中,传统的调光调色是采用五路调光方式,这种调光方式能够满足亮度、色温等光学参数要求,但是这种调光灯具成本较高。In LED lighting fixtures, the traditional dimming and color matching adopts a five-way dimming method. This dimming method can meet the requirements of optical parameters such as brightness and color temperature, but the cost of such dimming lamps is relatively high.
LED混光技术是一种新型的调光技术,目前大多采用按不同的比例混合多路不同色温的光源,最终使混合后的光源满足设计要求;而现有的混光技术要么采用调光软件模拟,要么根据经验进行各路比例的设置,存在以下缺点:LED light mixing technology is a new type of dimming technology. At present, most of the light sources with different color temperatures are mixed in different proportions, so that the mixed light source can finally meet the design requirements; and the existing light mixing technology either uses dimming software Simulation, or setting the ratio of each channel based on experience, has the following disadvantages:
(1)通过调光软件模拟各路比例比较费时,且每路没有明确的相关关系;(1) It is time-consuming to simulate the proportion of each channel through dimming software, and there is no clear correlation between each channel;
(2)无法匹配黑体轨迹,无法满足照明产品色温要求。(2) The black body trajectory cannot be matched, and the color temperature requirements of lighting products cannot be met.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是:提供一种多路混光方法及终端,能够快速精准地调节色温。The technical problem to be solved by the present invention is to provide a multi-channel light mixing method and a terminal, which can quickly and accurately adjust the color temperature.
为了解决上述技术问题,本发明采用的一种技术方案为:In order to solve the above-mentioned technical problems, a kind of technical scheme adopted in the present invention is:
一种多路混光方法,包括步骤:A multi-channel light mixing method, comprising the steps of:
接收色温调节指令,所述色温调节指令包括目标色温值;receiving a color temperature adjustment instruction, where the color temperature adjustment instruction includes a target color temperature value;
根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于所述最优拟合曲线将所述目标色温值转换为RGB分量值;Obtain an optimal fitting curve according to the black body locus and the preset color temperature color comparison table, and convert the target color temperature value into RGB component value based on the optimal fitting curve;
基于所述RGB分量值确定所述目标色温值对应的色坐标;Determine the color coordinate corresponding to the target color temperature value based on the RGB component value;
根据所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,并根据所述RGBC四路混光比例调节色温。The RGBC four-way light mixing ratio is calculated according to the color coordinates combined with the Glassman color mixing law, and the color temperature is adjusted according to the RGBC four-way light mixing ratio.
为了解决上述技术问题,本发明采用的另一种技术方案为:In order to solve the above-mentioned technical problems, another technical scheme adopted by the present invention is:
一种多路混光终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A multi-channel optical mixing terminal, comprising a memory, a processor and a computer program stored in the memory and running on the processor, the processor implements the following steps when executing the computer program:
接收色温调节指令,所述色温调节指令包括目标色温值;receiving a color temperature adjustment instruction, where the color temperature adjustment instruction includes a target color temperature value;
根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于所述最优拟合曲线将所述目标色温值转换为RGB分量值;Obtain an optimal fitting curve according to the black body locus and the preset color temperature color comparison table, and convert the target color temperature value into RGB component value based on the optimal fitting curve;
基于所述RGB分量值确定所述目标色温值对应的色坐标;Determine the color coordinate corresponding to the target color temperature value based on the RGB component value;
根据所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,并根据所述RGBC四路混光比例调节色温。The RGBC four-way light mixing ratio is calculated according to the color coordinates combined with the Glassman color mixing law, and the color temperature is adjusted according to the RGBC four-way light mixing ratio.
本发明的有益效果在于:根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于最优拟合曲线将目标色温值转换为RGB分量值,基于RGB分量值确定色坐标,根据其结合格拉斯曼颜色混合定律计算RGBC四路混光比例,最后根据RGBC四路混光比例调节色温,不再像现有技术中,使用调光软件或根据以往经验混光,而是基于根据黑体轨迹与预设色温颜色对照表中得到的最优拟合曲线计算出混光比例,能够实现对黑体轨迹色温的匹配,且无需多次模拟混光,从而能够快速精准地调节色温。The beneficial effects of the invention are as follows: an optimal fitting curve is obtained according to the comparison table between the black body locus and the preset color temperature, and the target color temperature value is converted into the RGB component value based on the optimal fitting curve, and the color coordinate is determined based on the RGB component value. , calculate the RGBC four-way mixing ratio according to its combination with the Glassman color mixing law, and finally adjust the color temperature according to the RGBC four-way mixing ratio. The light mixing ratio is calculated based on the optimal fitting curve obtained from the blackbody locus and the preset color temperature color comparison table, which can realize the matching of the color temperature of the blackbody locus, and can adjust the color temperature quickly and accurately without needing to simulate the light mixing multiple times.
附图说明Description of drawings
图1为本发明实施例的一种多路混光方法的步骤流程图;FIG. 1 is a flow chart of steps of a multi-channel light mixing method according to an embodiment of the present invention;
图2为本发明实施例的一种多路混光终端的结构示意图;FIG. 2 is a schematic structural diagram of a multi-channel optical mixing terminal according to an embodiment of the present invention;
图3为本发明实施例多路混光方法中的黑体轨迹示意图。FIG. 3 is a schematic diagram of a blackbody locus in a multi-channel light mixing method according to an embodiment of the present invention.
具体实施方式Detailed ways
为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to describe in detail the technical content, achieved objects and effects of the present invention, the following descriptions are given with reference to the embodiments and the accompanying drawings.
请参照图1,本发明实施例提供了一种多路混光方法,包括步骤:Referring to FIG. 1, an embodiment of the present invention provides a multi-channel light mixing method, including the steps:
接收色温调节指令,所述色温调节指令包括目标色温值;receiving a color temperature adjustment instruction, where the color temperature adjustment instruction includes a target color temperature value;
根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于所述最优拟合曲线将所述目标色温值转换为RGB分量值;Obtain an optimal fitting curve according to the black body locus and the preset color temperature color comparison table, and convert the target color temperature value into RGB component value based on the optimal fitting curve;
基于所述RGB分量值确定所述目标色温值对应的色坐标;Determine the color coordinate corresponding to the target color temperature value based on the RGB component value;
根据所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,并根据所述RGBC四路混光比例调节色温。The RGBC four-way light mixing ratio is calculated according to the color coordinates combined with the Glassman color mixing law, and the color temperature is adjusted according to the RGBC four-way light mixing ratio.
从上述描述可知,本发明的有益效果在于:根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于最优拟合曲线将目标色温值转换为RGB分量值,基于RGB分量值确定色坐标,根据其结合格拉斯曼颜色混合定律计算RGBC四路混光比例,最后根据RGBC四路混光比例调节色温,不再像现有技术中,使用调光软件或根据以往经验混光,而是基于根据黑体轨迹与预设色温颜色对照表中得到的最优拟合曲线计算出混光比例,能够实现对黑体轨迹色温的匹配,且无需多次模拟混光,从而能够快速精准地调节色温。As can be seen from the above description, the beneficial effects of the present invention are: an optimal fitting curve is obtained according to the blackbody locus and the preset color temperature color comparison table, and the target color temperature value is converted into RGB component values based on the optimal fitting curve, and based on the RGB The component value determines the color coordinates, calculates the RGBC four-way mixing ratio according to the Glassman color mixing law, and finally adjusts the color temperature according to the RGBC four-way mixing ratio. It is no longer like the prior art, using dimming software or based on past experience. Instead, the light mixing ratio is calculated based on the optimal fitting curve obtained from the blackbody locus and the preset color temperature color comparison table, which can realize the matching of the color temperature of the blackbody locus, and does not need to simulate the light mixing multiple times, so that it can quickly Precisely adjust color temperature.
进一步地,所述根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线包括:Further, obtaining an optimal fitting curve according to the blackbody locus and the preset color temperature color comparison table includes:
从预设色温颜色对照表中确定符合黑体轨迹的目标颜色值;Determine the target color value that conforms to the blackbody locus from the preset color temperature and color comparison table;
根据所述目标颜色值进行拟合,得到一最优拟合曲线。Fitting is performed according to the target color value to obtain an optimal fitting curve.
进一步地,所述最优拟合曲线为:Further, the optimal fitting curve is:
R=330×T(-0.13),G=99×ln(T)-160,B=138×ln(T)-305;R=330×T (-0.13) , G=99×ln(T)-160, B=138×ln(T)-305;
式中,T表示所述目标色温值。In the formula, T represents the target color temperature value.
由上述描述可知,从预设色温颜色对照表中确定符合黑体轨迹的目标颜色值,根据目标颜色值进行拟合,得到一最优拟合曲线,实现了最优拟合曲线的生成,且该拟合曲线能够满足黑体轨迹色温要求,从而实现了对黑体轨迹色温的匹配。It can be seen from the above description that the target color value conforming to the blackbody locus is determined from the preset color temperature and color comparison table, and the fitting is performed according to the target color value to obtain an optimal fitting curve, which realizes the generation of the optimal fitting curve, and the The fitting curve can meet the requirements of the black body locus color temperature, thus realizing the matching of the black body locus color temperature.
进一步地,所述基于所述RGB分量值确定所述目标色温值对应的色坐标包括:Further, determining the color coordinates corresponding to the target color temperature value based on the RGB component values includes:
将所述RGB分量值进行转换,得到XYZ颜色空间;Converting the RGB component values to obtain an XYZ color space;
根据所述XYZ颜色空间确定所述目标色温值对应的色坐标。The color coordinates corresponding to the target color temperature value are determined according to the XYZ color space.
由上述描述可知,将RGB分量值进行转换,得到XYZ颜色空间,根据XYZ颜色空间确定目标色温值对应的色坐标,以此准确快速地计算出色坐标,便于后续根据色坐标确定混光比例。It can be seen from the above description that the RGB component values are converted to obtain the XYZ color space, and the color coordinates corresponding to the target color temperature value are determined according to the XYZ color space, so as to accurately and quickly calculate the color coordinates, which is convenient for the subsequent determination of the mixing ratio according to the color coordinates.
进一步地,所述RGB分量值包括第一分量值、第二分量值和第三分量值;Further, the RGB component values include a first component value, a second component value and a third component value;
所述将所述RGB分量值进行转换,得到XYZ颜色空间包括:The converting the RGB component values to obtain the XYZ color space includes:
根据RGB和XYZ颜色空间的转换公式将所述第一分量值、第二分量值和第三分量值进行转换,得到XYZ三刺激值;Convert the first component value, the second component value and the third component value according to the conversion formula of the RGB and XYZ color spaces to obtain the XYZ tristimulus value;
根据所述XYZ三刺激值得到XYZ颜色空间。The XYZ color space is obtained from the XYZ tristimulus values.
进一步地,所述XYZ三刺激值X,Y,Z为:Further, the XYZ tristimulus values X, Y, and Z are:
X=0.4124564*r+0.3575761*g+0.1804375*b;X=0.4124564*r+0.3575761*g+0.1804375*b;
Y=0.2126729*r+0.7151522*g+0.0721750*b;Y=0.2126729*r+0.7151522*g+0.0721750*b;
Z=0.0193339*r+0.1191920*g+0.9503041*b;Z=0.0193339*r+0.1191920*g+0.9503041*b;
式中,R表示所述第一分量值,G表示所述第二分量值,B表示所述第三分量值,r表示转换后的第一分量值,g表示转换后的第二分量值,b表示转换后的第三分量值。In the formula, R represents the first component value, G represents the second component value, B represents the third component value, r represents the converted first component value, and g represents the converted second component value value, b represents the transformed third component value.
由上述描述可知,根据RGB和XYZ颜色空间的转换公式将第一分量值、第二分量值和第三分量值进行转换,最后得到XYZ颜色空间,以便提高后续计算色温值对应的色坐标的精确度。It can be seen from the above description that the first component value, the second component value and the third component value are converted according to the conversion formula of the RGB and XYZ color spaces, and finally the XYZ color space is obtained, so as to improve the color coordinates corresponding to the color temperature value in the subsequent calculation. Accuracy.
进一步地,所述色坐标(x,y)为:Further, the color coordinates (x, y) are:
x=X/(X+Y+Z);x=X/(X+Y+Z);
y=Y/(X+Y+Z)。y=Y/(X+Y+Z).
由上述描述可知,色坐标根据XYZ三刺激值计算得来,以此合理、准确地计算得到色坐标。It can be seen from the above description that the color coordinates are calculated according to the XYZ tristimulus values, so that the color coordinates can be calculated reasonably and accurately.
进一步地,所述根据所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例包括:Further, the calculation of the RGBC four-way mixing ratio according to the color coordinates combined with the Glassman color mixing law includes:
获取三路单色光的亮度,并根据所述三路单色光的亮度确定总亮度;obtaining the brightness of the three channels of monochromatic light, and determining the total brightness according to the brightness of the three channels of monochromatic light;
根据所述总亮度和所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例。The RGBC four-way mixing ratio is calculated according to the total brightness and the color coordinates in combination with Grassmann's color mixing law.
由上述描述可知,由于混合色的色坐标只与单色光的色坐标和亮度有关,获取三路单色光的亮度,并根据三路单色光的亮度确定总亮度,根据总亮度和色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,以此提高了混光比例计算的准确性和效率,从而快速精准地调节色温。It can be seen from the above description that since the color coordinates of the mixed color are only related to the color coordinates and brightness of the monochromatic light, the brightness of the three monochromatic lights is obtained, and the total brightness is determined according to the brightness of the three monochromatic lights. The coordinates are combined with the Glassman color mixing law to calculate the RGBC four-way mixing ratio, which improves the accuracy and efficiency of the calculation of the mixing ratio, so that the color temperature can be adjusted quickly and accurately.
进一步地,所述根据所述RGBC四路混光比例调节色温包括:Further, the adjusting the color temperature according to the RGBC four-way light mixing ratio includes:
根据所述RGBC四路混光比例生成四路亮度脉冲信号;Generate four-way brightness pulse signals according to the RGBC four-way light mixing ratio;
根据所述四路亮度脉冲信号调节色温。The color temperature is adjusted according to the four-way brightness pulse signal.
由上述描述可知,根据RGBC四路混光比例生成四路亮度脉冲信号,根据其调节色温,能够将色温调节到用户想要的色温值,从而简单、高效地实现了色温调节。It can be seen from the above description that the four-channel brightness pulse signal is generated according to the RGBC four-channel light mixing ratio, and the color temperature can be adjusted according to the color temperature, so that the color temperature can be adjusted to the color temperature value desired by the user, so that the color temperature adjustment can be realized simply and efficiently.
请参照图2,本发明另一实施例提供了一种多路混光终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述多路混光方法中的各个步骤。Referring to FIG. 2, another embodiment of the present invention provides a multi-channel optical mixing terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor executing all Each step in the above-mentioned multi-channel light mixing method is realized when the computer program is described.
本发明上述多路混光方法及终端能够适用于LED照明灯具中,以下通过具体实施方式进行说明:The above-mentioned multi-channel light mixing method and terminal of the present invention can be applied to LED lighting fixtures, and the following is described by specific embodiments:
实施例一Example 1
请参照图1和图3,本实施例的一种多路混光方法,包括步骤:Please refer to FIG. 1 and FIG. 3 , a multi-channel light mixing method in this embodiment includes the steps:
S1、接收色温调节指令,所述色温调节指令包括目标色温值;S1. Receive a color temperature adjustment instruction, where the color temperature adjustment instruction includes a target color temperature value;
具体的,LED照明灯具接收移动设备(如手机)发送的色温调节指令,所述色温调节指令包括目标色温值,该目标色温值为用户最终想要看到的色温;Specifically, the LED lighting fixture receives a color temperature adjustment instruction sent by a mobile device (such as a mobile phone), and the color temperature adjustment instruction includes a target color temperature value, and the target color temperature value is the color temperature that the user finally wants to see;
S2、根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并基于所述最优拟合曲线将所述目标色温值转换为RGB分量值,具体包括:S2. Obtain an optimal fitting curve according to the blackbody locus and the preset color temperature and color comparison table, and convert the target color temperature value into RGB component values based on the optimal fitting curve, specifically including:
S21、从预设色温颜色对照表中确定符合黑体轨迹的目标颜色值;S21, from the preset color temperature and color comparison table, determine the target color value that conforms to the blackbody trajectory;
其中,所述黑体轨迹来源于CIE1931-XYZ标准色度系统,如图3所示;Wherein, the black body locus is derived from the CIE1931-XYZ standard chromaticity system, as shown in Figure 3;
S22、根据所述目标颜色值进行拟合,得到一最优拟合曲线;S22, performing fitting according to the target color value to obtain an optimal fitting curve;
具体的,使用软件根据目标颜色值进行拟合,得到一最优拟合曲线;Specifically, using the software to perform fitting according to the target color value to obtain an optimal fitting curve;
其中,所述最优拟合曲线为:Wherein, the optimal fitting curve is:
R=330×T(-0.13),G=99×ln(T)-160,B=138×ln(T)-305;R=330×T (-0.13) , G=99×ln(T)-160, B=138×ln(T)-305;
式中,T表示所述目标色温值;关于最优拟合曲线的拟合过程采用TannerHelland(坦纳·海兰德)的温度转换为RGB算法进行;In the formula, T represents the target color temperature value; the fitting process of the optimal fitting curve is carried out using TannerHelland's temperature conversion to RGB algorithm;
S23、基于所述最优拟合曲线将所述目标色温值转换为RGB分量值;S23, converting the target color temperature value into an RGB component value based on the optimal fitting curve;
其中,所述RGB分量值包括第一分量值、第二分量值和第三分量值,本实施例中,所述第一分量值为红色分量值,所述第二分量值为绿色分量值,所述第三分量值为蓝色分量值;The RGB component value includes a first component value, a second component value, and a third component value. In this embodiment, the first component value is a red component value, and the second component value is a green component. value, the third component value is the blue component value;
S3、基于所述RGB分量值确定所述目标色温值对应的色坐标,具体包括:S3. Determine the color coordinates corresponding to the target color temperature value based on the RGB component values, specifically including:
S31、将所述RGB分量值进行转换,得到XYZ颜色空间,具体包括:S31. Convert the RGB component values to obtain an XYZ color space, which specifically includes:
S311、根据RGB和XYZ颜色空间的转换公式将所述第一分量值、第二分量值和第三分量值进行转换,得到XYZ三刺激值;S311, convert the first component value, the second component value and the third component value according to the conversion formula of the RGB and XYZ color spaces to obtain the XYZ tristimulus value;
其中,所述XYZ三刺激值X,Y,Z为:Wherein, the XYZ tristimulus values X, Y, Z are:
X=0.4124564*r+0.3575761*g+0.1804375*b;X=0.4124564*r+0.3575761*g+0.1804375*b;
Y=0.2126729*r+0.7151522*g+0.0721750*b;Y=0.2126729*r+0.7151522*g+0.0721750*b;
Z=0.0193339*r+0.1191920*g+0.9503041*b;Z=0.0193339*r+0.1191920*g+0.9503041*b;
式中,R表示所述第一分量值,G表示所述第二分量值,B表示所述第三分量值,r表示转换后的第一分量值,g表示转换后的第二分量值,b表示转换后的第三分量值;In the formula, R represents the first component value, G represents the second component value, B represents the third component value, r represents the converted first component value, and g represents the converted second component value value, b represents the converted third component value;
S312、根据所述XYZ三刺激值得到XYZ颜色空间;S312, obtaining an XYZ color space according to the XYZ tristimulus values;
具体的,根据所述XYZ三刺激值得到CIE-XYZ颜色空间;Specifically, the CIE-XYZ color space is obtained according to the XYZ tristimulus values;
S32、根据所述XYZ颜色空间确定所述目标色温值对应的色坐标;S32, determine the color coordinates corresponding to the target color temperature value according to the XYZ color space;
其中,所述色坐标(x,y)为:Wherein, the color coordinates (x, y) are:
x=X/(X+Y+Z);x=X/(X+Y+Z);
y=Y/(X+Y+Z);y=Y/(X+Y+Z);
所述色坐标为CIE 1931-XYZ标准色度系统定义的色坐标;The color coordinate is the color coordinate defined by the CIE 1931-XYZ standard chromaticity system;
在该步骤中还得到:z=Z/(X+Y+Z),通过添加z值的计算便于说明S42中提到的公式由来;Also obtained in this step: z=Z/(X+Y+Z), by adding the calculation of the z value, it is convenient to explain the origin of the formula mentioned in S42;
S4、根据所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,并根据所述RGBC四路混光比例调节色温,具体包括:S4. Calculate the RGBC four-way light mixing ratio according to the color coordinates combined with the Glassman color mixing law, and adjust the color temperature according to the RGBC four-way light mixing ratio, specifically including:
S41、获取三路单色光的亮度,并根据所述三路单色光的亮度确定总亮度;S41, obtaining the brightness of the three-channel monochromatic light, and determining the total brightness according to the brightness of the three-channel monochromatic light;
具体的,使用光学测试设备积分球获取未调节前的三路单色光的亮度和三路单色光的色坐标,并根据三路单色光的亮度确定总亮度;Specifically, an optical testing device integrating sphere is used to obtain the brightness of the unadjusted three-channel monochromatic light and the color coordinates of the three-channel monochromatic light, and determine the total brightness according to the brightness of the three-channel monochromatic light;
通过计算出目标色温值对应的色坐标,用于混光结果使用;三路单色光的色坐标用于作为算法的输入;By calculating the color coordinates corresponding to the target color temperature value, it is used for the light mixing result; the color coordinates of the three-way monochromatic light are used as the input of the algorithm;
S42、根据所述总亮度和所述色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例;S42. Calculate the RGBC four-way mixing ratio according to the total brightness and the color coordinates in combination with the Glassman color mixing law;
Xr=xr×L×Cr/yr;X r =x r ×L×C r /y r ;
Yr=L×Cr;Y r =L×C r ;
Zr=(1-xr-yr)×L×Cr/yr;Z r =(1-x r -y r )×L×C r /y r ;
Xg=xg×L×Cg/yg;X g =x g ×L×C g /y g ;
Yg=L×Cg;Y g =L×C g ;
Zg=(1-xg-yg)×L×Cg/yg;Z g =(1-x g -y g )×L×C g /y g ;
Xc=xc×L×Cc/yc;X c =x c ×L×C c /y c ;
Yc=L×Cc;Y c =L×C c ;
Zc=(1-xc-yc)×L×Cc/yc;Z c =(1-x c -y c )×L×C c /y c ;
x=(xr/yr×Cr+xg/yg×Cg+xc/yc×Cc)/(Cr/yr+Cg/yg+Cc/yc);x=(x r /y r ×C r +x g /y g ×C g +x c /y c ×C c )/(C r /y r +C g /y g +C c /y c ) ;
y=1/(Cr/yr+Cg/yg+Cc/yc);y=1/(C r /y r +C g /y g +C c /y c );
其中,(xr,yr),(xg,yg),(xc,yc)表示所述三路单色光的色坐标,L表示所述总亮度,Cr,Cg,Cc表示所述RGBC四路混光比例,Xr,Yr,Zr表示红光的三刺激值,Xg,Yg,Zg表示绿光的三刺激值,Xc,Yc,Zc表示冷白光的三刺激值;由于光源的亮度和三刺激值的Y相同,所述红光的三刺激值、所述绿光的三刺激值和所述冷白光的三刺激值结合色品坐标公式即可简单推出;Wherein, (x r , y r ), (x g , y g ), (x c , y c ) represent the color coordinates of the three-way monochromatic light, L represents the total brightness, C r , C g , C c represents the RGBC four-way mixing ratio, X r , Y r , Z r represent the tristimulus values of red light, X g , Y g , Z g represent the tri-stimulus values of green light, X c , Y c , Z c represents the tristimulus value of the cool white light; since the brightness of the light source is the same as the Y of the tristimulus value, the tristimulus value of the red light, the tristimulus value of the green light and the tristimulus value of the cool white light combine the color The product coordinate formula can be simply deduced;
为了降低计算的复杂度,设置蓝光b=0,因此无需计算Cb,c表示冷白光;通过上述公式即可计算出Cr,Cg,Cc;In order to reduce the complexity of calculation, set blue light b=0, so it is not necessary to calculate C b , c represents cool white light; C r, C g, C c can be calculated by the above formula;
S43、根据所述RGBC四路混光比例生成四路亮度脉冲信号;S43, generating four-way brightness pulse signals according to the RGBC four-way light mixing ratio;
S44、根据所述四路亮度脉冲信号调节色温。S44. Adjust the color temperature according to the four-channel luminance pulse signal.
实施例二Embodiment 2
请参照图2,本实施例的一种多路混光终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现实施例一中的多路混光方法中的各个步骤。Referring to FIG. 2 , a multi-channel optical mixing terminal in this embodiment includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program Each step in the multi-channel light mixing method in Embodiment 1 is implemented.
综上所述,本发明提供的一种多路混光方法及终端,根据黑体轨迹与预设色温颜色对照表中得到一最优拟合曲线,并从预设色温颜色对照表中确定符合黑体轨迹的目标颜色值,根据目标颜色值进行拟合,得到一最优拟合曲线,实现了最优拟合曲线的生成,且该拟合曲线能够满足黑体轨迹色温要求,以此实现了对黑体轨迹色温的匹配;将RGB分量值进行转换,得到XYZ颜色空间,根据XYZ颜色空间确定目标色温值对应的色坐标,以此准确快速地计算出色坐标;根据色坐标结合格拉斯曼颜色混合定律计算RGBC四路混光比例,并根据RGBC四路混光比例调节色温,能够实现对黑体轨迹色温的匹配,且无需多次模拟混光,从而能够快速精准地调节色温。To sum up, a multi-channel light mixing method and terminal provided by the present invention obtain an optimal fitting curve according to the blackbody locus and the preset color temperature and color comparison table, and determine from the preset color temperature and color comparison table that conforms to the blackbody The target color value of the trajectory is fitted according to the target color value, and an optimal fitting curve is obtained, which realizes the generation of the optimal fitting curve, and the fitting curve can meet the color temperature requirements of the blackbody trajectory. Track color temperature matching; convert the RGB component values to obtain the XYZ color space, and determine the color coordinates corresponding to the target color temperature value according to the XYZ color space, so as to accurately and quickly calculate the outstanding coordinates; Calculate according to the color coordinates combined with Glassman's color mixing law The RGBC four-way mixing ratio, and the color temperature is adjusted according to the RGBC four-way mixing ratio, which can realize the matching of the color temperature of the blackbody locus, and can adjust the color temperature quickly and accurately without needing to simulate the mixing for many times.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are only examples of the present invention, and are not intended to limit the scope of the patent of the present invention. Any equivalent transformations made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in related technical fields, are similarly included in the within the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210449684.8A CN114867148A (en) | 2022-04-26 | 2022-04-26 | Multi-path light mixing method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210449684.8A CN114867148A (en) | 2022-04-26 | 2022-04-26 | Multi-path light mixing method and terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114867148A true CN114867148A (en) | 2022-08-05 |
Family
ID=82633509
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210449684.8A Pending CN114867148A (en) | 2022-04-26 | 2022-04-26 | Multi-path light mixing method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114867148A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118250863A (en) * | 2024-03-25 | 2024-06-25 | 漳州立达信光电子科技有限公司 | A light mixing method and light mixing circuit for LED lamp |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120286699A1 (en) * | 2011-05-12 | 2012-11-15 | Ledengin, Inc. | Apparatus for tuning of emitter with multiple leds to a single color bin |
| CN104053278A (en) * | 2014-06-06 | 2014-09-17 | 东南大学 | Four-color LED light mixing method based on visible light communication |
| CN105578166A (en) * | 2016-01-08 | 2016-05-11 | 浙江宇视科技有限公司 | Method and device for determining color temperature |
| CN109819546A (en) * | 2017-11-21 | 2019-05-28 | 上海航空电器有限公司 | A kind of width colour gamut light modulation light mixing method and atmosphere lamp |
| CN113324664A (en) * | 2021-04-20 | 2021-08-31 | 安徽曼德克环境科技有限公司 | Color temperature principle detection method |
| CN114245514A (en) * | 2021-12-15 | 2022-03-25 | 广州中大中鸣科技有限公司 | An adaptive color temperature adjustment method, device, electronic device and storage medium |
-
2022
- 2022-04-26 CN CN202210449684.8A patent/CN114867148A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120286699A1 (en) * | 2011-05-12 | 2012-11-15 | Ledengin, Inc. | Apparatus for tuning of emitter with multiple leds to a single color bin |
| CN104053278A (en) * | 2014-06-06 | 2014-09-17 | 东南大学 | Four-color LED light mixing method based on visible light communication |
| CN105578166A (en) * | 2016-01-08 | 2016-05-11 | 浙江宇视科技有限公司 | Method and device for determining color temperature |
| CN109819546A (en) * | 2017-11-21 | 2019-05-28 | 上海航空电器有限公司 | A kind of width colour gamut light modulation light mixing method and atmosphere lamp |
| CN113324664A (en) * | 2021-04-20 | 2021-08-31 | 安徽曼德克环境科技有限公司 | Color temperature principle detection method |
| CN114245514A (en) * | 2021-12-15 | 2022-03-25 | 广州中大中鸣科技有限公司 | An adaptive color temperature adjustment method, device, electronic device and storage medium |
Non-Patent Citations (4)
| Title |
|---|
| HUI REN: "Study on LED color mixing for Stage Lighting Based on Locus Fitting of Blackbody", 《2018 IEEE 3RD INTERNATIONAL CONFERENCE ON CLOUD COMPUTING AND INTERNET OF THINGS》, 12 March 2020 (2020-03-12) * |
| TANNER HELLAND: "《How to Convert Temperature (K) to RGB: Algorithm and Sample Code》", pages 6 - 7, Retrieved from the Internet <URL:https://tannerhelland.com/2012/09/18/convert-temperature-rgb-algorithm-code.html> * |
| TRACEYANG: "《Gamma校正与线性空间》", pages 12, Retrieved from the Internet <URL:https://www.cnblogs.com/TracePlus/p/4168447.html> * |
| 熊晨雨: "RGBW 四色LED混光优化在日光模拟中的应用", 《光子学报》, vol. 46, no. 8, 15 August 2017 (2017-08-15) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118250863A (en) * | 2024-03-25 | 2024-06-25 | 漳州立达信光电子科技有限公司 | A light mixing method and light mixing circuit for LED lamp |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109819546B (en) | Wide color gamut dimming and mixing method and atmosphere lamp | |
| CN113453396B (en) | WRGB color mixing method and device based on additive color mixing, terminal equipment and storage medium | |
| CN106817811B (en) | The method for realizing full gamut range light distribution based on PWM four primary LED | |
| CN110677955B (en) | A method and system for determining maximum brightness of RGB LED light source matching target chromaticity | |
| CN106162981A (en) | Light mixing method based on three-primary color LED | |
| CN105430790B (en) | Light mixing method for LED light source and linear lighting lamp | |
| CN110677954B (en) | Precise dimming method and system for super three-color LED light source | |
| WO2020088687A1 (en) | Automatic maximum brightness color matching implementation method for color lamp, and color modulation method and system | |
| CN110337158B (en) | Light emitting control method and device of light emitting diode | |
| CN112616225A (en) | Color light lamp illumination control method and terminal equipment | |
| CN114126145B (en) | Method for adjusting linear perception of color temperature of lamp and application thereof | |
| CN112423429A (en) | Method for fitting five-primary-color LED mixed light source | |
| CN113347757A (en) | White balance control method for RGBW lamp and application thereof | |
| CN114867148A (en) | Multi-path light mixing method and terminal | |
| CN116600439A (en) | A RGB lighting fixture based on color space color point switching algorithm | |
| EP4312466A1 (en) | Full-spectrum light-emitting diode (led) color management system based on rgbwcla seven-color integration | |
| CN106061014B (en) | Linear colour temperature database construction method, color temperature adjusting method and device, LED lamp | |
| CN106068050B (en) | Parameter-settable LED dimming and toning system with feedback function | |
| CN110708797B (en) | A precise dimming method and system for three-color LED light source | |
| CN207364687U (en) | Lighting device for shaping living environment atmosphere | |
| CN115633425B (en) | Hybrid light source control method, device, lighting equipment and storage medium | |
| CN120548779A (en) | Light emitting control method, device, electronic device and computer readable storage medium | |
| TWI720893B (en) | Color-mixing lighting control method and color-mixing lighting system | |
| TWI417696B (en) | Energy-saving method and device for adjusting color temperature | |
| CN115066054B (en) | Method and device for adjusting light effect of headphone indicator light, headphone device, and storage medium |
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 |