TWI700935B - Illumination mixing calculation method, device, computer equipment and storage medium - Google Patents

Illumination mixing calculation method, device, computer equipment and storage medium Download PDF

Info

Publication number
TWI700935B
TWI700935B TW108119481A TW108119481A TWI700935B TW I700935 B TWI700935 B TW I700935B TW 108119481 A TW108119481 A TW 108119481A TW 108119481 A TW108119481 A TW 108119481A TW I700935 B TWI700935 B TW I700935B
Authority
TW
Taiwan
Prior art keywords
color
color light
coordinate point
compensation
light
Prior art date
Application number
TW108119481A
Other languages
Chinese (zh)
Other versions
TW202046714A (en
Inventor
徐振源
吳守程
Original Assignee
大陸商東莞廣亮山貿易有限公司
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 大陸商東莞廣亮山貿易有限公司 filed Critical 大陸商東莞廣亮山貿易有限公司
Priority to TW108119481A priority Critical patent/TWI700935B/en
Application granted granted Critical
Publication of TWI700935B publication Critical patent/TWI700935B/en
Publication of TW202046714A publication Critical patent/TW202046714A/en

Links

Images

Abstract

本發明揭露了一種照明混光計算方法,該照明混光計算方法包括:獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點,獲取目標色座標點,根據目標色座標點、第一色座標點和第二色座標點計算得到第一色光和第二色光的第一流明值混合比例,確定根據第一流明值混合比例混合得到的中間色光對應的中間色座標點,根據中間色座標點確定與中間色座標點匹配的第一補償色光和第二補償色光,根據第一補償色光和第二補償色光對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。根據該照明混光計算方法進行混光降低了色容差,提高了混光效果。此外,更提出了一種照明混光計算裝置、電腦設備及儲存介質。 The present invention discloses an illumination light mixing calculation method. The illumination light mixing calculation method includes: obtaining a first color coordinate point corresponding to a first color light, obtaining a second color coordinate point corresponding to a second color light, and obtaining a target color coordinate point, According to the target color coordinate point, the first color coordinate point and the second color coordinate point, the first lumen value mixing ratio of the first color light and the second color light is calculated, and the corresponding intermediate color light obtained by mixing according to the first lumen value mixing ratio is determined The intermediate color coordinate point, according to the intermediate color coordinate point, determines the first compensation color light and the second compensation color light that match the intermediate color coordinate point, and calculates the intermediate color light according to the first compensation color light and the second compensation color light, and determines when it is mixed to the target color coordinate point The mixing ratio of the second lumen value corresponding to the first compensation color light, the second compensation color light and the intermediate color light. Performing light mixing according to the lighting mixing calculation method reduces the color tolerance and improves the light mixing effect. In addition, a lighting mixing calculation device, computer equipment and storage medium are also proposed.

Description

照明混光計算方法、裝置、電腦設備及儲存介質 Illumination mixing calculation method, device, computer equipment and storage medium

本發明有關於電腦處理領域,特別是有關於一種照明混光計算方法、裝置、電腦設備及儲存介質。 The present invention relates to the field of computer processing, in particular to a method, device, computer equipment and storage medium for calculating lighting mixing.

習知的照明混光計算方法都是使用2色混光,不管兩色光怎麼混得到的混色光都會在兩點直線上,很多點都偏離了Energy Star(能源之星)中定義的點,導致色容差的產生。人眼所能接受的色容差在3SDCM(麥克亞當橢圓)內,但是習知的照明混光計算方法不夠準確,依此進行混光產生的色容差都會大於3SDCM,導致混光效果不好。 The conventional lighting mixing calculation method uses two-color mixing. No matter how the two-color light is mixed, the mixed color light will be on the two-point straight line, and many points deviate from the points defined in Energy Star. The generation of color tolerance. The color tolerance acceptable to the human eye is within 3SDCM (McAdam ellipse), but the conventional lighting mixing calculation method is not accurate enough. The color tolerance generated by mixing light will be greater than 3SDCM, resulting in poor mixing effect .

基於此,有必要針對上述問題,提供了一種可以降低色容差、提高混光效果的照明混光計算方法、裝置、電腦設備及儲存介質。 Based on this, it is necessary to solve the above problems and provide a lighting mixing calculation method, device, computer equipment and storage medium that can reduce the color tolerance and improve the light mixing effect.

第一方面,本發明實施方式提供一種照明混光計算方法,其包含下列步驟:獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;獲取目標色座標點,根據目標色座標點、第一色座標點和第二色座標點計算得到第一色光和第二色光的第一流明值混合比例;確定根據第一流明值混合比例混合第一色光和第二色光得到的中間色光對應的中間色座標點; 根據中間色座標點確定與中間色座標點匹配的第一補償色光和第二補償色光;根據第一補償色光和第二補償色光對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。 In a first aspect, an embodiment of the present invention provides an illumination light mixing calculation method, which includes the following steps: acquiring a first color coordinate point corresponding to a first color light, acquiring a second color coordinate point corresponding to a second color light; acquiring a target color coordinate Point, calculate the first lumen value mixing ratio of the first color light and the second color light according to the target color coordinate point, the first color coordinate point and the second color coordinate point; determine to mix the first color light according to the first lumen value mixing ratio The intermediate color coordinate point corresponding to the intermediate color light obtained by the second color light; Determine the first compensation color light and the second compensation color light matching the middle color coordinate point according to the middle color coordinate point; calculate the middle color light according to the first compensation color light and the second compensation color light, and determine the first compensation color light when mixed to the target color coordinate point , The mixing ratio of the second lumen value corresponding to the second compensation color light and the intermediate color light.

第二方面,本發明實施方式提供一種照明混光計算裝置,其包含:座標點獲取模組,用於獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;比例計算模組,用於獲取目標色座標點,根據目標色座標點、第一色座標點和第二色座標點計算得到第一色光和第二色光的第一流明值混合比例;座標點確定模組,用於確定根據第一流明值混合比例混合第一色光和第二色光得到的中間色光對應的中間色座標點;補償色光確定模組,用於根據中間色座標點確定與中間色座標點匹配的第一補償色光和第二補償色光;比例確定模組,用於根據第一補償色光和第二補償色光對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。 In a second aspect, an embodiment of the present invention provides an illumination light mixing calculation device, which includes: a coordinate point acquisition module for acquiring a first color coordinate point corresponding to a first color light, and a second color coordinate corresponding to a second color light Point; ratio calculation module, used to obtain the target color coordinate point, according to the target color coordinate point, the first color coordinate point and the second color coordinate point to calculate the first color light and the second color light of the first lumen value mixing ratio; The coordinate point determination module is used to determine the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the mixing ratio of the first lumen value; the compensation color light determination module is used to determine the intermediate color according to the intermediate color coordinate point The first compensation color light and the second compensation color light that match the coordinate points; the ratio determination module is used to calculate the intermediate color light according to the first compensation color light and the second compensation color light, and determine the first compensation color light when mixed to the target color coordinate point , The mixing ratio of the second lumen value corresponding to the second compensation color light and the intermediate color light.

第三方面,本發明實施方式提供一種電腦設備,包括記憶體和處理器,記憶體儲存有電腦程式,電腦程式被處理器執行時,使得處理器執行如下步驟: 獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;獲取目標色座標點,根據目標色座標點、第一色座標點和第二色座標點計算得到第一色光和第二色光的第一流明值混合比例;確定根據第一流明值混合比例混合第一色光和第二色光得到的中間色光對應的中間色座標點;根據中間色座標點確定與中間色座標點匹配的第一補償色光和第二補償色光;根據第一補償色光和第二補償色光對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。 In a third aspect, embodiments of the present invention provide a computer device including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the following steps: Obtain the first color coordinate point corresponding to the first color light, and obtain the second color coordinate point corresponding to the second color light; obtain the target color coordinate point, and calculate it according to the target color coordinate point, the first color coordinate point and the second color coordinate point The first lumen value mixing ratio of the first color light and the second color light; determine the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio; determine the intermediate color coordinate point according to the intermediate color coordinate point The first compensation color light and the second compensation color light that match the coordinate points; the intermediate color light is compensated according to the first compensation color light and the second compensation color light, and the first compensation color light, the second compensation color light and the intermediate color are determined when mixed to the target color coordinate point The mixing ratio of the second lumen value corresponding to the light.

第四方面,本發明實施方式提供一種電腦可讀儲存介質,儲存有電腦程式,電腦程式被處理器執行時,使得處理器執行如下步驟:獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;獲取目標色座標點,根據目標色座標點、第一色座標點和第二色座標點計算得到第一色光和第二色光的第一流明值混合比例;確定根據第一流明值混合比例混合第一色光和第二色光得到的中間色光對應的中間色座標點;根據中間色座標點確定與中間色座標點匹配的第一補償色光和第二補償色光; 根據第一補償色光和第二補償色光對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。 In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the processor executes the following steps: obtain the first color coordinate point corresponding to the first color light, and obtain The second color coordinate point corresponding to the second color light; obtain the target color coordinate point, and calculate the first lumen value mixture of the first color light and the second color light according to the target color coordinate point, the first color coordinate point and the second color coordinate point Ratio; determine the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio; determine the first compensation color light and the second compensation color light that match the intermediate color coordinate point according to the intermediate color coordinate point; Compensation calculation is performed on the intermediate color light according to the first compensation color light and the second compensation color light, and the second lumen value mixing ratio corresponding to the first compensation color light, the second compensation color light and the intermediate color light when mixed to the target color coordinate point is determined.

上述照明混光計算方法、裝置、電腦設備及儲存介質,首先,根據目標色座標點確定第一色光和第二色光的第一流明值混合比例,根據第一流明值混合比例得到的中間色光存在較大的色容差,然後根據中間色座標點匹配到了第一補償色光和第二補償色光,對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。根據計算得到的第一流明值混合比例和第二流明值混合比例將第一色光、第二色光、第一補償色光和第二補償色光進行混合就可以完全混到目標色座標點,大大降低了色容差,提高了混光效果。 The above lighting mixing calculation method, device, computer equipment and storage medium. First, determine the first lumen value mixing ratio of the first color light and the second color light according to the target color coordinate point, and the intermediate color light obtained according to the first lumen value mixing ratio There is a large color tolerance, and then the first compensation color light and the second compensation color light are matched according to the intermediate color coordinate point, the intermediate color light is compensated, and the first compensation color light, the second compensation color light and the target color light are determined when mixed to the target color coordinate point. The second lumen value mixing ratio corresponding to the intermediate color light. According to the calculated mixing ratio of the first lumen value and the second lumen value, mixing the first color light, the second color light, the first compensation color light and the second compensation color light can be completely mixed to the target color coordinate point, greatly reducing Improved color tolerance and improved light mixing effect.

102至110、702至716:步驟 102 to 110, 702 to 716: steps

第1圖係本發明實施方式之照明混光計算方法的流程圖。 Fig. 1 is a flowchart of the method for calculating the lighting mixing according to the embodiment of the present invention.

第2圖係本發明實施方式之CIE 1931色座標圖的示意圖。 Figure 2 is a schematic diagram of the CIE 1931 color coordinate diagram of the embodiment of the present invention.

第3A圖係本發明實施方式之暖白光和冷白光進行混合的示意圖。 FIG. 3A is a schematic diagram of mixing warm white light and cold white light according to an embodiment of the present invention.

第3B圖係本發明實施方式之混合得到不同色溫對應的混合比例的示意圖。 FIG. 3B is a schematic diagram of mixing ratios corresponding to different color temperatures obtained by mixing according to an embodiment of the present invention.

第4圖係本發明實施方式之劃分為三個色域範圍的示意圖。 Fig. 4 is a schematic diagram of the embodiment of the present invention divided into three color gamut ranges.

第5圖係本發明實施方式之對照明混光計算方法進行實驗驗證的結果示意圖。 Fig. 5 is a schematic diagram of the experimental verification results of the illumination light mixing calculation method according to the embodiment of the present invention.

第6圖係本發明實施方式之進行實驗驗證的結果對比示意圖。 Fig. 6 is a schematic diagram of the comparison of the experimental verification results of the embodiment of the present invention.

第7圖係本發明實施方式之照明混光計算裝置的結構框圖。 Fig. 7 is a block diagram of a lighting mixing calculation device according to an embodiment of the present invention.

第8圖係本發明實施方式之照明混光計算裝置的結構框圖。 Fig. 8 is a structural block diagram of a lighting mixing calculation device according to an embodiment of the present invention.

第9圖係本發明實施方式之照明混光計算裝置的結構框圖。 Fig. 9 is a block diagram of a lighting mixing calculation device according to an embodiment of the present invention.

第10圖係本發明實施方式之電腦設備的內部結構圖。 Fig. 10 is an internal structure diagram of the computer device according to the embodiment of the present invention.

第11圖係本發明實施方式之照明混光計算方法的應用環境圖。 Fig. 11 is an application environment diagram of the illumination light mixing calculation method according to the embodiment of the present invention.

為利瞭解本發明之特徵、內容與優點及其所能達成之功效,茲將本發明配合圖式,並以實施例之表達形式詳細說明如下,而其中所使用之圖式,其主旨僅為示意及輔助說明書之用,未必為本發明實施後之真實比例與精準配置,故不應就所附之圖式的比例與配置關係解讀、侷限本發明於實際實施上的權利範圍。 In order to understand the features, content and advantages of the present invention and its achievable effects, the present invention is combined with the figures and described in detail in the form of an embodiment as follows. The figures used therein are merely The schematic and auxiliary instructions are not necessarily the true proportions and precise configurations after the implementation of the present invention. Therefore, the proportions and configuration relationships of the attached drawings should not be interpreted as to limit the scope of rights of the present invention in actual implementation.

為了使本發明的目的、技術特徵及優點更加清楚明白,以下結合圖式及實施方式,對本發明進行進一步詳細說明。應當理解,此處所描述的實施方式僅僅用以解釋本發明,並不用於限定本發明。 In order to make the objectives, technical features, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the drawings and embodiments. It should be understood that the embodiments described here are only used to explain the present invention, but not to limit the present invention.

如第1圖所示,提出了一種照明混光計算方法,該照明混光計算方法可以應用於電腦設備,該照明混光計算方法具體包括以下步驟: As shown in Figure 1, a method for calculating lighting mixing is proposed. The lighting mixing calculation method can be applied to computer equipment. The lighting mixing calculation method specifically includes the following steps:

步驟102,獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點。 Step 102: Acquire a first color coordinate point corresponding to the first color light, and acquire a second color coordinate point corresponding to the second color light.

其中,不同的色光對應的色座標點不同。如第2圖所示,為CIE 1931色座標圖。圖中,每個點相應的座標稱為“色座標點”。CIE1931是國際發光照明委員會建立的一套界定和測量色彩的技術標準。第一色光與第二色光不同,為了區分將第一色光的色座標點稱為“第一色座標點”,將第二色光的色座標點稱為“第二色座標點”。 Among them, the color coordinate points corresponding to different shades are different. As shown in Figure 2, it is a CIE 1931 color coordinate map. In the figure, the corresponding coordinates of each point are called "color coordinate points". CIE1931 is a set of technical standards for defining and measuring color established by the International Commission on Luminous Lighting. The first color light is different from the second color light. In order to distinguish the color coordinate point of the first color light as the "first color coordinate point", the color coordinate point of the second color light is called the "second color coordinate point".

色座標(chromaticity coordinate)係指顏色的座標,橫軸為x,縱軸為y,有了色座標,就可以在色度圖上唯一確定一個點,這個點精確地表示了 發光顏色。除了用x,y表示,更可以用色溫來表示照明光源的發光顏色。在一個實施方式中,第一色光為暖白光(Warm White)、第二色光為冷白光(Cool White)。第一色座標點、第二色座標點的確定可以藉由查找發出相應色光的LED光源所對應的出廠規格書中得到,為了更準確,也可以藉由測量設備(比如,積分球)實際測量得到。 The chromaticity coordinate refers to the coordinate of the color. The horizontal axis is x and the vertical axis is y. With the color coordinate, you can uniquely determine a point on the chromaticity diagram, and this point accurately represents Luminous color. In addition to expressing with x and y, color temperature can also be used to express the luminous color of the lighting source. In one embodiment, the first color light is Warm White and the second color light is Cool White. The determination of the first color coordinate point and the second color coordinate point can be obtained by searching the factory specifications corresponding to the LED light source emitting the corresponding color light. In order to be more accurate, it can also be measured by measuring equipment (for example, integrating sphere). get.

步驟104,獲取目標色座標點,根據目標色座標點、第一色座標點和第二色座標點計算得到第一色光和第二色光的第一流明值混合比例。 Step 104: Obtain the target color coordinate point, and calculate the first lumen value mixing ratio of the first color light and the second color light according to the target color coordinate point, the first color coordinate point and the second color coordinate point.

其中,目標色座標點係指混光所要得到的目標色光所對應的座標點。目標色座標點可以根據實際需要自定義設置。比如,為了減少色容差,將目標色座標點定義為Energy Star上的點,當然也可以定義為普朗克軌跡黑體曲線上的點以及自定義的任意點。在確定了目標色座標點後,就可以根據混色原理計算得到第一色光和第二色光的混合比例,混合比例實質上是流明值的混合比例,為了與後續出現的混合比例進行區分,稱為“第一流明值混合比例”。流明值就是光通量,因為光通量的單位是lm(流明),所以光通量也稱為“流明值”。 Among them, the target color coordinate point refers to the coordinate point corresponding to the target color light to be obtained by mixing. The target color coordinate points can be customized according to actual needs. For example, in order to reduce the color tolerance, the target color coordinate point is defined as a point on the Energy Star. Of course, it can also be defined as a point on the Blackbody curve of the Planckian locus and a custom point. After the target color coordinate point is determined, the mixing ratio of the first color light and the second color light can be calculated according to the color mixing principle. The mixing ratio is essentially the mixing ratio of the lumens value. In order to distinguish it from the subsequent mixing ratio, it is called It is the "first lumen value mixing ratio". Luminous value is luminous flux, because the unit of luminous flux is lm (lumens), so luminous flux is also called "lumen value".

在一個實施方式中,顏色混合的數學理論中的三刺激值可以寫成如下的形式:X=x*(Y/y);Y=Y;Z=(Y/y)*(1-x-y) In one embodiment, the tristimulus value in the mathematical theory of color mixing can be written as follows: X=x*(Y/y); Y=Y; Z=(Y/y)*(1-x-y)

公式中的x,y分別為色座標點的橫坐標和縱坐標,X、Y和Z分別為三刺激值。最後混合得到的顏色取決於三刺激值的數值,下面係以兩色光混合為例:Xmix=X1+X2;Ymix=Y1+Y2;Zmix=Z1+Z2 In the formula, x, y are the abscissa and ordinate of the color coordinate point, and X, Y, and Z are the tristimulus values. The final mixed color depends on the value of the tristimulus value. The following is an example of two-color light mixing: Xmix=X1+X2; Ymix=Y1+Y2; Zmix=Z1+Z2

那麼混合得到的,xmix=Xmix/(Xmix+Ymix+Zmix) Then mixed, xmix=Xmix/(Xmix+Ymix+Zmix)

ymix=Ymix/(Xmix+Ymix+Zmix) ymix=Ymix/(Xmix+Ymix+Zmix)

Φmix=Ymix。 Φmix=Ymix.

其中,X1、Y1和Z1為第一色光對應的三刺激值,X2、Y2和Z2為第二色光對應的三刺激值。xmix、ymix為混合得到的色座標點,即中間色座標點的x值和y值。Φmix為混合得到的光通量(即流明值)。所以在已知目標色座標點、第一色座標點和第二色座標點的情況下,就可以計算得到第一色光和第二色光的混合比例。 Among them, X1, Y1, and Z1 are the tristimulus values corresponding to the first color light, and X2, Y2, and Z2 are the tristimulus values corresponding to the second color light. xmix and ymix are the color coordinate points obtained by mixing, that is, the x value and y value of the intermediate color coordinate point. Φmix is the luminous flux obtained by mixing (ie, lumen value). Therefore, when the target color coordinate point, the first color coordinate point and the second color coordinate point are known, the mixing ratio of the first color light and the second color light can be calculated.

在一個實施方式中,第一色光可以選用暖白光(比如,色溫為2700K的色光),第二色光可以選用冷白光(比如,色溫為6500K的色光)。第3A圖為一個實施方式中暖白光和冷白光進行混合的示意圖,如第3A圖所示,兩色混光得到的中間色光只能在兩點直線上(圖中叉號所在的直線),所以當目標色座標點在兩點直線外時,得到的第一流明值混合比例不能夠很精確,故導致後續進行混光得到的中間色光與目標色光會存在一定的色容差,如第3B圖為混合得到的不同色溫對應的混合比例的示意圖,即不同的混合比例,得到的混合座標點不同,圖中的橫坐標係用色溫來表示的,不同的色溫對應的色座標點不同。 In one embodiment, the first color light may be warm white light (for example, a color light with a color temperature of 2700K), and the second color light may be cold white light (for example, a color light with a color temperature of 6500K). Figure 3A is a schematic diagram of the mixing of warm white light and cool white light in an embodiment. As shown in Figure 3A, the intermediate color light obtained by mixing two colors can only be on a straight line with two points (the line where the cross in the figure is). Therefore, when the target color coordinate point is outside the two-point straight line, the obtained first lumen value mixing ratio cannot be very accurate, so that the intermediate color light obtained by subsequent mixing and the target color light will have a certain color tolerance, such as 3B The figure is a schematic diagram of the mixing ratios corresponding to different color temperatures obtained by mixing, that is, different mixing ratios result in different mixing coordinate points. The abscissa system in the figure is represented by color temperature, and different color temperatures correspond to different color coordinate points.

步驟106,確定根據第一流明值混合比例混合第一色光和第二色光得到的中間色光對應的中間色座標點。 Step 106: Determine an intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio.

其中,中間色座標點係指藉由將第一色光和第二色光按照”第一流明值混合比例”混合得到的中間色光所對應的色座標點。由於兩色混光得到的 中間色光只能在兩點直線上,如果目標色座標點不在兩點直線上,那麼得到的中間色光的中間色座標點與目標色座標點會有一定的偏差,所以需要單獨來計算中間色光對應的中間色座標點。 Among them, the intermediate color coordinate point refers to the color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the "first lumen value mixing ratio". Due to the two-color mixing The intermediate color light can only be on the two-point straight line. If the target color coordinate point is not on the two-point straight line, then the intermediate color coordinate point of the obtained intermediate color light will have a certain deviation from the target color coordinate point, so it is necessary to calculate the corresponding intermediate color light separately Intermediate color coordinate point.

步驟108,根據中間色座標點確定與中間色座標點匹配的第一補償色光和第二補償色光。 Step 108: Determine the first compensation color light and the second compensation color light matching the middle color coordinate point according to the middle color coordinate point.

其中,在得到了中間色光對應的中間色座標點後,為了減少色容差,需要對中間色光進行補償,使之補償為目標色光。根據中間色光的中間色座標點來選取與該中間色座標點匹配的第一補償色光和第二補償色光。第一補償色光和第二補償色光可以選用紅、綠、藍等基礎色光,當然也可以選用其他色光,只要選用的第一補償色光、第二補償色光、以及第一色光和第二色光所確定的色域範圍內包含有目標色座標點和中間色座標點,就可以混合到目標色光。在一個實施方式中,根據中間色座標點與目標色座標點的位置關係從紅、綠、藍三個基礎色光中選取兩個色光分別作為第一補償色光和第二補償色光。 Among them, after obtaining the intermediate color coordinate points corresponding to the intermediate color light, in order to reduce the color tolerance, it is necessary to compensate the intermediate color light to make it the target color light. According to the intermediate color coordinate point of the intermediate color light, the first compensation color light and the second compensation color light that match the intermediate color coordinate point are selected. The first compensation color light and the second compensation color light can be red, green, blue and other basic color lights. Of course, other color lights can also be selected. As long as the first compensation color light, the second compensation color light, and the first color light and the second color light are selected The determined color gamut includes the target color coordinate point and the intermediate color coordinate point, which can be mixed to the target color light. In one embodiment, according to the positional relationship between the intermediate color coordinate point and the target color coordinate point, two color lights are selected from the three basic color lights of red, green and blue as the first compensation color light and the second compensation color light respectively.

步驟110,根據第一補償色光和第二補償色光對中間色光進行補償計算,確定混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的第二流明值混合比例。 Step 110: Perform a compensation calculation on the intermediate color light according to the first compensation color light and the second compensation color light, and determine the second lumen value mixing ratio corresponding to the first compensation color light, the second compensation color light and the intermediate color light when mixed to the target color coordinate point.

其中,在確定了第一補償色光、第二補償色光後,獲取第一補償色光對應的第一補償色座標點,第二補償色光對應的第二補償色座標點,根據第一補償色座標點、第二補償色座標點和中間色座標點計算得到要混合到目標色座標點時第一補償色光、第二補償色光和中間色光所對應的混合比例,即第二流明值混合比例。根據第二流明值混合比例混合第一補償色光、第二補償色光和中間色光就能夠混合得到與目標色座標點對應的目標色光,該混合得到的 目標色光的色容差能夠降低到1SCDM內,人眼感受不到色容差的存在,大大提高了混光的效果。 Among them, after determining the first compensation color light and the second compensation color light, the first compensation color coordinate point corresponding to the first compensation color light is obtained, and the second compensation color coordinate point corresponding to the second compensation color light is obtained according to the first compensation color coordinate point , The second compensation color coordinate point and the intermediate color coordinate point are calculated to obtain the mixing ratio corresponding to the first compensation color light, the second compensation color light and the intermediate color light when it is mixed to the target color coordinate point, that is, the second lumen value mixing ratio. According to the mixing ratio of the second lumen value, the first compensation color light, the second compensation color light and the intermediate color light can be mixed to obtain the target color light corresponding to the target color coordinate point. The color tolerance of the target color light can be reduced to within 1SCDM, and the human eye cannot feel the existence of the color tolerance, which greatly improves the effect of light mixing.

上述照明混光計算方法,首先,根據目標色座標點確定第一色光和第二色光的第一流明值混合比例,然後藉由混合第一色光和第二色光得到中間色光,由於中間色光存在較大色容差,所以繼續根據中間色座標點匹配到了第一補償色光和第二補償色光,然後對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。根據第一流明值混合比例和第二流明值混合比例將第一色光、第二色光、第一補償色光和第二補償色光進行混合就可以完全混到目標色座標點,大大降低了色容差,提高了混光效果。 In the above-mentioned lighting mixing calculation method, first, the first lumen value mixing ratio of the first color light and the second color light is determined according to the target color coordinate point, and then the intermediate color light is obtained by mixing the first color light and the second color light. There is a large color tolerance, so continue to match the first compensation color light and the second compensation color light according to the intermediate color coordinate point, and then perform the compensation calculation on the intermediate color light, and determine the first compensation when mixed to the target color coordinate point The color light, the second compensation color light and the second lumen value mixing ratio corresponding to the intermediate color light. Mixing the first color light, the second color light, the first compensation color light and the second compensation color light according to the first lumen value mixing ratio and the second lumen value mixing ratio can completely mix to the target color coordinate point, greatly reducing the color volume Poor, improve the light mixing effect.

在一個實施方式中,所述根據所述中間色座標點確定與所述中間色座標點匹配的第一補償色光和第二補償色光,包括:獲取第三色光對應的第三色座標點、第四色光對應的第四色座標點和第五色光對應的第五色座標點;根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍;根據所述色域範圍從所述第三色光、第四色光、第五色光中選取出兩個色光作為第一補償色光和第二補償色光。 In one embodiment, the determining the first compensation color light and the second compensation color light that match the intermediate color coordinate point according to the intermediate color coordinate point includes: acquiring the third color coordinate point and the fourth color light corresponding to the third color light The corresponding fourth color coordinate point and the fifth color coordinate point corresponding to the fifth color light; the target is determined according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point The color gamut range where the color coordinate point is located; according to the color gamut range, two color lights are selected from the third color light, the fourth color light, and the fifth color light as the first compensation color light and the second compensation color light.

其中,第三色光、第四色光、第五色光構成了一個大的色域區域,中間色座標點落入該大的色域區域內,目標色座標點也落入該大的色域區域內,為了對中間色光進行補償得到目標色光,首先需要確定目標色光具體是落入了哪個小的色域範圍內,根據第三色光、第四色光、第五色光和中間色光對應的色座標點將大的色域區域分為了三個小的色域範圍,在一個實施方式中,劃分為三個小的色域範圍的示意圖,如第4圖所示,三個小的色域範圍分別為三 角形RBM,三角形RGM和三角形BGM。為了對中間色光進行補償得到目標色光,需要確定目標色光具體落入了哪個小的色域範圍,然後根據該色域範圍從三個色光中選取兩個色光作為第一補償色光和第二補償色光。比如,假設落入了圖中RBM範圍內,那麼選取R和B分別作為第一補償色光和第二補償色光。 Among them, the third color light, the fourth color light, and the fifth color light constitute a large color gamut area, the intermediate color coordinate point falls within the large color gamut area, and the target color coordinate point also falls within the large color gamut area. In order to compensate the intermediate color light to obtain the target color light, it is first necessary to determine which small color gamut the target color light falls into. According to the color coordinate points corresponding to the third color light, the fourth color light, the fifth color light and the intermediate color light, The large color gamut area is divided into three small color gamut ranges. In one embodiment, it is a schematic diagram of three small color gamut ranges. As shown in Figure 4, the three small color gamut ranges are three Angular RBM, triangular RGM and triangular BGM. In order to compensate the intermediate color light to obtain the target color light, it is necessary to determine which small color gamut the target color light falls into, and then select two color lights from the three color lights as the first compensation color light and the second compensation color light according to the color gamut range . For example, if it falls within the RBM range in the figure, then R and B are selected as the first compensation color light and the second compensation color light, respectively.

在一個實施方式中,所述根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍,包括:分別計算所述第三色座標點、第四色座標點、第五色座標點、所述中間色座標點和目標色座標點中的任意三點組成的三角形面積;根據計算得到的各個三角形面積確定與所述目標色座標點匹配的目標三角形面積;將所述目標三角形面積作為所述目標色座標點對應的色域範圍。 In one embodiment, the determining the color gamut range where the target color coordinate point is located according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, and the intermediate color coordinate point includes: Calculate the triangle area composed of any three points among the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, the intermediate color coordinate point, and the target color coordinate point; The target triangle area matched by the target color coordinate point; the target triangle area is taken as the color gamut range corresponding to the target color coordinate point.

其中,為了計算目標色座標點對應的色域範圍,分別計算第三色座標點、第四色座標點、第五色座標點、所述中間色座標點和目標色座標點中的任意三點組成的三角形的面積,從5個點中任意選出3個組成三角形,藉由排列組合可以得到10個三角形,即分別計算這10個三角形的面積。 Among them, in order to calculate the color gamut range corresponding to the target color coordinate point, the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, the intermediate color coordinate point and the target color coordinate point are calculated separately. For the area of the triangle, choose 3 out of 5 points to form a triangle, and you can get 10 triangles by permutation and combination, that is, calculate the area of these 10 triangles separately.

在一個實施方式中,第三色光、第四色光和第五色光分別為紅R、綠G、藍B三個基本色光。參考第4圖所示,E表示目標色光的目標色座標點,M表示混合得到的中間色光的中間色座標點。假設E落入三角形BGM中,那麼必然能夠得到:三角形BEG面積+三角形GEM面積+三角形BEM面積=三角形BGM面積。所以根據計算得到的各個三角形面積之間的關係就能夠得到與目標色座標點匹配的目標三角形面積。將該目標三角形面積作為目標色座標點對應的色域範圍。 In one embodiment, the third color light, the fourth color light, and the fifth color light are three basic colors of red R, green G, and blue B, respectively. Referring to Fig. 4, E represents the target color coordinate point of the target color light, and M represents the intermediate color coordinate point of the intermediate color light obtained by mixing. Assuming that E falls into the triangular BGM, then it must be obtained: triangular BEG area + triangular GEM area + triangular BEM area = triangular BGM area. Therefore, the target triangle area matching the target color coordinate point can be obtained according to the relationship between the calculated areas of the triangles. The target triangle area is taken as the color gamut range corresponding to the target color coordinate point.

在一個實施方式中,所述根據所述第一補償色光和所述第二補償色光對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例,包括:獲取所述第一補償色光的第一補償色座標點,獲取所述第二補償色光的第二補償色座標點;根據所述第一補償色座標點、第二補償色座標點和所述中間色座標點確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 In one embodiment, the compensation calculation is performed on the intermediate color light according to the first compensation color light and the second compensation color light, and it is determined that the first compensation color light and the second compensation color light are mixed to the target color coordinate point. The mixing ratio of the second lumen value corresponding to the compensation color light and the intermediate color light includes: obtaining a first compensation color coordinate point of the first compensation color light, and obtaining a second compensation color coordinate point of the second compensation color light; When the first compensation color coordinate point, the second compensation color coordinate point, and the intermediate color coordinate point are determined to be mixed to the target color coordinate point, the first compensation color light, the second compensation color light, and the intermediate color light correspond to The second lumen mixing ratio.

其中,在確定了第一補償色光和第二補償色光後,分別獲取第一補償色光對應的第一補償色座標點,獲取第二補償色光對應的第二補償色座標點,然後藉由將目標色座標點作為目標點,將第一補償色光、第二補償色光、中間色光作為已知座標的色光,然後藉由計算可以得到第一補償色光、第二補償色光和所述中間色光的第二流明值混合比例。只要根據該第二流明值混合比例進行混光就可以得到與目標色座標點對應的目標色光。 Among them, after determining the first compensation color light and the second compensation color light, the first compensation color coordinate points corresponding to the first compensation color light are obtained respectively, and the second compensation color coordinate points corresponding to the second compensation color light are obtained, and then the target The color coordinate point is used as the target point, and the first compensation color light, the second compensation color light, and the intermediate color light are used as the color lights of the known coordinates. Then, the first compensation color light, the second compensation color light and the second color light of the intermediate color light can be obtained by calculation. Lumen mixing ratio. As long as the light is mixed according to the second lumen value mixing ratio, the target color light corresponding to the target color coordinate point can be obtained.

在一個實施方式中,上述照明混光計算方法更包括:獲取所述目標色座標點對應的色溫,獲取所述目標色光對應的第一色光、第二色光、第一補償色光、第二補償色光之間的混合比例;將所述色溫與相應的所述混合比例進行關聯儲存。 In one embodiment, the above-mentioned lighting mixing calculation method further includes: acquiring the color temperature corresponding to the target color coordinate point, and acquiring the first color light, the second color light, the first compensation color light, and the second compensation color light corresponding to the target color light. The mixing ratio between the color lights; storing the color temperature and the corresponding mixing ratio in association.

其中,在得到目標色座標點後,獲取與該目標色座標點對應的色溫,然後獲取與目標色光對應的第一色光、第二色光、第一補償色光、第二補償色光之間的混合比例。即根據第一流明值混合比例和第二流明值混合比例可以計算得到最終第一色光、第二色光、第一補償色光、第二補償色光之間的混合比例。將該色溫與相應的混合比例進行關聯儲存。當後續需要獲取與該色溫 對應的目標色光時,獲取與色溫對應的混合比例,然後將第一色光、第二色光、第一補償色光、第二補償色光按照混合比例進行混合,以便於得到與該色溫對應的目標色光。 Among them, after obtaining the target color coordinate point, obtain the color temperature corresponding to the target color coordinate point, and then obtain the mixture of the first color light, the second color light, the first compensation color light, and the second compensation color light corresponding to the target color light proportion. That is, according to the first lumen value mixing ratio and the second lumen value mixing ratio, the final mixing ratio among the first color light, the second color light, the first compensation color light, and the second compensation color light can be calculated. Store the color temperature in association with the corresponding mixing ratio. When the subsequent need to obtain the color temperature When corresponding to the target color light, obtain the mixing ratio corresponding to the color temperature, and then mix the first color light, the second color light, the first compensation color light, and the second compensation color light according to the mixing ratio, so as to obtain the target color light corresponding to the color temperature .

在一個實施方式中,上述照明混光計算方法更包括:根據預設的條件確定當前照明對應的目標色溫,根據所述色溫與所述混合比例之間的對應關係,確定與所述目標色溫對應的目標混合比例;根據所述目標混合比例混合所述第一色光、第二色光、第一補償色光、第二補償色光,得到與所述目標色溫對應的目標色光。 In one embodiment, the above-mentioned lighting mixing calculation method further includes: determining a target color temperature corresponding to the current lighting according to a preset condition, and determining a color temperature corresponding to the target color temperature according to the corresponding relationship between the color temperature and the mixing ratio. The target mixing ratio of; mixing the first color light, the second color light, the first compensation color light, and the second compensation color light according to the target mixing ratio to obtain the target color light corresponding to the target color temperature.

其中,在一個照明應用場景中,為了使得照明的光能夠隨著時間變化,或者隨著外面光照強度來自動調節,需要即時確定與當前照明對應的色溫。舉個例子,假設為了使得照明的光能夠隨著時間變化,比如,設置早上8-9點的色溫為2700K,9點-10點的色溫為3000K等,那麼當獲取到當前時間後,就可以確定當前照明對應的目標色溫。然後就可以根據預存的色溫與混合比例的對應關係來確定與目標色溫對應的目標混合比例,然後根據目標混合比例混合第一色光、第二色光、第一補償色光、第二補償色光,得到相應的目標色光。 Among them, in a lighting application scene, in order to enable the light of the lighting to change over time, or to automatically adjust with the outside light intensity, it is necessary to determine the color temperature corresponding to the current lighting immediately. For example, suppose that in order to make the light of the illumination change over time, for example, set the color temperature of 8-9 o'clock in the morning to 2700K, and the color temperature of 9-10 o'clock to 3000K, etc., then when the current time is obtained, you can Determine the target color temperature corresponding to the current lighting. Then, the target mixing ratio corresponding to the target color temperature can be determined according to the corresponding relationship between the prestored color temperature and the mixing ratio, and then the first color light, the second color light, the first compensation color light, and the second compensation color light can be mixed according to the target mixing ratio. The corresponding target shade.

在一個實施方式中,所述確定根據所述第一流明值混合比例混合所述第一色光和第二色光得到的中間色光對應的中間色座標點,包括:獲取目標流明值,根據所述目標流明值和所述第一流明值混合比例確定所述第一色光對應的第一流明值和所述第二色光對應的第二流明值;根據所述第一流明值和所述第二流明值確定混合所述第一色光和所述第二色光得到中間色光所對應的中間色座標點。 In one embodiment, the determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio includes: obtaining a target lumen value, and according to the target The mixing ratio of the lumen value and the first lumen value determines the first lumen value corresponding to the first color light and the second lumen value corresponding to the second color light; according to the first lumen value and the second lumen value The value determines the intermediate color coordinate point corresponding to the intermediate color light by mixing the first color light and the second color light.

其中,獲取設定的目標流明值,在已知第一流明值混合比例的情況下,就可以確定第一色光對應的流明值和第二色光對應的流明值,然後進行混合,就可以得到中間色光。由於根據第一色座標點、第二色座標點以及目標色座標點只能計算得到第一色光和第二色光的流明值比例,那麼給定目標流明值後,才能計算得到第一色光和第二色光具體的流明值,然後可以計算得到該第一流明值和第二流明值計算混合得到的中間色光對應的中間色座標點。 Among them, the set target lumen value is obtained, and when the mixing ratio of the first lumen value is known, the lumen value corresponding to the first color light and the lumen value corresponding to the second color light can be determined, and then mixed to obtain the intermediate color Light. Since only the ratio of the lumen value of the first color light and the second color light can be calculated according to the first color coordinate point, the second color coordinate point and the target color coordinate point, the first color light can be calculated after the target lumen value is given And the specific lumen value of the second color light, and then the intermediate color coordinate point corresponding to the intermediate color light obtained by calculating and mixing the first lumen value and the second lumen value can be calculated.

在一個實施方式中,藉由上述照明混光計算方法計算得到第一流明值混合比例和第二流明值混合比例,根據第一流明值混合比例和第二流明值混合比例就可以得到第一色光、第二色光、第一補償色光和第二補償色光所對應的混合比例,根據該混合比例來指導實際的混光能夠大大減少得到的目標色光的色容差。 In one embodiment, the first lumen value mixing ratio and the second lumen value mixing ratio are calculated by the above-mentioned lighting mixing calculation method, and the first color can be obtained according to the first lumen value mixing ratio and the second lumen value mixing ratio. The mixing ratios corresponding to the light, the second color light, the first compensation color light, and the second compensation color light, and guiding the actual light mixing according to the mixing ratio can greatly reduce the color tolerance of the obtained target color light.

在一個實驗驗證中,藉由以256bit為分割,採用RGBWW(R紅色光、G綠色光、B藍色光、W暖白光和W冷白光)5色溫LED以125bits為基準數據,藉由使用0-255控制器,將RGBWW5個LED,利用PWM(脈衝寬度調製)原理,分割成所需要的電流值,經過LED後,發出所需要的流明值。然後根據我們設置的五路色光的流明值比例調節得到的目標色光。並將藉由採用積分球測量出來的色座標點與目標色座標點進行比較,發現兩者很接近,如第5圖所示為一個實施方式中對照明混光計算方法進行實驗驗證的結果示意圖,實驗得到的色座標點(星號點)與目標色座標點(圓點)基本重合,色容差在1SCDM內。色容差用於表徵光色電檢測系統的x,y值與標準光源之間的差別。數值越小,準確度越高。色容差是實測LED光源座標值(x1,y1)偏離標準色度座標目標值的距離。SCDM可以採用如下公式求得:

Figure 108119481-A0305-02-0016-1
In an experimental verification, by dividing by 256bit, using RGBWW (R red light, G green light, B blue light, W warm white light and W cold white light) 5 color temperature LED with 125bits as the benchmark data, by using 0- The 255 controller divides the RGBWW5 LEDs into the required current value using the principle of PWM (Pulse Width Modulation). After passing through the LED, the required lumen value is emitted. Then adjust the target color light according to the lumen value ratio of the five color lights we set. The color coordinate points measured by using the integrating sphere are compared with the target color coordinate points, and it is found that the two are very close. Figure 5 shows a schematic diagram of the results of experimental verification of the illumination mixing calculation method in an embodiment. , The color coordinate point (star point) obtained by the experiment basically coincides with the target color coordinate point (circle point), and the color tolerance is within 1SCDM. The color tolerance is used to characterize the difference between the x and y values of the photochromic electrical detection system and the standard light source. The smaller the value, the higher the accuracy. The color tolerance is the distance of the measured LED light source coordinate value (x1, y1) from the target value of the standard chromaticity coordinate. SCDM can be obtained using the following formula:
Figure 108119481-A0305-02-0016-1

其中,△x為x1值相對於目標值的誤差,△y為y1值相對於目標值的誤差。g11、g12和g22係由標準顏色確定的係數。 Wherein, △ x value x1 error relative to the target value, △ y is the value of y1 with respect to the target value of the error. g11, g12 and g22 are coefficients determined by standard colors.

如第6圖所示,為一個實施方式中,採用2色光和5色光(實際採用的是4色光,第一補償色光和第二補償色光係根據需要從3個基本色光(紅、綠、藍)中選取出的2個)進行混合的理論對比以及實際藉由積分球測量出來的結果對比示意圖。 As shown in Figure 6, it is an embodiment in which two-color light and five-color light are used (actually, four-color light is used. The first compensation color light and the second compensation color light system are selected from three basic colors (red, green, blue) as needed. The 2 selected in )) is a schematic diagram of the theoretical comparison of the mixing and the comparison of the actual results measured by the integrating sphere.

