[go: up one dir, main page]

CN115052387B - Blackbody locus and isotherm toning control method and its application - Google Patents

Blackbody locus and isotherm toning control method and its application Download PDF

Info

Publication number
CN115052387B
CN115052387B CN202210964521.3A CN202210964521A CN115052387B CN 115052387 B CN115052387 B CN 115052387B CN 202210964521 A CN202210964521 A CN 202210964521A CN 115052387 B CN115052387 B CN 115052387B
Authority
CN
China
Prior art keywords
color
brightness
primary color
isotherm
inherent
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
Application number
CN202210964521.3A
Other languages
Chinese (zh)
Other versions
CN115052387A (en
Inventor
王忠泉
蓝抱年
占丰平
顾立明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Roledith Technology Co ltd
Original Assignee
Hangzhou Roledith Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Roledith Technology Co ltd filed Critical Hangzhou Roledith Technology Co ltd
Priority to CN202210964521.3A priority Critical patent/CN115052387B/en
Publication of CN115052387A publication Critical patent/CN115052387A/en
Application granted granted Critical
Publication of CN115052387B publication Critical patent/CN115052387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • H05B45/325Pulse-width modulation [PWM]

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application provides a black body track and isotherm toning control method and application thereof, comprising the following steps: acquiring inherent maximum brightness of each primary color of a light source, inherent color coordinates corresponding to each primary color and color mixing parameters input by a user; calculating a u 'v' color coordinate in a CIE1976-u 'v' system according to a set abscissa, and taking the u 'v' color coordinate as an intersection point of a black body trajectory line and a corresponding isothermal line; calculating a target color mixing coordinate according to the greenish color mixing parameter or the reddish color mixing parameter, the u 'v' color coordinate and the adjustment step length of the isotherm; 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 light source. The black body locus expression can conveniently and continuously adjust the light, so that a user can freely adjust the color on the isotherm according to the scene requirement, and more light color requirements are met.

Description

黑体轨迹及等温线调色控制方法及其应用Blackbody Locus and Isotherm Line Toning Control Method and Its Application

技术领域technical field

本申请涉及灯光控制技术领域,特别是涉及黑体轨迹及等温线调色控制方法及其应用。The present application relates to the technical field of lighting control, in particular to black body locus and isotherm line toning control methods and applications thereof.

背景技术Background technique

色温与生活密切相关,用光源调节不同的色温,给人营造不同的氛围。色温是照明光学中用于定义光源颜色的一个物理量。例如黄色光的色温为3000K,阳光下的白天色温为6500K。Color temperature is closely related to life, and different color temperatures can be adjusted with light sources to create different atmospheres for people. Color temperature is a physical quantity used in lighting optics to define the color of a light source. For example, the color temperature of yellow light is 3000K, and the daytime color temperature under sunlight is 6500K.

在CIE1931-xy色度图中(图2),内部横向的弧形曲线是黑体轨迹线,黑体轨迹线上的不同点表示不同色温。与黑体轨迹线相交的直线为等温线,等温线上的点表示相同的相关色温。例如图中6000K的等温线,其上所有点都表示相关色温为6000K,在相同相关色温情况下,色彩有可能偏绿(在黑体轨迹线上方),有可能偏红(在黑体轨迹线下方)。In the CIE1931-xy chromaticity diagram (Figure 2), the inner horizontal arc curve is the blackbody locus, and different points on the blackbody locus represent different color temperatures. The straight line intersecting the blackbody locus is an isotherm, and the points on the isotherm represent the same correlated color temperature. For example, on the isotherm line of 6000K in the figure, all points on it indicate that the correlated color temperature is 6000K. Under the same correlated color temperature, the color may be greenish (above the blackbody locus line) or reddish (below the blackbody locus line) .

现有技术的LED光源封装制造时,因芯片差异、荧光粉的类型和浓度配比、胶量均匀度等工艺直接影响封装产品的光色,使得白光光源的色坐标难以落在黑体轨迹线上。如中国专利CN108021536A公开的“一种色温黑体轨迹线上色温所对应的色度坐标的获取方法”,指导了LED分BIN(分档),例如把等温线(按距离黑体轨迹线的远近范围)切分为几段,以分成不同的BIN。但是相同相关色温的不同批次光源或不同型号光源,使用了不同BIN的光源。不同BIN的光源会产生偏色。During the packaging and manufacturing of LED light sources in the prior art, the light color of the packaged product is directly affected by processes such as chip differences, the type and concentration ratio of phosphor powder, and the uniformity of glue volume, making it difficult for the color coordinates of the white light source to fall on the black body locus. . For example, the Chinese patent CN108021536A discloses "a method for obtaining chromaticity coordinates corresponding to the color temperature on the blackbody locus line of color temperature", which guides LEDs to be divided into BINs (binning), for example, the isotherm (according to the distance from the blackbody locus line) Cut into several segments to separate into different BINs. However, different batches of light sources or different models of light sources with the same correlated color temperature use different BIN light sources. Light sources with different BINs will produce color cast.

而且该专利摘要所述“按此方法依次从1500K-100000K每隔100K的间隔求出每一个色温(CCT)下所对应的色度坐标ccx、ccy值”,可见计算量大并且求出的色坐标只是黑体轨迹上离散的一些点。在实际调光调色应用场景中,需要在黑体轨迹线上自由地连续调色,而不用关注当前对应色温的具体值。Moreover, it is stated in the patent abstract that "calculate the chromaticity coordinates ccx and ccy values corresponding to each color temperature (CCT) at intervals of 100K from 1500K-100000K in turn according to this method", it can be seen that the calculation amount is large and the obtained color Coordinates are just discrete points on the blackbody locus. In the actual dimming and color adjustment application scenarios, it is necessary to freely and continuously adjust the color on the black body locus without paying attention to the specific value of the current corresponding color temperature.

因此,亟待开发一种能在黑体轨迹线上自由地连续调色、并且能在等温线上调色的功能,以融合不同相关色温的光源,满足用户更多光色需求。Therefore, it is urgent to develop a function that can freely continuously adjust color on the black body locus line, and can adjust color on the isotherm line, so as to integrate light sources with different correlated color temperatures and meet users' needs for more light colors.

发明内容Contents of the invention

本申请实施例提供了黑体轨迹及等温线调色控制方法及其应用,针对目前技术无法在在黑体轨迹线上自由地连续调色、并且能在等温线上调色的功能的问题。The embodiment of the present application provides a blackbody locus and isotherm line color grading control method and its application, aiming at the problem that the current technology cannot freely and continuously color tone on the blackbody locus line and can color tone on the isotherm line.

本发明核心技术主要是实现在等温线上调色的控制方法,对于多基色光源,接收用户色温输入,接收用户偏色调节,通过配色运算输出对应PWM驱动光源,实现目标色彩在等温线上自由调节。The core technology of the present invention is mainly to realize the control method of color matching on the isotherm line. For the multi-primary color light source, it receives the user’s color temperature input, receives the user’s color cast adjustment, and outputs the corresponding PWM-driven light source through the color matching operation to realize the target color freely on the isotherm line. adjust.

第一方面,本申请提供了黑体轨迹及等温线调色控制方法,所述方法包括以下步骤:In a first aspect, the present application provides a method for controlling blackbody locus and isotherm color adjustment, the method comprising the following steps:

S00、获取光源的各基色固有最高亮度、各基色对应的固有色坐标以及用户输入的调色参数,其中调色参数包括黑体轨迹线的设定横坐标、偏绿调色参数及偏红调色参数;S00. Obtain the inherent maximum brightness of each primary color of the light source, the inherent color coordinates corresponding to each primary color, and the color adjustment parameters input by the user, wherein the color adjustment parameters include the set abscissa of the blackbody locus, greenish color adjustment parameters, and reddish color adjustment parameters parameter;

S10、根据设定横坐标计算出CIE1976-u'v'系统中的u'v'色坐标,以该u'v'色坐标作为黑体轨迹线与对应等温线的交点;S10. Calculate the u'v' color coordinate in the CIE1976-u'v' system according to the set abscissa, and use the u'v' color coordinate as the intersection point of the blackbody locus line and the corresponding isotherm;

S20、根据偏绿调色参数或偏红调色参数、u'v'色坐标及等温线的调节步长以及计算出目标混色坐标;S20. According to the greenish toning parameter or the reddish toning parameter, the u'v' color coordinate and the adjustment step size of the isotherm, and calculate the target color mixing coordinate;

S30、根据目标混色色坐标获取各基色混合亮度的总值以及各基色对应的亮度;S30. Obtain the total value of the mixed luminance of each primary color and the corresponding luminance of each primary color according to the color coordinates of the target mixed color;

S40、根据各基色固有最高亮度和各基色对应的亮度计算占空比并输出对光源进行控制。S40. Calculate and output a duty cycle according to the intrinsic maximum brightness of each primary color and the brightness corresponding to each primary color to control the light source.

进一步地,步骤S10中,根据设定横坐标和黑体轨迹线计算出对应的纵坐标,以此得到u'v'色坐标。Further, in step S10, the corresponding ordinate is calculated according to the set abscissa and the blackbody locus, so as to obtain the u'v' color coordinate.

进一步地,偏绿调色参数和偏红调色参数均为调色步长与各自调节等级的乘积。Further, both the greenish toning parameter and the reddish toning parameter are the product of the toning step length and the respective adjustment levels.

进一步地,步骤S30中,当各基色混合亮度的总值为0时,保持占空比为上个状态。Further, in step S30, when the total value of the mixed luminance of each primary color is 0, the duty cycle is kept at the previous state.

进一步地,步骤S30中,通过将目标混色色坐标带入线性规划模型中得到各基色混合亮度的总值以及各基色对应的亮度,其中线性规划模型基于各基色固有最高亮度、各基色固有色坐标及目标混色色坐标建立。Further, in step S30, the total value of the mixed brightness of each primary color and the corresponding brightness of each primary color are obtained by bringing the target mixed color coordinates into the linear programming model, wherein the linear programming model is based on the inherent highest brightness of each primary color, the inherent color coordinates of each primary color And target mixed color coordinates are established.

进一步地,步骤S40中,具体步骤为:Further, in step S40, the specific steps are:

将各基色对应的亮度一一对应除以各基色固有最高亮度得到占空比,该占空比作为PWM信号输出以控制光源。The brightness corresponding to each primary color is divided by the inherent maximum brightness of each primary color to obtain a duty cycle, and the duty cycle is output as a PWM signal to control the light source.

进一步地,步骤S00中,在黑暗封闭环境中获取光源的各基色固有最高亮度和对应的固有色坐标。Further, in step S00, the intrinsic maximum brightness of each primary color of the light source and the corresponding intrinsic color coordinates of the light source are acquired in a dark closed environment.

第二方面,本申请提供了一种黑体轨迹及等温线调色控制装置,包括:In the second aspect, the present application provides a blackbody locus and isotherm color control device, including:

输入单元,用于获取光源的各基色固有最高亮度、各基色对应的固有色坐标以及用户输入的调色参数,其中调色参数包括黑体轨迹线的设定横坐标、偏绿调色参数及偏红调色参数;The input unit is used to obtain the inherent maximum brightness of each primary color of the light source, the inherent color coordinates corresponding to each primary color, and the color adjustment parameters input by the user. red color parameter;

信号解析单元,用于根据设定横坐标计算出CIE1976-u'v'系统中的u'v'色坐标,以该u'v'色坐标作为黑体轨迹线与对应等温线的交点;The signal analysis unit is used to calculate the u'v' color coordinate in the CIE1976-u'v' system according to the set abscissa, and use the u'v' color coordinate as the intersection point of the black body locus and the corresponding isotherm;

等温线调节单元,用于根据偏绿调色参数或偏红调色参数、u'v'色坐标及等温线的调节步长以及计算出目标混色坐标;The isotherm adjustment unit is used to adjust the step length and calculate the target color mixing coordinates according to the greenish toning parameters or reddish toning parameters, u'v' color coordinates and isotherm;

配色运算单元,用于根据目标混色色坐标获取各基色混合亮度的总值以及各基色对应的亮度;A color matching operation unit, configured to obtain the total value of the mixed brightness of each primary color and the corresponding brightness of each primary color according to the target mixed color coordinates;

输出控制单元,用于根据各基色固有最高亮度和各基色对应的亮度计算占空比并输出对光源进行控制。The output control unit is used to calculate the duty cycle according to the intrinsic maximum brightness of each primary color and the brightness corresponding to each primary color and output the output to control the light source.

第三方面,本申请提供了一种电子装置,包括存储器和处理器,存储器中存储有计算机程序,处理器被设置为运行计算机程序以执行上述的黑体轨迹及等温线调色控制方法。In a third aspect, the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above blackbody locus and isotherm color grading control method.

第四方面,本申请提供了一种可读存储介质,可读存储介质中存储有计算机程序,计算机程序包括用于控制过程以执行过程的程序代码,过程包括根据上述的黑体轨迹及等温线调色控制方法。In a fourth aspect, the present application provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and the computer program includes program codes for controlling the process to execute the process. color control method.

本发明的主要贡献和创新点如下:1、与现有技术计算色温对应黑体轨迹坐标为离散的点,不便于连续调色相比。本发明给出精确的黑体轨迹坐标表达式,可方便地连续调光;The main contributions and innovations of the present invention are as follows: 1. Compared with the prior art, the coordinates of the blackbody locus corresponding to the calculated color temperature are discrete points, which is inconvenient for continuous color-grading comparison. The present invention provides precise blackbody locus coordinate expression, which can conveniently and continuously adjust light;

2、与现有技术相比,本发明对于多基色灯具,接收用户黑体轨迹横坐标输入,接收用户偏色调节,通过配色运算输出对应PWM驱动光源,实现目标色彩在等温线上自由调节;2. Compared with the prior art, for multi-primary-color lamps, the present invention receives the input of the abscissa of the user's blackbody locus, receives the user's color cast adjustment, and outputs the corresponding PWM-driven light source through color matching calculation, so as to realize the free adjustment of the target color on the isotherm;

3、与现有技术相比,本发明使用CIE1976-u’v’色度图实施,可确保等温线的精确性,以及确保在等温线上按步长调节时,在视觉上是均匀变化的;3. Compared with the prior art, the present invention is implemented using the CIE1976-u'v' chromaticity diagram, which can ensure the accuracy of the isotherm and ensure that the isotherm is visually uniform when adjusted by steps ;

4、与现有技术相比,本发明实现在等温线上调色的控制方法,让用户根据场景需求,在等温线上自由调色,以满足更多光色需求,而且配色运算单元引入系统各基色的亮度和色度参数,精准闭环配色。4. Compared with the existing technology, the present invention realizes the control method of color matching on the isotherm line, allowing users to freely color color on the isotherm line according to the scene requirements, so as to meet more light and color requirements, and the color matching operation unit is introduced into the system Brightness and chromaticity parameters of each primary color, precise closed-loop color matching.

本申请的一个或多个实施例的细节在以下附图和描述中提出,以使本申请的其他特征、目的和优点更加简明易懂。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below, so as to make other features, objects, and advantages of the application more comprehensible.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:

图1是根据本申请实施例的黑体轨迹及等温线调色控制方法的流程;FIG. 1 is a flow chart of a method for controlling blackbody locus and isotherm color toning according to an embodiment of the present application;

图2是CIE1931-xy色度图中黑体轨迹线的示意图;Fig. 2 is a schematic diagram of the blackbody locus in the CIE1931-xy chromaticity diagram;

图3是本申请采用的CIE1976-u’v’色度图;Fig. 3 is the CIE1976-u'v' chromaticity diagram that the present application adopts;

图4是根据本申请实施例的电子装置的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. Implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with aspects of one or more embodiments of the present specification as recited in the appended claims.

需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述得更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or less steps than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; multiple steps described in this specification may also be combined into a single step in other embodiments describe.

目前相同相关色温的不同批次光源或不同型号光源,使用了不同BIN(分档)的光源。不同BIN(分档)的光源会产生偏色。At present, different batches of light sources or different types of light sources with the same correlated color temperature use different BIN (binning) light sources. Light sources with different BIN (binning) will produce color cast.

基于此,本发明实现在等温线上调色的控制方法,对于多基色光源,接收用户色温输入,接收用户偏色调节,通过配色运算输出对应PWM驱动光源,实现目标色彩在等温线上自由调节。Based on this, the present invention realizes the control method of color matching on the isotherm. For the multi-primary color light source, it receives the user’s color temperature input, receives the user’s color cast adjustment, and outputs the corresponding PWM-driven light source through the color matching operation, so as to realize the free adjustment of the target color on the isotherm. .

实施例一Embodiment one

具体地,本申请实施例提供了黑体轨迹及等温线调色控制方法,具体地,参考图1,所述方法包括以下步骤:Specifically, the embodiment of the present application provides a method for controlling blackbody locus and isotherm color adjustment. Specifically, referring to FIG. 1 , the method includes the following steps:

S00、获取光源的各基色固有最高亮度、各基色对应的固有色坐标以及用户输入的调色参数,其中调色参数包括黑体轨迹线的设定横坐标、偏绿调色参数及偏红调色参数;S00. Obtain the inherent maximum brightness of each primary color of the light source, the inherent color coordinates corresponding to each primary color, and the color adjustment parameters input by the user, wherein the color adjustment parameters include the set abscissa of the blackbody locus, greenish color adjustment parameters, and reddish color adjustment parameters parameter;

在本实施例中,在黑暗封闭环境中获取光源的各基色固有最高亮度和对应的固有色坐标。In this embodiment, the intrinsic maximum brightness of each primary color of the light source and the corresponding intrinsic color coordinates of the light source are acquired in a dark closed environment.

其中,偏绿调色参数和偏红调色参数的取值范围均大于0且小于等于0.03。Wherein, the value ranges of the greenish toning parameter and the reddish toning parameter are both greater than 0 and less than or equal to 0.03.

S10、根据设定横坐标计算出CIE1976-u'v'系统中的u'v'色坐标,以该u'v'色坐标作为黑体轨迹线(图3中的f(u’,v’))与对应等温线(图3中的h(u’,v’))的交点,参见图3中的MTS10. Calculate the u'v' color coordinate in the CIE1976-u'v' system according to the set abscissa, and use the u'v' color coordinate as the blackbody locus (f(u', v') in Fig. 3 ) and the corresponding isotherm (h(u',v') in Figure 3), see M T in Figure 3;

在本实施例中,现有技术使用最多的CIE1931-xy色度图,在视觉上不均匀,与人眼视觉不一致。CIE1960-uv色度图在视觉上进一步均匀。而CIE1976-u’v’色度图在视觉上均匀性好。因此本申请使用CIE1976-u’v’色度图实施,以确保等温线的精确性,以及确保在等温线上按步长调节时,在视觉上是均匀变化的。In this embodiment, the most widely used CIE1931-xy chromaticity diagram in the prior art is visually uneven and inconsistent with human vision. The CIE1960-uv chromaticity diagram is visually further uniform. The CIE1976-u'v' chromaticity diagram has good visual uniformity. Therefore, this application is implemented using the CIE1976-u'v' chromaticity diagram to ensure the accuracy of the isotherm, and to ensure that the isotherm is visually uniform when adjusted in steps.

S20、根据偏绿调色参数或偏红调色参数、u'v'色坐标及等温线的调节步长以及计算出目标混色坐标,参见图3中的偏绿PT-n和偏红QT-nS20. According to the greenish toning parameters or reddish toning parameters, u'v' color coordinates and the adjustment step size of the isotherm, and calculate the target color mixing coordinates, see the greenish P Tn and reddish Q Tn in Figure 3;

S30、根据目标混色色坐标获取各基色混合亮度的总值以及各基色对应的亮度;S30. Obtain the total value of the mixed luminance of each primary color and the corresponding luminance of each primary color according to the color coordinates of the target mixed color;

在本实施例中,通过将目标混色色坐标带入线性规划模型中得到各基色混合亮度的总值以及各基色对应的亮度,其中线性规划模型基于各基色固有最高亮度、各基色固有色坐标及目标混色色坐标建立。In this embodiment, the total value of the mixed luminance of each primary color and the corresponding brightness of each primary color are obtained by bringing the target mixed color coordinates into the linear programming model, wherein the linear programming model is based on the inherent maximum brightness of each primary color, the inherent color coordinates of each primary color and The target mixed color color coordinates are established.

在本实施例中,当各基色混合亮度的总值为0时,保持占空比为上个状态。In this embodiment, when the total value of the mixed luminance of each primary color is 0, the duty cycle is kept at the previous state.

S40、根据各基色固有最高亮度和各基色对应的亮度计算占空比并输出对光源进行控制。S40. Calculate and output a duty cycle according to the intrinsic maximum brightness of each primary color and the brightness corresponding to each primary color to control the light source.

其中,将各基色对应的亮度一一对应除以各基色固有最高亮度得到占空比,该占空比作为PWM信号输出以控制光源。Wherein, the brightness corresponding to each primary color is divided one by one by the intrinsic maximum brightness of each primary color to obtain a duty cycle, and the duty cycle is output as a PWM signal to control the light source.

实施例二Embodiment two

基于相同的构思,本申请还提出了一种黑体轨迹及等温线调色控制装置,包括:Based on the same idea, this application also proposes a blackbody locus and isotherm color adjustment control device, including:

输入单元,用于获取光源的各基色固有最高亮度、各基色对应的固有色坐标以及用户输入的调色参数,其中调色参数包括黑体轨迹线的设定横坐标、偏绿调色参数及偏红调色参数;The input unit is used to obtain the inherent maximum brightness of each primary color of the light source, the inherent color coordinates corresponding to each primary color, and the color adjustment parameters input by the user. red color parameter;

在本实施例中,输入单元用于接收用户的黑体轨迹线的设定横坐标(通过在控台上推动推杆),以及接收用户偏绿调色参数d、偏红调色参数d’的输入;In this embodiment, the input unit is used to receive the set abscissa of the user's black body locus (by pushing the pusher on the console), and receive the user's greenish toning parameter d and reddish toning parameter d' enter;

在信号解析前,还需要获取如各基色最大亮度值L'1+L'2 +…+L'm;获取各基色的色坐标(u'1,v'1)、(u'2,v'2) 、…、(u'm,v'm);Before signal analysis, it is also necessary to obtain the maximum brightness value of each primary color L' 1 +L' 2 +...+L'm; obtain the color coordinates (u' 1 ,v' 1 ), (u' 2 ,v ' 2 ),..., (u' m ,v' m );

信号解析单元,用于根据设定横坐标计算出CIE1976-u'v'系统中的u'v'色坐标,以该u'v'色坐标作为黑体轨迹线与对应等温线的交点;The signal analysis unit is used to calculate the u'v' color coordinate in the CIE1976-u'v' system according to the set abscissa, and use the u'v' color coordinate as the intersection point of the black body locus and the corresponding isotherm;

在本实施例中,信号解析单元用于把设定横坐标解析成黑体轨迹线上对应的色坐标MT(u'T,v'T);In this embodiment, the signal analysis unit is used to analyze the set abscissa into the corresponding color coordinate M T (u' T , v' T ) on the blackbody locus line;

解析方法为将设定横坐标u'T代入到黑体轨迹线f(u’,v’)的表达式:The analytical method is to substitute the set abscissa u' T into the expression of the black body locus f(u', v'):

Figure DEST_PATH_IMAGE002
,其中(0.18<u’<0.41),即可计算出色坐标MT(u'T,v'T)的纵坐标v'T,然后就能够得到色坐标MT(u'T,v'T)。
Figure DEST_PATH_IMAGE002
, where (0.18<u'<0.41), the ordinate v' T of the excellent coordinate M T (u' T ,v' T ) can be calculated, and then the color coordinate M T (u' T ,v' T ) can be obtained ).

等温线调节单元,用于根据偏绿调色参数或偏红调色参数、u'v'色坐标及等温线的调节步长以及计算出目标混色坐标;The isotherm adjustment unit is used to adjust the step length and calculate the target color mixing coordinates according to the greenish toning parameters or reddish toning parameters, u'v' color coordinates and isotherm;

在本实施例中,用于计算目标色坐标PT-n(u'mix,v'mix),PT-n表示偏绿调色时T色温下的第n级调节,当接收到用户偏绿调色参数d(0<d≤0.03)时,用以下方程建立:In this embodiment, it is used to calculate the target color coordinates P Tn (u' mix , v' mix ), where P Tn represents the nth level adjustment at T color temperature when the greenish color tone is received, when the user's greenish color tone parameter is received When d(0<d≤0.03), use the following equation to establish:

Figure DEST_PATH_IMAGE004
Figure DEST_PATH_IMAGE004

在本实施例中,用于计算目标色坐标QT-n(u'mix,v'mix),QT-n表示偏红调色时T色温下的第n级调节,当接收到用户偏红调色参数d’(0<d’≤0.03)时,用以下方程建立:In this embodiment, it is used to calculate the target color coordinates Q Tn (u' mix , v' mix ), Q Tn represents the nth level adjustment under T color temperature when reddish toning, when receiving the user's reddish toning parameter When d'(0<d'≤0.03), use the following equation to establish:

Figure DEST_PATH_IMAGE006
Figure DEST_PATH_IMAGE006
.

配色运算单元,用于根据目标混色色坐标获取各基色混合亮度的总值以及各基色对应的亮度;A color matching operation unit, configured to obtain the total value of the mixed brightness of each primary color and the corresponding brightness of each primary color according to the target mixed color coordinates;

在本实施例中,配色运算单元对于任意不少于3种基色的光源,基于以下线性规划模型建立:In this embodiment, the color matching operation unit is established based on the following linear programming model for any light source of no less than three primary colors:

目标函数:max Lmix=L'1+L'2 +…+L'm Objective function: max L mix =L' 1 +L' 2 +...+L' m

Figure DEST_PATH_IMAGE008
Figure DEST_PATH_IMAGE008

其中,下标m为不少于3的正整数表示基色数量;L'1、L'2、…、L'm是各基色待定的目标亮度,属于决策变量;Lmix是待定的混色总亮度;L1、L2、.....、Lm是各基色固有的最大亮度;(u'mix,v'mix)是目标混色的色坐标;(u'1,v'1)、(u'2,v'2) 、…、(u'm,v'm)是各基色固有的色坐标。Among them, the subscript m is a positive integer not less than 3, indicating the number of primary colors; L' 1 , L' 2 , ..., L' m are the undetermined target brightness of each primary color, which belongs to the decision variable; L mix is the undetermined total brightness of mixed colors ; L 1 , L 2 ,..., L m are the inherent maximum brightness of each primary color; (u' mix , v' mix ) is the color coordinate of the target mixed color; (u' 1 , v' 1 ), ( u' 2 ,v' 2 ), ..., (u' m ,v' m ) are the inherent color coordinates of each primary color.

其中,当线性规划模型的最优解Lmix=0时,表示由用户输入参数所确定的目标色坐标PT-n(u'mix,v'mix)不在m基色组成的色域范围内,此时执行的操作是:让占空比D的输出保持上一个状态;也可同时返回信息提示。Among them, when the optimal solution L mix of the linear programming model =0, it means that the target color coordinate P Tn (u' mix , v' mix ) determined by the user input parameters is not within the color gamut composed of m primary colors, at this time The operation to be performed is: keep the output of the duty cycle D in the previous state; it can also return information prompts at the same time.

输出控制单元,用于根据各基色固有最高亮度和各基色对应的亮度计算占空比并输出对光源进行控制。The output control unit is used to calculate the duty cycle according to the intrinsic maximum brightness of each primary color and the brightness corresponding to each primary color and output the output to control the light source.

其中,占空比记作D:Among them, the duty cycle is recorded as D:

Figure DEST_PATH_IMAGE010
Figure DEST_PATH_IMAGE010

其中L'1、L'2、…、L'm是各基色配色结果亮度,L1、L2、.....、Lm是各基色固有的最大亮度。Among them, L' 1 , L' 2 , ..., L' m are the brightness of each primary color matching result, and L 1 , L 2 , ..., L m are the intrinsic maximum brightness of each primary color.

实施例三Embodiment three

基于实施例一或实施例二,本实施例把某台4基色RGBW(红、绿、蓝、白)灯置于黑房中,测定各基色的最大亮度分别记为:Based on Embodiment 1 or Embodiment 2, in this embodiment, a certain 4-primary color RGBW (red, green, blue, white) lamp is placed in a dark room, and the maximum brightness of each primary color is measured as:

LR=850;LG=2500;LB=450;LW=2050。L R =850; L G =2500; L B =450; L W =2050.

同时测定各基色的色坐标,分别记为:At the same time, the color coordinates of each primary color are measured, which are recorded as:

u'R=0.5442, v'R =0.5180;u' R =0.5442, v' R =0.5180;

u'G=0.0553, v'G =0.5715;u' G =0.0553, v' G =0.5715;

u'B=0.1691, v'B =0.1241;u' B =0.1691, v' B =0.1241;

u'W=0.1702, v'W =0.4133;u'W =0.1702, v'W = 0.4133 ;

此时,例如用户对光源调色操作,在控台上推动滑杆输入设定横坐标u'T=0.1996,根据实施例二中的黑体轨迹表达式计算出对应的纵坐标V’T:At this time, for example, the user operates the color adjustment of the light source, pushes the slide bar on the console to input and set the abscissa u' T =0.1996, and calculates the corresponding ordinate V' T according to the black body locus expression in the second embodiment:

Figure DEST_PATH_IMAGE012
Figure DEST_PATH_IMAGE012

得到CIE1976-u'v'系统中的u’v’色坐标记作MT(u'T,v'T)=(0.1996,0.4639)。该点即为黑体轨迹线与对应等温线的交点。The u'v' color coordinates in the CIE1976-u'v' system are obtained as M T (u' T ,v' T )=(0.1996,0.4639). This point is the intersection of the blackbody locus and the corresponding isotherm.

设在等温线上的调色步长为λ=0.002,当在偏绿通道上输入1级调节时,即d=1×λ=0.002,记目标混色调节点为PT-1(u'mix,v'mix)。Set the color step size on the isotherm line as λ=0.002, when inputting 1-level adjustment on the greenish channel, that is, d=1×λ=0.002, record the target mixing color node as P T-1 (u' mix ,v' mix ).

代入(u'T,v'T)的数值及d数值到下列方程,可解出目标混色坐标PT-1(u'mix,v'mix):Substituting the value of (u' T , v' T ) and the value of d into the following equation, the target color mixing coordinate P T-1 (u' mix , v' mix ) can be solved:

Figure DEST_PATH_IMAGE014
Figure DEST_PATH_IMAGE014

解得PT-1(u'mix,v'mix)=(0.1978,0.4646),即为目标混色坐标。The solution is P T-1 (u' mix , v' mix )=(0.1978,0.4646), which is the target color mixing coordinates.

把上述数据代入下列线性规划模型:Substitute the above data into the following linear programming model:

目标函数:max Lmix=L'R+L'G +L'B +L'w Objective function: max L mix = L' R + L' G + L' B + L' w

Figure DEST_PATH_IMAGE016
Figure DEST_PATH_IMAGE016

代入数据求解模型得,混合亮度有最大值Lmix=L'R+L'G +L'B +L'w=4634.517,此时RGBW各基色的亮度分别为:L'R=850;L'G=1680.737;L'B=53.780;L'W=2050。Substituting the data to solve the model, the mixed brightness has a maximum value L mix =L' R +L' G +L' B +L' w =4634.517. At this time, the brightness of each primary color of RGBW is: L' R =850; L' G =1680.737; L' B =53.780; L' W =2050.

于是得到此时PWM的占空比D:Then get the duty ratio D of PWM at this time:

Figure DEST_PATH_IMAGE018
Figure DEST_PATH_IMAGE018

综合上述过程,用户对光源调色操作,在控台上推动滑杆输入设定横坐标u'T=0.1996,并在偏绿通道输入调节等级为1。配色运算单元返回PWM占空比,即把RGBW各基色的PWM信号占空比输出为D={1,0.6723,0.1195,1}发送至驱动器,驱动光源各基色按所需发光并混色。调色后的色温仍然为黑体轨迹线上当前点MT对应的色温,只是向绿色方向偏移了1级。Based on the above process, the user adjusts the color of the light source, pushes the slider on the console to input and set the abscissa u' T =0.1996, and enters the adjustment level as 1 in the greenish channel. The color matching operation unit returns the PWM duty cycle, that is, the PWM signal duty cycle of each primary color of RGBW is output as D={1,0.6723,0.1195,1} and sent to the driver to drive each primary color of the light source to emit light and mix colors as required. The color temperature after grading is still the color temperature corresponding to the current point MT on the black body locus line, but it is shifted to the green direction by 1 level.

实施例四Embodiment Four

在实施例三的基础上,用户在偏绿通道上输入2级调节时,d=2×λ=0.004,此时利用实施例四同样的公式求得目标混色坐标PT-2(u'mix,v'mix)=( 0.1960,0.4654);On the basis of Embodiment 3, when the user inputs 2-level adjustment on the greenish channel, d=2×λ=0.004, at this time, use the same formula as Embodiment 4 to obtain the target color mixing coordinates PT -2 (u' mix ,v' mix )=( 0.1960,0.4654);

混合亮度最大值Lmix=L'R+L'G +L'B +L'w=4707.677The maximum value of mixed brightness L mix =L' R +L' G +L' B +L' w =4707.677

RGBW各基色的亮度分别为:L'R=850;L'G=1751.990;L'B=55.688;L'W=2050;The brightness of each primary color of RGBW is: L' R =850; L' G =1751.990; L' B =55.688; L' W =2050;

最终占空比D={1,0.7008,0.1238,1}。The final duty cycle D={1,0.7008,0.1238,1}.

综合上述过程,用户对光源调色操作,在控台上推动滑杆输入设定横坐标u'T=0.1996,并在偏绿通道输入调节等级为2。配色运算单元返回PWM占空比,即把RGBW各基色的PWM信号占空比输出为D={1,0.7008, 0.1238,1}发送至驱动器,驱动光源各基色按所需发光并混色。调色后的色温仍然为黑体轨迹线上当前点MT对应的色温,只是向绿色方向偏移了2级。Based on the above process, the user adjusts the color of the light source, pushes the slider on the console to input and set the abscissa u' T =0.1996, and enters the adjustment level as 2 in the greenish channel. The color matching calculation unit returns the PWM duty cycle, that is, the PWM signal duty cycle of each primary color of RGBW is output as D={1,0.7008,0.1238,1} and sent to the driver to drive each primary color of the light source to emit light and mix colors as required. The color temperature after grading is still the color temperature corresponding to the current point MT on the black body locus line, but it is shifted to the green direction by 2 levels.

实施例五Embodiment five

在实施例三的基础上,用户在偏红通道上输入1级调节时(此时将覆盖之前的偏绿调节数据),即d’=1×λ=0.002,记目标混色坐标为QT-1(u'mix,v'mix)。On the basis of Example 3, when the user enters level 1 adjustment on the reddish channel (at this time, the previous greenish adjustment data will be overwritten), that is, d'=1×λ=0.002, the coordinates of the target color mixing are Q T- 1 (u' mix ,v' mix ).

利用实施例三中同样的公式,代入(u'T,v'T)的数值及d’数值到下列方程,可解出目标混色坐标QT-1(u'mix,v'mix):Using the same formula in Example 3, substituting the value of (u' T , v' T ) and the value of d' into the following equation, the target color mixing coordinate Q T-1 (u' mix , v' mix ) can be solved:

Figure DEST_PATH_IMAGE020
Figure DEST_PATH_IMAGE020

求得QT-1(u'mix,v'mix)=( 0.2014,0.4629),即为目标混色坐标。Get Q T-1 (u' mix ,v' mix )=( 0.2014,0.4629), which is the target color mixing coordinates.

将QT-1(u'mix,v'mix)代入线性规划模型:Substitute Q T-1 (u' mix ,v' mix ) into the linear programming model:

目标函数:max Lmix=L'R+L'G +L'B +L'w Objective function: max L mix = L' R + L' G + L' B + L' w

Figure DEST_PATH_IMAGE022
Figure DEST_PATH_IMAGE022

代入数据求解模型得,混合亮度有最大值Lmix=L'R+L'G +L'B +L'w=4494.104,此时RGBW各基色的亮度分别为:L'R=850;L'G=1543.654;L'B=50.450;L'W=2050;Substituting the data to solve the model, the mixed brightness has a maximum value L mix =L' R +L' G +L' B +L' w =4494.104. At this time, the brightness of each primary color of RGBW is: L' R =850; L' G =1543.654; L' B =50.450; L' W =2050;

于是得到此时PWM的占空比D:Then get the duty ratio D of PWM at this time:

Figure DEST_PATH_IMAGE024
Figure DEST_PATH_IMAGE024

综合上述过程,用户对光源调色操作,在控台上推动滑杆输入设定横坐标u'T=0.1996,并在偏红通道输入调节等级为1。配色运算单元返回PWM占空比,即把RGBW各基色的PWM信号占空比输出为D={1, 0.6175 , 0.1121 , 1}发送至驱动器,驱动光源各基色按所需发光并混色。调色后的色温仍然为黑体轨迹线上当前点MT对应的色温,只是向红色方向偏移了1级。Based on the above process, the user adjusts the color of the light source, pushes the slider on the console to input and set the abscissa u' T =0.1996, and enters the adjustment level as 1 in the reddish channel. The color matching operation unit returns the PWM duty cycle, that is, the PWM signal duty cycle output of each RGBW primary color is D={1, 0.6175 , 0.1121 , 1} and sent to the driver to drive each primary color of the light source to emit light and mix colors as required. The color temperature after grading is still the color temperature corresponding to the current point MT on the black body locus line, but it is shifted to the red direction by 1 level.

实施例六Embodiment six

与实施例五操作相同,区别在于本实施例用户在偏红通道上输入2级调节时,即d’=2×λ=0.004。此时求得QT-2(u'mix,v'mix)=(0.2032,0.4621)The operation is the same as that in Embodiment 5, except that in this embodiment, when the user inputs 2 levels of adjustment on the reddish channel, that is, d'=2×λ=0.004. At this point, get Q T-2 (u' mix ,v' mix )=(0.2032,0.4621)

混合亮度最大值Lmix=L'R+L'G +L'B +L'w=4425.251;The maximum value of mixed brightness L mix =L' R +L' G +L' B +L' w =4425.251;

RGBW各基色的亮度分别为:L'R=850;L'G=1476.692;L'B=48.559;L'W=2050;The brightness of each primary color of RGBW is: L' R =850; L' G =1476.692; L' B =48.559; L' W =2050;

最终占空比D={1, 0.5907, 0.1079, 1}Final duty cycle D={1, 0.5907, 0.1079, 1}

综合上述过程,用户对光源调色操作,在控台上推动滑杆输入设定横坐标u'T=0.1996,并在偏红通道输入调节等级为2。配色运算单元返回PWM占空比,即把RGBW各基色的PWM信号占空比输出为D={1, 0.5907, 0.1079, 1}发送至驱动器,驱动光源各基色按所需发光并混色。调色后的色温仍然为黑体轨迹线上当前点MT对应的色温,只是向红色方向偏移了2级。Based on the above process, the user adjusts the color of the light source, pushes the slider on the console to input and set the abscissa u' T =0.1996, and enters the adjustment level as 2 in the reddish channel. The color matching calculation unit returns the PWM duty cycle, that is, the PWM signal duty cycle of each primary color of RGBW is output as D={1, 0.5907, 0.1079, 1} and sent to the driver to drive each primary color of the light source to emit light and mix colors as required. The color temperature after grading is still the color temperature corresponding to the current point MT on the black body locus line, but it is shifted to the red direction by 2 levels.

实施例七Embodiment seven

本实施例还提供了一种电子装置,参考图4,包括存储器404和处理器402,该存储器404中存储有计算机程序,该处理器402被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。This embodiment also provides an electronic device, referring to FIG. 4 , including a memory 404 and a processor 402, the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to perform any one of the methods described above. steps in the example.

具体地,上述处理器402可以包括中央处理器(CPU),或者特定集成电路(ApplicationSpecificIntegratedCircuit,简称为ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。Specifically, the processor 402 may include a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC for short), or may be configured to implement one or more integrated circuits in the embodiments of the present application.

其中,存储器404可以包括用于数据或指令的大容量存储器404。举例来说而非限制,存储器404可包括硬盘驱动器(HardDiskDrive,简称为HDD)、软盘驱动器、固态驱动器(SolidStateDrive,简称为SSD)、闪存、光盘、磁光盘、磁带或通用串行总线(UniversalSerialBus,简称为USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器404可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器404可在数据处理装置的内部或外部。在特定实施例中,存储器404是非易失性(Non-Volatile)存储器。在特定实施例中,存储器404包括只读存储器(Read-OnlyMemory,简称为ROM)和随机存取存储器(RandomAccessMemory,简称为RAM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(ProgrammableRead-OnlyMemory,简称为PROM)、可擦除PROM(ErasableProgrammableRead-OnlyMemory,简称为EPROM)、电可擦除PROM(ElectricallyErasableProgrammableRead-OnlyMemory,简称为EEPROM)、电可改写ROM(ElectricallyAlterableRead-OnlyMemory,简称为EAROM)或闪存(FLASH)或者两个或更多个以上这些的组合。在合适的情况下,该RAM可以是静态随机存取存储器(StaticRandom-AccessMemory,简称为SRAM)或动态随机存取存储器(DynamicRandomAccessMemory,简称为DRAM),其中,DRAM可以是快速页模式动态随机存取存储器404(FastPageModeDynamicRandomAccessMemory,简称为FPMDRAM)、扩展数据输出动态随机存取存储器(ExtendedDateOutDynamicRandomAccessMemory,简称为EDODRAM)、同步动态随机存取内存(SynchronousDynamicRandom-AccessMemory,简称SDRAM)等。Wherein, the memory 404 may include a mass memory 404 for data or instructions. For example without limitation, the memory 404 may include a hard disk drive (HardDiskDrive, referred to as HDD), a floppy disk drive, a solid state drive (SolidStateDrive, referred to as SSD), flash memory, optical disk, magneto-optical disk, tape or Universal Serial Bus (UniversalSerialBus, abbreviated as USB) drive or a combination of two or more of the above. Storage 404 may include removable or non-removable (or fixed) media, where appropriate. Memory 404 may be internal or external to the data processing arrangement, where appropriate. In a particular embodiment, memory 404 is a non-volatile (Non-Volatile) memory. In a specific embodiment, the memory 404 includes a read-only memory (Read-Only Memory, ROM for short) and a random access memory (Random Access Memory, RAM for short). In appropriate cases, the ROM can be mask programmed ROM, programmable ROM (Programmable Read-Only Memory, referred to as PROM), erasable PROM (Erasable Programmable Read-Only Memory, referred to as EPROM), electrically erasable PROM (Electrically Erasable Programmable Read -OnlyMemory, referred to as EEPROM), electrically rewritable ROM (Electrically Alterable Read-OnlyMemory, referred to as EAROM) or flash memory (FLASH) or a combination of two or more of these. In appropriate cases, the RAM can be a static random access memory (Static Random-Access Memory, referred to as SRAM) or a dynamic random access memory (Dynamic Random Access Memory, referred to as DRAM), where the DRAM can be a fast page mode dynamic random access Memory 404 (FastPageModeDynamicRandomAccessMemory, referred to as FPMDRAM), extended data output dynamic random access memory (ExtendedDateOutDynamicRandomAccessMemory, referred to as EDODRAM), synchronous dynamic random access memory (SynchronousDynamicRandom-AccessMemory, referred to as SDRAM), etc.

存储器404可以用来存储或者缓存需要处理或通信使用的各种数据文件,以及处理器402所执行的可能的计算机程序指令。The memory 404 may be used to store or cache various data files required for processing or communication, as well as possible computer program instructions executed by the processor 402 .

处理器402通过读取并执行存储器404中存储的计算机程序指令,以实现上述实施例中的任意黑体轨迹及等温线调色控制方法。The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any blackbody locus and isotherm line toning control method in the above-mentioned embodiments.

可选地,上述电子装置还可以包括传输设备406以及输入输出设备408,其中,该传输设备406和上述处理器402连接,该输入输出设备408和上述处理器402连接。Optionally, the above-mentioned electronic device may further include a transmission device 406 and an input-output device 408 , wherein the transmission device 406 is connected to the above-mentioned processor 402 , and the above-mentioned input-output device 408 is connected to the above-mentioned processor 402 .

传输设备406可以用来经由一个网络接收或者发送数据。上述的网络具体实例可包括电子装置的通信供应商提供的有线或无线网络。在一个实例中,传输设备包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备406可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 406 may be used to receive or transmit data via a network. The specific example of the above network may include a wired or wireless network provided by the communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In an example, the transmission device 406 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.

输入输出设备408用于输入或输出信息。在本实施例中,输入的信息可以是调色参数等,输出的信息可以是占空比等。Input and output devices 408 are used to input or output information. In this embodiment, the input information may be color adjustment parameters and the like, and the output information may be duty cycle and the like.

实施例四Embodiment Four

本实施例还提供了一种可读存储介质,可读存储介质中存储有计算机程序,计算机程序包括用于控制过程以执行过程的程序代码,过程包括根据实施例一的黑体轨迹及等温线调色控制方法。This embodiment also provides a readable storage medium, and a computer program is stored in the readable storage medium. The computer program includes program codes for controlling the process to execute the process. The process includes the black body locus and isotherm adjustment according to the first embodiment. color control method.

需要说明的是,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details will not be repeated in this embodiment.

通常,各种实施例可以以硬件或专用电路、软件、逻辑或其任何组合来实现。本发明的一些方面可以以硬件来实现,而其他方面可以由控制器、微处理器或其他计算设备执行的固件或软件来实现,但是本发明不限于此。尽管本发明的各个方面可以被示出和描述为框图、流程图或使用一些其他图形表示,但是应当理解,作为非限制性示例,本文中描述的这些框、装置、系统、技术或方法可以以硬件、软件、固件、专用电路或逻辑、通用硬件或控制器或其他计算设备或其某种组合来实现。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 executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. Although various aspects of the present invention may be shown and described as block diagrams, flowcharts, or using some other graphical representation, it should be understood that, as non-limiting examples, these blocks, devices, systems, techniques or methods described herein may be presented in hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof.

本发明的实施例可以由计算机软件来实现,该计算机软件由移动设备的数据处理器诸如在处理器实体中可执行,或者由硬件来实现,或者由软件和硬件的组合来实现。包括软件例程、小程序或宏的计算机软件或程序(也称为程序产品)可以存储在任何装置可读数据存储介质中,并且它们包括用于执行特定任务的程序指令。计算机程序产品可以包括当程序运行时被配置为执行实施例的一个或多个计算机可执行组件。一个或多个计算机可执行组件可以是至少一个软件代码或其一部分。另外,在这一点上,应当注意,如图中的逻辑流程的任何框可以表示程序步骤、或者互连的逻辑电路、框和功能、或者程序步骤和逻辑电路、框和功能的组合。软件可以存储在诸如存储器芯片或在处理器内实现的存储块等物理介质、诸如硬盘或软盘等磁性介质、以及诸如例如DVD及其数据变体、CD等光学介质上。物理介质是非瞬态介质。Embodiments of the invention may be implemented by computer software executable by a data processor of a 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 or macros, can be stored on any device-readable data storage medium and they include program instructions for performing certain tasks. A computer program product may include one or more computer-executable components configured to perform an embodiment when the program is run. One or more computer-executable components may be at least one software code or a portion thereof. Also in this regard, it should be noted that any blocks of the logic flow in the figures may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. 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 eg DVD and its data variants, CD. Physical media are non-transient media.

本领域的技术人员应该明白,以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。Those skilled in the art should understand that the various technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, all possible combinations of the various technical features in the above embodiments are not described. There is no contradiction in the combination, and all should be considered as within the scope of the description.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以作出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be determined by the appended claims.

Claims (9)

1. The black body track and isothermal line color modulation control method is characterized by comprising the following steps of:
s00, obtaining inherent maximum brightness of each primary color of a light source, inherent color coordinates corresponding to each primary color and color mixing parameters input by a user, wherein the color mixing parameters comprise a set abscissa, a greenish color mixing parameter and a reddish color mixing parameter of a black body trajectory;
s10, calculating a u 'v' color coordinate in a CIE1976-u 'v' system according to a set abscissa, and taking the u 'v' color coordinate as an intersection point of a black body trajectory line and a corresponding isotherm;
s20, calculating a target mixed color coordinate according to a greenish color mixing parameter or a reddish color mixing parameter, a u 'v' color coordinate and an adjustment step length of an isothermal line;
s30, substituting the target mixed color coordinate into a linear programming model to obtain a total value of mixed brightness of each primary color and brightness corresponding to each primary color, wherein the linear programming model is established based on the inherent highest brightness of each primary color, the inherent color coordinate of each primary color and the target mixed color coordinate;
and S40, calculating a 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 light source.
2. The method as claimed in claim 1, wherein in step S10, the corresponding ordinate is calculated according to the set abscissa and the black body locus, so as to obtain the u 'v' chromaticity coordinates.
3. The black body locus and isotherm toning control method of claim 1, wherein the greenish toning parameter and the reddish toning parameter are both the product of a toning step size and a respective adjustment level.
4. The black body locus and isotherm toning method of claim 1, wherein in step S30, when the total value of the mixed brightness of the primary colors is 0, the duty ratio is maintained in the last state.
5. The black body locus and isotherm toning control method of claim 4, wherein in step S40, 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 light source.
6. The black body locus and isotherm toning control method of claim 1, wherein in step S00, the inherent maximum brightness of each primary color of the light source and the corresponding inherent color coordinates are obtained in a dark enclosed environment.
7. The utility model provides a black body orbit and isotherm mixing of colors controlling means which characterized in that includes:
the input unit is used for acquiring inherent maximum brightness of each primary color of the light source, inherent color coordinates corresponding to each primary color and color mixing parameters input by a user, wherein the color mixing parameters comprise a set abscissa, a greenish color mixing parameter and a reddish color mixing parameter of a black body trajectory;
the signal analysis unit is used for calculating a u 'v' color coordinate in a CIE1976-u 'v' system according to a set abscissa, and taking the u 'v' color coordinate as an intersection point of a black body trajectory line and a corresponding isotherm;
the isothermal line adjusting unit is used for calculating a target mixed color coordinate according to the greenish color matching parameter or the reddish color matching parameter, the u 'v' color coordinate and the adjusting step length of the isothermal line;
the color matching operation unit is used for obtaining the total value of the mixed brightness of each primary color and the brightness corresponding to each primary color by substituting the target mixed color coordinate into a linear programming model, wherein the linear programming model is established based on the inherent highest brightness of each primary color, the inherent color coordinate of each primary color and 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 light source.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the black body locus and isotherm toning control method of any one of claims 1 to 6.
9. A readable storage medium having stored therein a computer program comprising program code for controlling a process to execute a process, the process comprising the black body locus and isotherm toning control method according to any one of claims 1 to 6.
CN202210964521.3A 2022-08-12 2022-08-12 Blackbody locus and isotherm toning control method and its application Active CN115052387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210964521.3A CN115052387B (en) 2022-08-12 2022-08-12 Blackbody locus and isotherm toning control method and its application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210964521.3A CN115052387B (en) 2022-08-12 2022-08-12 Blackbody locus and isotherm toning control method and its application

Publications (2)

Publication Number Publication Date
CN115052387A CN115052387A (en) 2022-09-13
CN115052387B true CN115052387B (en) 2022-11-01

Family

ID=83168187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210964521.3A Active CN115052387B (en) 2022-08-12 2022-08-12 Blackbody locus and isotherm toning control method and its application

Country Status (1)

Country Link
CN (1) CN115052387B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334710B (en) * 2022-08-12 2023-03-31 杭州罗莱迪思科技股份有限公司 Isothermal line color matching control method and application thereof
CN117726695B (en) * 2023-11-07 2024-09-10 东莞市立德达光电科技有限公司 Method for calculating correlated color temperature
CN117615481B (en) * 2024-01-24 2024-04-09 杭州罗莱迪思科技股份有限公司 Dynamic correction color mixing system and method for influence of self-adaptive temperature on color coordinates

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5532848A (en) * 1992-11-25 1996-07-02 Canon Information Systems, Inc. Method and apparatus for adjusting correlated color temperature
JP3944972B2 (en) * 1997-10-28 2007-07-18 松下電工株式会社 COLOR TEMPERATURE CONTROLLED LIGHTING DEVICE AND SLEEPING DEVICE, WAKE UP DEVICE, AND SLEEP Awakening Device Using The Same
CN1165183C (en) * 2000-05-15 2004-09-01 北京北达华彩科技有限公司 Adaptive chroma compensation method and compensator
JP2007141737A (en) * 2005-11-21 2007-06-07 Sharp Corp LIGHTING DEVICE, LIQUID CRYSTAL DISPLAY DEVICE, LIGHTING DEVICE CONTROL METHOD, LIGHTING DEVICE CONTROL PROGRAM, AND RECORDING MEDIUM
US8687147B2 (en) * 2011-11-14 2014-04-01 Planck Co., Ltd. Color regulating device for illumination and apparatus using the same, and method of regulating color
EP3761759A1 (en) * 2012-03-19 2021-01-06 Signify Holding B.V. Apparatus, systems and methods for a multichannel white light illumination source
US9607575B2 (en) * 2013-05-13 2017-03-28 Asustek Computer Inc. Display mode adjusting method of display device and display mode adjusting module thereof
US10477636B1 (en) * 2014-10-28 2019-11-12 Ecosense Lighting Inc. Lighting systems having multiple light sources
WO2018052571A1 (en) * 2016-09-14 2018-03-22 Ketra, Inc. Illumination device and method for adjusting periodic changes in emulation output
CN117676955A (en) * 2016-09-14 2024-03-08 路创技术有限责任公司 Lighting systems for controlling color temperature as a function of brightness
CN108811252A (en) * 2018-07-16 2018-11-13 常州星宇车灯股份有限公司 A kind of control system for realizing automobile room lamp light modulation toning
CN109496035B (en) * 2018-11-02 2020-06-23 广州市浩洋电子股份有限公司 Color matching method, color matching method and system for automatically realizing maximum brightness of colored lamp
CN111050444B (en) * 2019-02-01 2021-04-09 靳鹏 Method for simulating CIE standard illuminant by using multi-channel LED and illumination system
CN113597045A (en) * 2021-07-02 2021-11-02 厦门天力源光电科技有限公司 Light color control method of LED lamp
CN114466476A (en) * 2022-01-12 2022-05-10 林璧光 Light color adjusting method of LED illuminating lamp and light source and adjusting device thereof
CN114126145B (en) * 2022-01-24 2022-04-22 杭州罗莱迪思科技股份有限公司 Method for adjusting linear perception of color temperature of lamp and application thereof
CN114727452B (en) * 2022-06-09 2022-09-02 杭州罗莱迪思科技股份有限公司 Multi-primary color light control method based on RGB mode and application thereof

Also Published As

Publication number Publication date
CN115052387A (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN115052387B (en) Blackbody locus and isotherm toning control method and its application
CN115334710B (en) Isothermal line color matching control method and application thereof
CN114727452B (en) Multi-primary color light control method based on RGB mode and application thereof
US8177389B1 (en) Deterministically calculating dimming values for four or more light sources
EP1958483B1 (en) Method and apparatus for controlling a variable-colour light source
US7972028B2 (en) System, method and tool for optimizing generation of high CRI white light, and an optimized combination of light emitting diodes
CN110167242B (en) Mixed light adjusting method, device, system and storage medium
US20170303350A1 (en) System and method for rapidly generating color models for led-based lamps
US8497871B2 (en) Color generation using multiple illuminant types
EP2845442B1 (en) Planckian and non-planckian dimming of solid state light sources
EP3876678B1 (en) Automatic maximum brightness color matching implementation method for color lamp, and color modulation method and system
US20140333208A1 (en) Lamp color matching and control systems and methods
CN109379813B (en) Color temperature adjustable illumination module and color temperature adjusting method of illumination module
US10492256B2 (en) Method and device for calibrating LED lighting
CN115297590B (en) Color non-shift control method for dimming lamp and application thereof
CN114126145B (en) Method for adjusting linear perception of color temperature of lamp and application thereof
CN103906325B (en) Illumination control method and system
CN118042672A (en) Light distribution device and light distribution method for multi-primary-color LED (light-emitting diode) powder-free light source
CN114900925B (en) Multi-primary lighting control method and its application
US20240053780A1 (en) Configuring color to be displayed by lighting device
CN113225867B (en) Dimming curve extension method, device, computer equipment and storage medium
CN115633425A (en) Mixed light source control method, device, lighting equipment and storage medium
CN112612992A (en) Color temperature optimization method and device, terminal equipment and storage medium
US11991799B2 (en) Systems, methods, and devices for creating a custom output spectral power distribution
CN115696691B (en) Intelligent lamp dimming method and device, intelligent lamp 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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Blackbody trajectory and isotherm color control method and its application

Granted publication date: 20221101

Pledgee: Shanghai Pudong Development Bank Co.,Ltd. Hangzhou Branch

Pledgor: Hangzhou roledith Technology Co.,Ltd.

Registration number: Y2024980058765

PE01 Entry into force of the registration of the contract for pledge of patent right