上述照明混光計算方法能夠準確地計算得到4個色光(第一色光、第二色光、第一補償色光、第二補償色光)的混合比例,根據計算得到的混合比例在實際應用中進行混色得到的目標色光的色容差小於1SCDM,大大降低了色容差,提高了混色的效果。該照明混光計算方法具有普適性,適用於任何照明產品。 The above-mentioned lighting mixing calculation method can accurately calculate the mixing ratio of the 4 color lights (the first color light, the second color light, the first compensation color light, and the second compensation color light), and perform the color mixing in actual applications according to the calculated mixing ratio The color tolerance of the obtained target color light is less than 1SCDM, which greatly reduces the color tolerance and improves the color mixing effect. The lighting mixing calculation method is universal and applicable to any lighting products.

如第7圖所示,提出了一種照明混光計算裝置,該裝置包括:座標點獲取模組702,用於獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;比例計算模組704,用於獲取目標色座標點,根據所述目標色座標點、所述第一色座標點和所述第二色座標點計算得到所述第一色光和第二色光的第一流明值混合比例;座標點確定模組706,用於確定根據所述第一流明值混合比例混合所述第一色光和第二色光得到的中間色光對應的中間色座標點;補償色光確定模組708,用於根據所述中間色座標點確定與所述中間色座標點匹配的第一補償色光和第二補償色光; 比例確定模組710,用於根據所述第一補償色光和所述第二補償色光對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 As shown in Figure 7, an illumination light mixing calculation device is proposed. The device includes: a coordinate point acquisition module 702 for acquiring a first color coordinate point corresponding to a first color light, and a second color light corresponding to a second color light. Color coordinate points; ratio calculation module 704, used to obtain target color coordinate points, according to the target color coordinate point, the first color coordinate point and the second color coordinate point to calculate the first color light and The first lumen value mixing ratio of the second color light; the coordinate point determination module 706 is used to determine the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio Compensation color light determination module 708, for determining the first compensation color light and the second compensation color light that match the intermediate color coordinate point according to the intermediate color coordinate point; The ratio determination module 710 is configured to perform compensation calculation on the intermediate color light according to the first compensation color light and the second compensation color light, and determine when the first compensation color light and the second color light are mixed to the target color coordinate point. The second lumen value mixing ratio corresponding to the compensation color light and the intermediate color light.

在一個實施方式中,所述補償色光確定模組更用於獲取第三色光對應的第三色座標點、第四色光對應的第四色座標點和第五色光對應的第五色座標點;根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍;根據所述色域範圍從所述第三色光、第四色光、第五色光中選取出兩個色光作為第一補償色光和第二補償色光。 In one embodiment, the compensation color light determination module is further used to obtain the third color coordinate point corresponding to the third color light, the fourth color coordinate point corresponding to the fourth color light, and the fifth color coordinate point corresponding to the fifth color light. Determine the color gamut range where the target color coordinate point is located according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point; according to the color gamut range from the first Two color lights are selected from three color light, fourth color light, and fifth color light as the first compensation color light and the second compensation color light.

在一個實施方式中,所述補償色光確定模組更用於分別計算所述第三色座標點、第四色座標點、第五色座標點、所述中間色座標點和目標色座標點中的任意三點組成的三角形面積;根據計算得到的各個三角形面積確定與所述目標色座標點匹配的目標三角形面積;將所述目標三角形面積作為所述目標色座標點對應的色域範圍。 In one embodiment, the compensation color light determination module is further used to calculate the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, the intermediate color coordinate point, and the target color coordinate point. The area of a triangle formed by any three points; the area of the target triangle matching the target color coordinate point is determined according to the calculated area of each triangle; the target triangle area is taken as the color gamut range corresponding to the target color coordinate point.

在一個實施方式中,所述比例確定模組更用於獲取所述第一補償色光的第一補償色座標點,獲取所述第二補償色光的第二補償色座標點;根據所述第一補償色座標點、第二補償色座標點和所述中間色座標點確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 In one embodiment, the ratio determination module is further configured to obtain a first compensation color coordinate point of the first compensation color light, and obtain a second compensation color coordinate point of the second compensation color light; The compensation color coordinate point, the second compensation color coordinate point, and the intermediate color coordinate point determine the second lumen value corresponding to the first compensation color light, the second compensation color light, and the intermediate color light when mixed to the target color coordinate point The mixing ratio.

如第8圖所示,在一個實施方式中,上述照明混光計算裝置更包括: 儲存模組712,用於獲取所述目標色座標點對應的色溫,獲取所述目標色光對應的第一色光、第二色光、第一補償色光、第二補償色光之間的混合比例,將所述色溫與相應的所述混合比例進行關聯儲存。 As shown in Figure 8, in one embodiment, the above-mentioned lighting mixing calculation device further includes: The storage module 712 is used to obtain the color temperature corresponding to the target color coordinate point, obtain the mixing ratio between the first color light, the second color light, the first compensation color light, and the second compensation color light corresponding to the target color light, and The color temperature is stored in association with the corresponding mixing ratio.

如第9圖所示,在一個實施方式中,上述照明混光計算裝置更包括:目標混合比例確定模組714,用於根據預設的條件確定當前照明對應的目標色溫,根據所述色溫與所述混合比例之間的對應關係,確定與所述目標色溫對應的目標混合比例;混合模組716,用於根據所述目標混合比例混合所述第一色光、第二色光、第一補償色光、第二補償色光,得到與所述目標色溫對應的目標色光。 As shown in Figure 9, in one embodiment, the above-mentioned lighting mixing calculation device further includes: a target mixing ratio determining module 714, configured to determine the target color temperature corresponding to the current lighting according to a preset condition, and according to the color temperature and The corresponding relationship between the mixing ratios determines a target mixing ratio corresponding to the target color temperature; a mixing module 716 for mixing the first color light, the second color light, and the first compensation according to the target mixing ratio The color light and the second compensation color light are used to obtain the target color light corresponding to the target color temperature.

在一個實施方式中,確定座標點確定模組更用於獲取目標流明值,根據所述目標流明值和所述第一流明值混合比例確定所述第一色光對應的第一流明值和所述第二色光對應的第二流明值;根據所述第一流明值和所述第二流明值確定混合所述第一色光和所述第二色光得到中間色光所對應的中間色座標點。 In one embodiment, the determining coordinate point determination module is further used to obtain a target lumen value, and determine the first lumen value and the first lumen value corresponding to the first color light according to the mixing ratio of the target lumen value and the first lumen value. The second lumen value corresponding to the second color light; and the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light is determined according to the first lumen value and the second lumen value.

第10圖示出了一個實施方式中電腦設備的內部結構圖。該電腦設備可以是伺服器,也可以是終端。伺服器可以是一個伺服器,也可以是多個伺服器組成的伺服器集群,更可以是雲伺服器(雲端伺服器)等。終端可以是臺式終端或移動終端,移動終端具體可以是手機、筆記本電腦、平板電腦、智能燈具等中的一種。如第10圖所示,該電腦設備包括藉由系統匯流排連接的處理器、記憶體和網路介面。其中,記憶體包括非易失性儲存介質和內記憶體。該 電腦設備的非易失性儲存介質儲存有操作系統,更可儲存有電腦程式,該電腦程式被處理器執行時,可使得處理器實現照明混光計算方法。該內記憶體中也可儲存有電腦程式,該電腦程式被處理器執行時,可使得處理器執行照明混光計算方法。網路介面用於與外界進行通訊。本領域具通常知識者可以理解,第10圖中示出的結構,僅僅係與本發明相關的部分結構的框圖,並不構成對本發明所應用於其上的電腦設備的限定,具體的電腦設備可以包括比圖中所示更多或更少的部件,或者組合某些部件,或者具有不同的部件佈置。 Figure 10 shows an internal structure diagram of a computer device in an embodiment. The computer equipment can be a server or a terminal. The server can be a server, a server cluster composed of multiple servers, or a cloud server (cloud server). The terminal may be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be one of a mobile phone, a notebook computer, a tablet computer, and a smart lamp. As shown in Figure 10, the computer equipment includes a processor, memory, and network interface connected by a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The The non-volatile storage medium of the computer equipment stores an operating system and can also store a computer program. When the computer program is executed by the processor, the processor can realize the lighting mixing calculation method. A computer program can also be stored in the internal memory, and when the computer program is executed by the processor, the processor can execute the lighting mixing calculation method. The network interface is used to communicate with the outside world. Those skilled in the art can understand that the structure shown in Figure 10 is only a block diagram of part of the structure related to the present invention, and does not constitute a limitation on the computer equipment to which the present invention is applied. The specific computer The device may include more or fewer parts than shown in the figures, or combine certain parts, or have a different arrangement of parts.

在一個實施方式中,本發明提供的照明混光計算方法可以實現為一種電腦程式的形式,電腦程式可在如第10圖所示的電腦設備上運行。電腦設備的記憶體中可儲存組成該照明混光計算裝置的各個程式範本。比如,座標點獲取模組702,比例計算模組704、座標點確定模組706、補償色光確定模組708和比例確定模組710。 In one embodiment, the lighting mixing calculation method provided by the present invention can be implemented in the form of a computer program, and the computer program can be run on the computer device as shown in FIG. 10. The memory of the computer equipment can store various program templates that compose the lighting mixing calculation device. For example, the coordinate point acquisition module 702, the ratio calculation module 704, the coordinate point determination module 706, the compensation color light determination module 708, and the ratio determination module 710.

如第11圖所示,在一個實施方式中,為照明混光計算方法的應用場景圖,圖中包括有三種應用場景,一種是燈具中包括有計算模組,燈具接收輸入單元輸入的各個LED光源所對應的色座標點以及目標色座標點,燈具中的計算模組就可以計算得到目標色座標點相應的混合比例,然後根據混光比例調用驅動模組,藉由驅動模組控制5個LED光源的混合比例(實際參與有4個LED光源,即剩下一種所占的混合比例為0),藉由控制混合比例最後混合得到目標色光。 As shown in Figure 11, in one embodiment, it is an application scenario diagram of the lighting mixing calculation method. The figure includes three application scenarios. One is that the lamp includes a calculation module, and the lamp receives each LED input from the input unit. For the color coordinate points and target color coordinate points corresponding to the light source, the calculation module in the lamp can calculate the corresponding mixing ratio of the target color coordinate point, and then call the driving module according to the mixing ratio, and the driving module controls 5 The mixing ratio of the LED light source (there are actually 4 LED light sources involved, that is, the mixing ratio of the remaining one is 0), and the target color light is finally mixed by controlling the mixing ratio.

一種是藉由伺服器(比如,雲伺服器)進行混光計算,伺服器獲取輸入單元輸入的各個LED光源對應的色座標點以及目標色座標點,計算得到 目標色座標點對應的混合比例,將得到的混合比例藉由通訊模組發送到燈具,然後燈具藉由驅動模組來控制LED光源來實現。 One is to use a server (such as a cloud server) to perform light mixing calculation. The server obtains the color coordinate points and target color coordinate points corresponding to each LED light source input by the input unit, and calculates The mixing ratio corresponding to the target color coordinate point is sent to the lamp through the communication module, and then the lamp is realized by controlling the LED light source through the driving module.

最後一種是藉由終端進行混光計算,終端接收輸入單元輸入的各個LED光源對應的色座標點以及目標色座標點,計算得到目標色座標點對應的混合比例,然後將得到的混合比例同樣地藉由通訊模組發送到燈具,然後燈具藉由驅動模組來控制LED光源來實現。 The last one is to use the terminal to perform light mixing calculation. The terminal receives the color coordinate points and target color coordinate points of each LED light source input by the input unit, calculates the mixing ratio corresponding to the target color coordinate point, and then uses the obtained mixing ratio in the same way. It is sent to the lamp by the communication module, and then the lamp is realized by the driving module to control the LED light source.

一種電腦設備,包括記憶體和處理器,所述記憶體儲存有電腦程式,所述電腦程式被所述處理器執行時,使得所述處理器執行如下步驟:獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;獲取目標色座標點,根據所述目標色座標點、所述第一色座標點和所述第二色座標點計算得到所述第一色光和第二色光的第一流明值混合比例;確定根據所述第一流明值混合比例混合所述第一色光和第二色光得到的中間色光對應的中間色座標點;根據所述中間色座標點確定與所述中間色座標點匹配的第一補償色光和第二補償色光;根據所述第一補償色光和所述第二補償色光對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 A computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the following steps: obtaining a first color light corresponding to a first color light. Color coordinate point, obtain the second color coordinate point corresponding to the second color light; obtain the target color coordinate point, calculate the first color coordinate point according to the target color coordinate point, the first color coordinate point and the second color coordinate point The first lumen value mixing ratio of the first color light and the second color light; determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio; The coordinate point determines the first compensation color light and the second compensation color light that match the intermediate color coordinate point; the compensation calculation is performed on the intermediate color light according to the first compensation color light and the second compensation color light, and it is determined to be mixed to the target The color coordinate point is the mixing ratio of the second lumen value corresponding to the first compensation color light, the second compensation color light and the intermediate color light.

在一個實施方式中,所述根據所述中間色座標點確定與所述中間色座標點匹配的第一補償色光和第二補償色光,包括:獲取第三色光對應的第三色座標點、第四色光對應的第四色座標點和第五色光對應的第五色座標點;根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍;根據所述色域範圍從所述第三色光、第四色光、第五色光中選取出兩個色光作為第一補償色光和第二補償色光。 In one embodiment, the determining the first compensation color light and the second compensation color light that match the intermediate color coordinate point according to the intermediate color coordinate point includes: acquiring the third color coordinate point and the fourth color light corresponding to the third color light The corresponding fourth color coordinate point and the fifth color coordinate point corresponding to the fifth color light; the target is determined according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point The color gamut range where the color coordinate point is located; according to the color gamut range, two color lights are selected from the third color light, the fourth color light, and the fifth color light as the first compensation color light and the second compensation color light.

在一個實施方式中,所述根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍,包括:分別計算所述第三色座標點、第四色座標點、第五色座標點、所述中間色座標點和目標色座標點中的任意三點組成的三角形面積;根據計算得到的各個三角形面積確定與所述目標色座標點匹配的目標三角形面積;將所述目標三角形面積作為所述目標色座標點對應的色域範圍。 In one embodiment, the determining the color gamut range where the target color coordinate point is located according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, and the intermediate color coordinate point includes: Calculate the triangle area composed of any three points among the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, the intermediate color coordinate point, and the target color coordinate point; The target triangle area matched by the target color coordinate point; the target triangle area is taken as the color gamut range corresponding to the target color coordinate point.

在一個實施方式中,所述根據所述第一補償色光和所述第二補償色光對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例,包括:獲取所述第一補償色光的第一補償色座標點,獲取所述第二補償色光的第二補償色座標點;根據所述第一補償色座標點、第二補償色座標點和所述中間色座標點確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 In one embodiment, the compensation calculation is performed on the intermediate color light according to the first compensation color light and the second compensation color light, and it is determined that the first compensation color light and the second compensation color light are mixed to the target color coordinate point. The mixing ratio of the second lumen value corresponding to the compensation color light and the intermediate color light includes: obtaining a first compensation color coordinate point of the first compensation color light, and obtaining a second compensation color coordinate point of the second compensation color light; When the first compensation color coordinate point, the second compensation color coordinate point, and the intermediate color coordinate point are determined to be mixed to the target color coordinate point, the first compensation color light, the second compensation color light, and the intermediate color light correspond to The second lumen mixing ratio.

在一個實施方式中,上述電腦程式被所述處理器執行時,更用於執行以下步驟:獲取所述目標色座標點對應的色溫,獲取所述目標色光對應的第一色光、第二色光、第一補償色光、第二補償色光之間的混合比例;將所述色溫與相應的所述混合比例進行關聯儲存。 In one embodiment, when the above computer program is executed by the processor, it is further used to perform the following steps: obtain the color temperature corresponding to the target color coordinate point, and obtain the first color light and the second color light corresponding to the target color light , The mixing ratio between the first compensation color light and the second compensation color light; and storing the color temperature and the corresponding mixing ratio in association.

在一個實施方式中,上述電腦程式被所述處理器執行時,更用於執行以下步驟:根據預設的條件確定當前照明對應的目標色溫,根據所述色溫與所述混合比例之間的對應關係,確定與所述目標色溫對應的目標混合比例;根據所述目標混合比例混合所述第一色光、第二色光、第一補償色光、第二補償色光,得到與所述目標色溫對應的目標色光。 In one embodiment, when the above computer program is executed by the processor, it is further used to perform the following steps: determine the target color temperature corresponding to the current lighting according to a preset condition, and according to the correspondence between the color temperature and the mixing ratio Relationship, determine the target mixing ratio corresponding to the target color temperature; mix the first color light, the second color light, the first compensation color light, and the second compensation color light according to the target mixing ratio to obtain the target color temperature Target color light.

在一個實施方式中,所述確定根據所述第一流明值混合比例混合所述第一色光和第二色光得到的中間色光對應的中間色座標點,包括:獲取目標流明值,根據所述目標流明值和所述第一流明值混合比例確定所述第一色光對應的第一流明值和所述第二色光對應的第二流明值;根據所述第一流明值和所述第二流明值確定混合所述第一色光和所述第二色光得到中間色光所對應的中間色座標點。 In one embodiment, the determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio includes: obtaining a target lumen value, and according to the target The mixing ratio of the lumen value and the first lumen value determines the first lumen value corresponding to the first color light and the second lumen value corresponding to the second color light; according to the first lumen value and the second lumen value The value determines the intermediate color coordinate point corresponding to the intermediate color light by mixing the first color light and the second color light.

一種電腦可讀儲存介質,儲存有電腦程式,所述電腦程式被處理器執行時,使得所述處理器執行如下步驟:獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;獲取目標色座標點,根據所述目標色座標點、所述第一色座標點和所述第二色座標點計算得到所述第一色光和第二色光的第一流明值混合比例;確定根據所述第一流明值混合比例混合所述第一色光和第二色光得到的中間色光對應的中間色座標點;根據所述中間色座標點確定與所述中間色座標點匹配的第一補償色光和第二補償色光;根據所述第一補償色光和所述第二補償色光對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the following steps: acquiring a first color coordinate point corresponding to a first color light, and acquiring a second color light corresponding The second color coordinate point; the target color coordinate point is obtained, and the first color light and the second color light are calculated according to the target color coordinate point, the first color coordinate point, and the second color coordinate point Lumen value mixing ratio; determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio; determining to match the intermediate color coordinate point according to the intermediate color coordinate point The first compensation color light and the second compensation color light; the intermediate color light is compensated according to the first compensation color light and the second compensation color light, and the first compensation color light is determined to be mixed to the target color coordinate point , The second compensation color light and the second lumen value mixing ratio corresponding to the intermediate color light.

在一個實施方式中,所述根據所述中間色座標點確定與所述中間色座標點匹配的第一補償色光和第二補償色光,包括:獲取第三色光對應的第三色座標點、第四色光對應的第四色座標點和第五色光對應的第五色座標點;根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍;根據所述色域範圍從所述第三色光、第四色光、第五色光中選取出兩個色光作為第一補償色光和第二補償色光。 In one embodiment, the determining the first compensation color light and the second compensation color light that match the intermediate color coordinate point according to the intermediate color coordinate point includes: acquiring the third color coordinate point and the fourth color light corresponding to the third color light The corresponding fourth color coordinate point and the fifth color coordinate point corresponding to the fifth color light; the target is determined according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point The color gamut range where the color coordinate point is located; according to the color gamut range, two color lights are selected from the third color light, the fourth color light, and the fifth color light as the first compensation color light and the second compensation color light.

在一個實施方式中,所述根據所述第三色座標點、第四色座標點、第五色座標點和所述中間色座標點確定所述目標色座標點所在的色域範圍,包括:分別計算所述第三色座標點、第四色座標點、第五色座標點、所述中間色座標點和目標色座標點中的任意三點組成的三角形面積;根據計算得到的各個三角形面積確定與所述目標色座標點匹配的目標三角形面積;將所述目標三角形面積作為所述目標色座標點對應的色域範圍。 In one embodiment, the determining the color gamut range where the target color coordinate point is located according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, and the intermediate color coordinate point includes: Calculate the triangle area composed of any three points among the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, the intermediate color coordinate point, and the target color coordinate point; The target triangle area matched by the target color coordinate point; the target triangle area is taken as the color gamut range corresponding to the target color coordinate point.

在一個實施方式中,所述根據所述第一補償色光和所述第二補償色光對所述中間色光進行補償計算,確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例,包括:獲取所述第一補償色光的第一補償色座標點,獲取所述第二補償色光的第二補償色座標點;根據所述第一補償色座標點、第二補償色座標點和所述中間色座標點確定混合到所述目標色座標點時所述第一補償色光、第二補償色光和所述中間色光所對應的第二流明值混合比例。 In one embodiment, the compensation calculation is performed on the intermediate color light according to the first compensation color light and the second compensation color light, and it is determined that the first compensation color light and the second compensation color light are mixed to the target color coordinate point. The mixing ratio of the second lumen value corresponding to the compensation color light and the intermediate color light includes: obtaining a first compensation color coordinate point of the first compensation color light, and obtaining a second compensation color coordinate point of the second compensation color light; When the first compensation color coordinate point, the second compensation color coordinate point, and the intermediate color coordinate point are determined to be mixed to the target color coordinate point, the first compensation color light, the second compensation color light, and the intermediate color light correspond to The second lumen mixing ratio.

在一個實施方式中,上述電腦程式被所述處理器執行時,更用於執行以下步驟:獲取所述目標色座標點對應的色溫,獲取所述目標色光對應的第一色光、第二色光、第一補償色光、第二補償色光之間的混合比例;將所述色溫與相應的所述混合比例進行關聯儲存。 In one embodiment, when the above computer program is executed by the processor, it is further used to perform the following steps: obtain the color temperature corresponding to the target color coordinate point, and obtain the first color light and the second color light corresponding to the target color light , The mixing ratio between the first compensation color light and the second compensation color light; and storing the color temperature and the corresponding mixing ratio in association.

在一個實施方式中,上述電腦程式被所述處理器執行時,更用於執行以下步驟:根據預設的條件確定當前照明對應的目標色溫,根據所述色溫與所述混合比例之間的對應關係,確定與所述目標色溫對應的目標混合比例;根據所述目標混合比例混合所述第一色光、第二色光、第一補償色光、第二補償色光,得到與所述目標色溫對應的目標色光。 In one embodiment, when the above computer program is executed by the processor, it is further used to perform the following steps: determine the target color temperature corresponding to the current lighting according to a preset condition, and according to the correspondence between the color temperature and the mixing ratio Relationship, determine the target mixing ratio corresponding to the target color temperature; mix the first color light, the second color light, the first compensation color light, and the second compensation color light according to the target mixing ratio to obtain the target color temperature Target color light.

在一個實施方式中,所述確定根據所述第一流明值混合比例混合所述第一色光和第二色光得到的中間色光對應的中間色座標點,包括:獲取目標流明值,根據所述目標流明值和所述第一流明值混合比例確定所述第一色光對應的第一流明值和所述第二色光對應的第二流明值;根據所述第一流明值和所述第二流明值確定混合所述第一色光和所述第二色光得到中間色光所對應的中間色座標點。 In one embodiment, the determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio includes: obtaining a target lumen value, and according to the target The mixing ratio of the lumen value and the first lumen value determines the first lumen value corresponding to the first color light and the second lumen value corresponding to the second color light; according to the first lumen value and the second lumen value The value determines the intermediate color coordinate point corresponding to the intermediate color light by mixing the first color light and the second color light.

本領域具通常知識者可以理解實現上述實施方式方法中的全部或部分流程,係可以藉由電腦程式來指令相關的硬體來完成,所述的程式可儲存於一非易失性電腦可讀取儲存介質中,該程式在執行時,可包括如上述各方法的實施方式的流程。其中,本發明所提供的各實施方式中所使用的對記憶體、儲存、資料庫或其他介質的任何引用,均可包括非易失性和/或易失性記憶體。非易失性記憶體可包括只讀記憶體(ROM)、可編程ROM(PROM)、電可編程ROM(EPROM)、電可擦除可編程ROM(EEPROM)或閃存。易失性記憶體可包括隨機存取記憶體(RAM)或者外部高速緩衝記憶體。作為說明而非局限,RAM以多種形式可得,諸如靜態RAM(SRAM)、動態RAM(DRAM)、同步DRAM(SDRAM)、雙數據率SDRAM(DDRSDRAM)、增強型SDRAM(ESDRAM)、同步鏈路(Synchlink)DRAM(SLDRAM)、記憶體匯流排(Rambus)直接RAM(RDRAM)、直接記憶體匯流排動態RAM(DRDRAM)、以及記憶體匯流排動態RAM(RDRAM)等。 Those with ordinary knowledge in the art can understand that all or part of the processes in the above-mentioned implementation methods can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a non-volatile computer readable In the storage medium, when the program is executed, it may include the processes of the implementation manners of the above methods. Among them, any reference to memory, storage, database or other media used in the various embodiments provided by the present invention may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上實施方式的各技術特徵可以進行任意的組合,為使描述簡潔,未對上述實施方式中的各個技術特徵所有可能的組合都進行描述,然而,只要這些技術特徵的組合不存在矛盾,都應當認為是本說明書記載的範圍。 The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered as the range described in this specification.

以上所述實施方式僅表達了本發明的幾種實施方式,其描述較為具體和詳細,但並不能因此而理解為對本發明專利範圍的限制。應當指出的是,對於本領域的具通常知識者來說,在不脫離本發明構思的前提下,更可以做出複數個變形和改進,這些都屬於本發明的保護範圍。因此,本發明專利的保護範圍應以所附申請專利範圍為准。 The above-mentioned embodiments only express a few embodiments of the present invention, and the description is relatively specific and detailed, but it should not be understood as a limitation to the patent scope of the present invention. It should be pointed out that for those with ordinary knowledge in the field, without departing from the concept of the present invention, multiple modifications and improvements can be made, and these all fall within the protection scope of the present invention. Therefore, the scope of protection of the patent for the present invention shall be subject to the scope of the attached patent application.

102至110:步驟 102 to 110: steps

Claims (9)

一種照明混光計算方法,其包含下列步驟:獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;獲取目標色座標點,根據該目標色座標點、該第一色座標點和該第二色座標點計算得到該第一色光和該第二色光的第一流明值混合比例;確定根據該第一流明值混合比例混合該第一色光和該第二色光得到的中間色光對應的中間色座標點;根據該中間色座標點確定與該中間色座標點匹配的第一補償色光和第二補償色光,包括獲取第三色光對應的第三色座標點、第四色光對應的第四色座標點和第五色光對應的第五色座標點;根據該第三色座標點、該第四色座標點、該第五色座標點和該中間色座標點確定該目標色座標點所在的色域範圍;以及根據該色域範圍從該第三色光、該第四色光、該第五色光中選取出兩個色光作為該第一補償色光和該第二補償色光;以及根據該第一補償色光和該第二補償色光對該中間色光進行補償計算,確定混合到該目標色座標點時該第一補償色光、該第二補償色光和該中間色光所對應的第二流明值混合比例。 A method for calculating lighting mixing, comprising the following steps: obtaining a first color coordinate point corresponding to a first color light, and obtaining a second color coordinate point corresponding to a second color light; obtaining a target color coordinate point, according to the target color coordinate point, The first color coordinate point and the second color coordinate point are calculated to obtain the first lumen value mixing ratio of the first color light and the second color light; it is determined to mix the first color light and the first color light according to the first lumen value mixing ratio The intermediate color coordinate point corresponding to the intermediate color light obtained by the second color light; the first compensation color light and the second compensation color light that match the intermediate color coordinate point are determined according to the intermediate color coordinate point, including obtaining the third color coordinate point and the second color light corresponding to the third color light The fourth color coordinate point corresponding to the four-color light and the fifth color coordinate point corresponding to the fifth color light; determine the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point The color gamut range where the target color coordinate point is located; and according to the color gamut range, two color lights are selected from the third color light, the fourth color light, and the fifth color light as the first compensation color light and the second compensation color light And according to the first compensation color light and the second compensation color light the intermediate color light compensation calculation, determine the first compensation color light, the second compensation color light and the intermediate color light when mixed to the target color coordinate point The mixing ratio of two lumens. 如請求項1所述之照明混光計算方法,其中根據該第三色座標點、該第四色座標點、該第五色座標點和該中間色座標點確 定該目標色座標點所在的色域範圍,包含下列步驟:分別計算該第三色座標點、該第四色座標點、該第五色座標點、該中間色座標點和該目標色座標點中的任意三點組成的三角形面積;根據計算得到的各個三角形面積確定與該目標色座標點匹配的目標三角形面積;以及將該目標三角形面積作為該目標色座標點對應的色域範圍。 The lighting mixing calculation method according to claim 1, wherein the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point are determined Determine the color gamut range of the target color coordinate point, including the following steps: respectively calculate the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point, the intermediate color coordinate point and the target color coordinate point. The area of the triangle formed by any three points of the triangle; the area of the target triangle matching the target color coordinate point is determined according to the calculated area of each triangle; and the target triangle area is used as the color gamut range corresponding to the target color coordinate point. 如請求項1所述之照明混光計算方法,其中根據該第一補償色光和該第二補償色光對該中間色光進行補償計算,確定混合到該目標色座標點時該第一補償色光、該第二補償色光和該中間色光所對應的該第二流明值混合比例,包含下列步驟:獲取該第一補償色光的第一補償色座標點,獲取該第二補償色光的第二補償色座標點;以及根據該第一補償色座標點、該第二補償色座標點和該中間色座標點確定混合到該目標色座標點時該第一補償色光、該第二補償色光和該中間色光所對應的該第二流明值混合比例。 The lighting mixing calculation method according to claim 1, wherein the intermediate color light is compensated according to the first compensation color light and the second compensation color light, and the first compensation color light, the first compensation color light and the second compensation color light are determined to be mixed to the target color coordinate point. The second compensation color light and the second lumen value mixing ratio corresponding to the intermediate color light include the following steps: obtaining a first compensation color coordinate point of the first compensation color light, and obtaining a second compensation color coordinate point of the second compensation color light ; And according to the first compensation color coordinate point, the second compensation color coordinate point and the intermediate color coordinate point to determine the first compensation color light, the second compensation color light and the intermediate color light when mixed to the target color coordinate point The second lumen value mixing ratio. 如請求項1所述之照明混光計算方法,其更包含下列步驟:獲取該目標色座標點對應的色溫,獲取目標色光對應的該第一色光、該第二色光、該第一補償色光、該第二補償色光之間的混合比例;以及將該色溫與相應的該混合比例進行關聯儲存。 The lighting mixing calculation method according to claim 1, further comprising the following steps: acquiring the color temperature corresponding to the target color coordinate point, acquiring the first color light, the second color light, and the first compensation color light corresponding to the target color light , The mixing ratio between the second compensation color lights; and storing the color temperature in association with the corresponding mixing ratio. 如請求項4所述之照明混光計算方法,其更包含下列步驟: 根據預設的條件確定當前照明對應的目標色溫,根據該色溫與該混合比例之間的對應關係,確定與該目標色溫對應的目標混合比例;以及根據該目標混合比例混合該第一色光、該第二色光、該第一補償色光、該第二補償色光,得到與該目標色溫對應的該目標色光。 The lighting mixing calculation method described in claim 4 further includes the following steps: Determine the target color temperature corresponding to the current lighting according to preset conditions, determine the target mixing ratio corresponding to the target color temperature according to the corresponding relationship between the color temperature and the mixing ratio; and mixing the first color light, The second color light, the first compensation color light, and the second compensation color light obtain the target color light corresponding to the target color temperature. 如請求項1所述之照明混光計算方法,其中確定根據該第一流明值混合比例混合該第一色光和該第二色光得到的該中間色光對應的該中間色座標點,包含下列步驟:獲取目標流明值,根據該目標流明值和該第一流明值混合比例確定該第一色光對應的第一流明值和該第二色光對應的第二流明值;以及根據該第一流明值和該第二流明值確定混合該第一色光和該第二色光得到該中間色光所對應的該中間色座標點。 The lighting mixing calculation method of claim 1, wherein determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio includes the following steps: Obtain a target lumen value, determine the first lumen value corresponding to the first color light and the second lumen value corresponding to the second color light according to the mixing ratio of the target lumen value and the first lumen value; and according to the first lumen value and The second lumen value determines to mix the first color light and the second color light to obtain the intermediate color coordinate point corresponding to the intermediate color light. 一種照明混光計算裝置,其包含:座標點獲取模組,用於獲取第一色光對應的第一色座標點,獲取第二色光對應的第二色座標點;比例計算模組,用於獲取目標色座標點,根據該目標色座標點、該第一色座標點和該第二色座標點計算得到該第一色光和該第二色光的第一流明值混合比例;座標點確定模組,用於確定根據該第一流明值混合比例混合該第一色光和該第二色光得到的中間色光對應的中間色座標點; 補償色光確定模組,用於根據該中間色座標點確定與該中間色座標點匹配的第一補償色光和第二補償色光,包括獲取第三色光對應的第三色座標點、第四色光對應的第四色座標點和第五色光對應的第五色座標點;根據該第三色座標點、該第四色座標點、該第五色座標點和該中間色座標點確定該目標色座標點所在的色域範圍;以及根據該色域範圍從該第三色光、該第四色光、該第五色光中選取出兩個色光作為該第一補償色光和該第二補償色光;以及比例確定模組,用於根據該第一補償色光和該第二補償色光對該中間色光進行補償計算,確定混合到該目標色座標點時該第一補償色光、該第二補償色光和該中間色光所對應的第二流明值混合比例。 A lighting mixing calculation device, comprising: a coordinate point acquisition module for acquiring a first color coordinate point corresponding to a first color light, and a second color coordinate point corresponding to a second color light; and a ratio calculation module for Obtain the target color coordinate point, and calculate the mixing ratio of the first lumen value of the first color light and the second color light according to the target color coordinate point, the first color coordinate point and the second color coordinate point; the coordinate point determination mode Group for determining the intermediate color coordinate point corresponding to the intermediate color light obtained by mixing the first color light and the second color light according to the first lumen value mixing ratio; The compensation color light determination module is used to determine the first compensation color light and the second compensation color light that match the intermediate color coordinate point according to the intermediate color coordinate point, including obtaining the third color coordinate point corresponding to the third color light and the first color light corresponding to the fourth color light. The fourth color coordinate point and the fifth color coordinate point corresponding to the fifth color light; determine the target color coordinate point according to the third color coordinate point, the fourth color coordinate point, the fifth color coordinate point and the intermediate color coordinate point And selecting two color lights from the third color light, the fourth color light, and the fifth color light as the first compensation color light and the second compensation color light according to the color gamut range; and the ratio determination mode Group, used to perform compensation calculation on the intermediate color light according to the first compensation color light and the second compensation color light, and determine the corresponding to the first compensation color light, the second compensation color light and the intermediate color light when the target color coordinate point is mixed The second lumen value mixing ratio. 一種電腦設備,包括記憶體和處理器,該記憶體儲存有電腦程式,該電腦程式被該處理器執行時,使得該處理器執行如請求項1至6中之任一項所述之照明混光計算方法的步驟。 A computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the lighting mix according to any one of claims 1 to 6 Light calculation method steps. 一種電腦可讀儲存介質,儲存有電腦程式,該電腦程式被處理器執行時,使得該處理器執行如請求項1至6中之任一項所述之照明混光計算方法的步驟。 A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the lighting mixing calculation method according to any one of claims 1 to 6.
TW108119481A 2019-06-05 2019-06-05 Illumination mixing calculation method, device, computer equipment and storage medium TWI700935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108119481A TWI700935B (en) 2019-06-05 2019-06-05 Illumination mixing calculation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108119481A TWI700935B (en) 2019-06-05 2019-06-05 Illumination mixing calculation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
TWI700935B true TWI700935B (en) 2020-08-01
TW202046714A TW202046714A (en) 2020-12-16

Family

ID=73003004

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108119481A TWI700935B (en) 2019-06-05 2019-06-05 Illumination mixing calculation method, device, computer equipment and storage medium

Country Status (1)

Country Link
TW (1) TWI700935B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070013057A1 (en) * 2003-05-05 2007-01-18 Joseph Mazzochette Multicolor LED assembly with improved color mixing
EP1947866B1 (en) * 2006-12-27 2010-09-08 Barco NV Methods and systems for imaging by spectrum sequentially display images
US20110006707A1 (en) * 2008-03-06 2011-01-13 Koninklijke Philips Electronics N.V. Device for generating light with a variable color
EP1356424B1 (en) * 2000-12-18 2015-07-29 Samsung Display Co., Ltd. Spectrally matched print proofer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1356424B1 (en) * 2000-12-18 2015-07-29 Samsung Display Co., Ltd. Spectrally matched print proofer
US20070013057A1 (en) * 2003-05-05 2007-01-18 Joseph Mazzochette Multicolor LED assembly with improved color mixing
EP1947866B1 (en) * 2006-12-27 2010-09-08 Barco NV Methods and systems for imaging by spectrum sequentially display images
US20110006707A1 (en) * 2008-03-06 2011-01-13 Koninklijke Philips Electronics N.V. Device for generating light with a variable color

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Albert T. L. Lee , Huanting Chen, Siew-Chong Tan and S. Y. (Ron) Hui," Precise Dimming and Color Control of LED Systems Based on Color Mixing", The IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 31, NO. 1, JANUARY 2016 *
Albert T. L. Lee , Huanting Chen, Siew-Chong Tan and S. Y. (Ron) Hui," Precise Dimming and Color Control of LED Systems Based on Color Mixing", The IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 31, NO. 1, JANUARY 2016。

Also Published As

Publication number Publication date
TW202046714A (en) 2020-12-16

Similar Documents

Publication Publication Date Title
WO2020155247A1 (en) Mixed illumination light calculation method and device, computer device and storage medium
US10874002B2 (en) Method and apparatus for computing illumination mixed lights, computer device and storage medium
CN110677955B (en) Method and system for determining maximum brightness of RGB LED light source matching target chromaticity
CN103761948B (en) The display methods and device of white balance debugging method and apparatus and display
CN107085858B (en) A kind of bearing calibration of blend color
US10716183B2 (en) Method for wide-range CCT tuning that follows the black body line using two independently controlled current channels and three CCTs
WO2022052184A1 (en) Method and system for controlling color temperature of stage lamp, and computer device and storage medium
CN110677954B (en) Precise dimming method and system for super-three-color LED light source
CN111315071B (en) LED intelligent control method and system
CN110673487A (en) Spectrum optimization method and system for relieving time difference of flight reaction of four-color LED light source
TWI700935B (en) Illumination mixing calculation method, device, computer equipment and storage medium
US9253855B2 (en) Tunable lighting system
US9961739B2 (en) Controller for a lamp
CN110708797B (en) Accurate dimming method and system for three-color LED light source
US9596731B1 (en) Method for modulating color temperature in visible band
CN111458967B (en) Color and color temperature calibration method, calibration device and projection display equipment
KR20220027290A (en) Control design for perceptually uniform color adjustment
JP4565099B2 (en) CONVERTING METHOD, CONVERTING DEVICE AND LIGHTING CONTROL DEVICE USING THE SAME
Goudjil et al. An interior-points algorithm for color and CCT control of multichannel LED lighting system using a Smart 18-Channel Spectral Sensor
US11523482B2 (en) Control design for perceptually uniform color tuning
CN110999539B (en) Wide range CCT adjustment method using two independently controlled current channels and three CCT tracking blackbody lines
CN116546706B (en) Dimming method and device, lighting equipment and computer-readable storage medium
WO2018198062A1 (en) A method of controlling lighting systems, corresponding system and computer program product
CN116567893B (en) Dimming method and device, lighting equipment and computer-readable storage medium
CN110602837B (en) Method and system for determining maximum brightness of super-three-color LED light source matched target chromaticity