Method and device for generating illumination simulation measurement index, equipment and storage medium
By generating lighting simulation metrics, the calculation point set and spectral melanin ratio of the three-dimensional lighting simulation scene are obtained, and the impact of light on the human circadian rhythm is intuitively represented using real-time visualization charts. This solves the problem of the inability to intuitively represent the impact of light in existing technologies and improves the accuracy and efficiency of lighting design.
Patent Information
- Application Number
- CN202510752765.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-09-16
AI Technical Summary
Existing technologies cannot quickly and intuitively indicate the extent to which light affects the human circadian rhythm, which affects the accuracy and efficiency of lighting design.
By generating lighting simulation metrics, a calculation point set of a three-dimensional lighting simulation scene is obtained, multiple spectra and their melanin ratios are determined, and visual display is performed using real-time isoline maps, real-time pseudo-color maps, or real-time point value maps to intuitively represent the impact of light on the human circadian rhythm.
It enables a quick and intuitive representation of the impact of light on the human circadian rhythm, improving the accuracy and efficiency of lighting design.
Smart Images

Figure CN120654405A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of lighting design, and in particular to technical fields such as lighting scene evaluation and three-dimensional simulation. Background Art
[0002] While lighting brings light, it also impacts our lives. For example, overly bright lights can be harmful to our health. However, long-term exposure to unbalanced and unhealthy lighting can be very detrimental to our health, especially our visual well-being, which is most directly affected.
[0003] Therefore, while lighting tools meet the needs of good lighting, they should also take into account the impact of non-visual effects to avoid interfering with the body's normal circadian rhythm. However, existing technologies often cannot quickly and intuitively indicate the extent of the impact of light on the human circadian rhythm. Summary of the Invention
[0004] The present disclosure provides a method, apparatus, device and storage medium for generating lighting simulation metrics.
[0005] According to one aspect of the present disclosure, a method for generating a lighting simulation metric is provided, comprising:
[0006] Acquire a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene;
[0007] determining a plurality of spectra corresponding to the three-dimensional lighting simulation scene and a retinoid ratio corresponding to each of the plurality of spectra;
[0008] Based on multiple spectra and the melanin ratio corresponding to each spectrum, a metric corresponding to a calculation point set of the three-dimensional lighting simulation scene is calculated; wherein the metric is visualized in real time through at least one of a real-time isoline map, a real-time pseudo-color map, and a real-time point value map.
[0009] According to another aspect of the present disclosure, there is provided an apparatus for generating a lighting simulation metric, comprising:
[0010] An acquisition module, configured to acquire a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene;
[0011] a determination module, configured to determine a plurality of spectra corresponding to the three-dimensional lighting simulation scene, and a retinoid ratio corresponding to each of the plurality of spectra;
[0012] A calculation module is used to calculate the metric corresponding to the calculation point set of the three-dimensional lighting simulation scene based on multiple spectra and the retinoid ratio corresponding to each spectrum; wherein the metric is visualized in real time through at least one of a real-time isoline map, a real-time pseudo-color map, and a real-time point value map.
[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the method of any embodiment of the present disclosure.
[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method according to any embodiment of the present disclosure.
[0018] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the method according to any embodiment of the present disclosure when executed by a processor.
[0019] The present disclosure can quickly and intuitively express the degree of influence of light on the human circadian rhythm in a calculated point set through measurement indicators and real-time isoline maps, real-time pseudo-color maps or real-time point value maps generated in real time for visually displaying the measurement indicators.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.
[0022] Figure 1 This is a schematic diagram of an application scenario of the method for generating lighting simulation metrics proposed in an embodiment of the present disclosure;
[0023] Figure 2 is a flowchart of a method for generating lighting simulation metrics according to an embodiment of the present disclosure;
[0024] Figure 3 is a schematic block diagram of a method for generating lighting simulation metrics according to an embodiment of the present disclosure;
[0025] Figure 4A is a schematic diagram for describing a calculation point set M1 according to an embodiment of the present disclosure;
[0026] Figure 4Bis a schematic diagram for describing the calculation point set M2 according to an embodiment of the present disclosure;
[0027] Figure 5 is a structural diagram of an apparatus 500 for generating lighting simulation metrics according to an embodiment of the present disclosure;
[0028] Figure 6 A schematic structural diagram of an apparatus 600 for generating lighting simulation metrics according to an embodiment of the present disclosure;
[0029] Figure 7 A schematic block diagram of an example electronic device 700 is shown, which may be used to implement embodiments of the present disclosure. DETAILED DESCRIPTION
[0030] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0031] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C. The terms "first" and "second" in this article refer to multiple similar technical terms and distinguish them, and do not mean to limit the order or to limit to only two. For example, the first feature and the second feature refer to two categories / two features. The first feature can be one or more, and the second feature can also be one or more.
[0032] In addition, numerous specific details are provided in the following detailed description to better illustrate the present disclosure. Those skilled in the art will appreciate that the present disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main points of the present disclosure.
[0033] Before introducing the technical solutions of the embodiments of the present disclosure, the following technical terms that may be used in the present disclosure are further explained:
[0034] (1) Effective Melanopic Lux (EML): EML is a light metric used to quantify the non-visual biological effects of light sources on the human body (such as circadian rhythm regulation). EML converts the spectral energy distribution of different light sources into equivalent melanopsin stimulation values through spectral weighting calculation, thereby more scientifically evaluating the impact of light environment on physiological health.
[0035] (2) Melanopic Equivalent Daylight Illuminance (D65): M-EDI is an indicator used to quantify the non-visual biological effects of the standard light source D65 on the human body (such as circadian rhythm regulation). It indicates how many lux of daylight the standard light source D65 is equivalent to in stimulating melanin.
[0036] (3) Melanin ratio (M / P Ratio): The melanin ratio is the ratio of EML to photopic illuminance. It is an indicator used to measure the relative intensity of the non-visual effect (such as circadian rhythm regulation) and visual effect (photopic brightness) of a light source on the human body. The melanin ratio can be used to quickly estimate EML.
[0037] (4) Color temperature (CCT): Color temperature is a physical quantity used to describe the color characteristics of a light source. When the color of light emitted by a light source is the same as the color of light radiated by an absolute black body (ideal radiator) at a certain temperature, the temperature of the black body is the color temperature of the light source.
[0038] (5) Planck's law: Planck's law describes the quantitative relationship between the energy density and frequency (or wavelength) of electromagnetic radiation emitted by a blackbody at any temperature. The relationship between color temperature and spectral distribution is precisely described by Planck's law. When the color temperature T (unit: Kelvin, K) is given, the spectral radiation intensity of the blackbody radiation can be calculated using Planck's law.
[0039] (6) Visual illuminance: A physical quantity that represents the amount of luminous flux per unit area of a surface when light strikes it. It reflects the intensity of light striking a surface. Visual illuminance is indirectly related to the brightness of a surface as perceived by the human eye. It is the objective intensity of light, not the direct visual brightness.
[0040] (7) WELL Standard: used to describe and measure the impact of light in the building environment on the health of occupants.
[0041] Traditional lighting primarily focuses on providing sufficient light to meet basic visual needs and aesthetic requirements. This type of lighting design often overlooks the impact of light on human physiological and psychological health. Advances in technology and in-depth research into human physiology have given rise to the concept of healthy lighting. Healthy lighting fully considers the impact of light on the human circadian rhythm—specifically, its influence on sleep cycles, mood, productivity, and overall health.
[0042] However, current existing technologies often cannot intuitively indicate the extent of the impact of light on the human circadian rhythm.
[0043] To this end, in order to at least partially solve one or more of the above-mentioned problems and other potential problems, the embodiments of the present disclosure propose a method for generating lighting simulation metric indicators, which can quickly calculate the metric indicators of any set of calculation points in a three-dimensional lighting simulation scene, wherein the metric indicators are used to represent the degree of influence of light on the human circadian rhythm.
[0044] Figure 1 This is a schematic diagram of an application scenario of the method for generating a lighting simulation metric proposed in an embodiment of the present disclosure, wherein the metric is used to measure the impact of light on the human circadian rhythm. Figure 1 The application scenario of the method for generating lighting simulation metrics proposed in the embodiment of the present disclosure can be used in a system including a terminal device 110, a network 120 and a server 130.
[0045] In one example, terminal device 110 can be used to obtain a three-dimensional lighting simulation scene and send the three-dimensional lighting simulation scene and a calculation point set selected by a user from the three-dimensional lighting simulation scene to server 130 via network 120. Server 130 can first determine multiple spectra corresponding to the three-dimensional lighting simulation scene and the retinol ratio corresponding to each of the multiple spectra. Then, based on the multiple spectra and the retinol ratio corresponding to each of the spectra, server 130 can determine in real time a metric corresponding to the calculation point set, as well as a real-time isoline map, real-time pseudo-color map, or real-time point value map that can visually display the metric. Finally, server 130 can feed back the metric to terminal device 110, and at least one of the real-time isoline map, real-time pseudo-color map, and real-time point value map can also be fed back to terminal device 110, so that the user can intuitively observe the extent of the impact of light in the calculation point set on the human circadian rhythm through terminal device 110.
[0046] The embodiments of the present disclosure can intuitively show the extent of the impact of light on the human circadian rhythm, greatly increasing the design efficiency of lighting designs that require healthy rhythms.
[0047] It should be noted that the application scenarios of the embodiments of the present disclosure do not limit the number of terminal devices 110. For example, the application scenarios may include one or more terminal devices 110. The terminal devices 110 include, but are not limited to, electronic devices such as mobile phones and computers. The server 130 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers.
[0048] Figure 2 1 is a flow chart of a method for generating lighting simulation metrics according to an embodiment of the present disclosure, comprising:
[0049] S210, obtaining a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene;
[0050] S220, determining multiple spectra corresponding to the three-dimensional lighting simulation scene, and a melanin ratio corresponding to each of the multiple spectra;
[0051] S230. Calculate a metric corresponding to a calculation point set of the three-dimensional lighting simulation scene based on multiple spectra and the melanin ratio corresponding to each spectrum; wherein the metric is visualized in real time through at least one of a real-time isoline map, a real-time pseudo-color map, and a real-time point value map.
[0052] The three-dimensional lighting simulation scene can be used to simulate the real lighting effect of the three-dimensional scene;
[0053] The calculation point set can be used to determine the specific location or area selected by the user where the real lighting effect needs to be simulated;
[0054] The real-time isoline map is generated in real time based on the measurement indicators, which can present the spatial distribution and change trend of the measurement indicators in real time;
[0055] The real-time pseudo-color image is a pseudo-color image generated in real time based on the measurement indicator, and can reflect the measurement indicator in real time and intuitively through color differences.
[0056] The real-time point value chart is a point value chart generated in real time based on the measurement indicators, which can present the specific values of the measurement indicators in real time.
[0057] The disclosed embodiments can not only dynamically and real-time present the precise numerical values of the measurement indicators, but can also intuitively display the measurement indicators through at least one visualization form such as a real-time contour map, a real-time pseudo-color map, a real-time point value map, etc., thereby intuitively indicating the degree of influence of light on the human body's circadian rhythm.
[0058] Exemplarily, this metric is used to quantify the degree of influence of the light generated in the calculation point set on the human circadian rhythm;
[0059] The metric includes multispectral melanopic equivalent lux illuminance (EML) and / or multispectral melanopic equivalent daylight (D65) illuminance (M-EDI).
[0060] The embodiments of the present disclosure can quickly and intuitively express the degree of influence of light on the human circadian rhythm through measurement indicators, greatly increasing the design efficiency of lighting designs that require healthy rhythms and improving the accuracy of lighting designs.
[0061] Figure 3 This is a schematic block diagram of a method for generating lighting simulation metrics according to an embodiment of the present disclosure. The method can be applied to a lighting simulation system.
[0062] See also Figure 3 The method for generating measurement indicators of a three-dimensional lighting simulation scene proposed in the embodiment of the present disclosure may at least include the following steps.
[0063] Step 1: Obtain a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene.
[0064] Exemplarily, the three-dimensional lighting simulation scene may include a virtual environment constructed by computer technology and used to simulate the lighting effects of a real scene.
[0065] The calculation point set is used to determine a specific position or area in a three-dimensional lighting scene where a real lighting effect needs to be simulated; wherein the calculation point set may include one or more calculation points.
[0066] In one example, the position of the calculation point set can be selected and determined by the user through the interactive interface of the lighting simulation system; the number of calculation points included in the calculation point set and the position of each calculation point can also be selected and determined by the user through the interactive interface of the lighting simulation system.
[0067] The position of the calculation point set and the position of each calculation point contained in the calculation point set can be used to accurately locate the specific position or area where the real lighting effect needs to be simulated.
[0068] Furthermore, the number of calculation points included in the calculation point set can be used to determine the accuracy of the measurement indicator; correspondingly, the number of calculation points included in the calculation point set can also be used to determine the computational complexity of the measurement indicator.
[0069] Generally speaking, the more calculation points a calculation point set contains, the higher the accuracy and calculation complexity of the metric corresponding to the calculation point set. Figure 4A and Figure 4BAs shown in the figure, when the calculation point set M1 contains 16 calculation points (i.e., the black dots in the figure) and the calculation point set M2 contains 32 calculation points, the accuracy of the metric corresponding to the calculation point set M1 is less than the accuracy of the metric corresponding to the calculation point set M2. Correspondingly, the computational complexity required for the metric corresponding to the calculation point set M1 is also less than the computational complexity corresponding to the calculation point set M2.
[0070] Of course, it should be noted that the above is only an exemplary description and is not intended to limit all possible situations for calculating the calculation point set. This is just not an exhaustive list.
[0071] Users can flexibly adjust the accuracy of measurement indicators by customizing the number of calculation points contained in the calculation point set; at the same time, users can also customize the position of the calculation point set and the position of each calculation point contained in the calculation point set to accurately locate the specific location or area where real lighting effects need to be simulated and measurement indicators need to be determined, further improving the accuracy of real lighting effect simulation and measurement indicators.
[0072] Step 2: Determine multiple spectra corresponding to the three-dimensional lighting simulation scene and the retinoid ratio corresponding to each of the multiple spectra.
[0073] Normally, existing technologies can use the WELL standard to determine the retinol ratio. Specifically, the WELL standard specifies the retinol corresponding to different light sources at different color temperatures. However, the retinol ratio provided by the WELL standard only roughly divides the light sources into several categories and provides a "rough" conversion value. However, even for the same type of light source and similar color temperature, if the corresponding spectra are different, the retinol ratio corresponding to the light source should also be different. For example, for two similar light sources with the same color temperature (such as a nominally 5000K LED), if the two light sources belong to different brands or the manufacturing processes of the two light sources are different, the spectra corresponding to the two light sources will be quite different, and thus, the retinol ratios corresponding to the two light sources will also be quite different.
[0074] If the above method is used to calculate the melanin ratio, the calculation accuracy of the measurement indicator will be reduced, which greatly limits the verification of the impact of light on the human circadian rhythm in this scenario.
[0075] Therefore, in order to calculate the melanin ratio with high precision, the embodiment of the present disclosure can specifically determine multiple spectra within a three-dimensional lighting simulation scene, and specifically determine the melanin ratio corresponding to each spectrum in the multiple spectra, thereby improving the calculation accuracy of the melanin ratio.
[0076] Specifically, determining the spectrum corresponding to the three-dimensional lighting simulation scene and the melanin ratio corresponding to the spectrum includes:
[0077] Obtaining a trigger instruction; wherein the trigger instruction is used to carry at least one of the spectrum, the values of each channel in the RGB channel, and the color temperature information;
[0078] According to the trigger instruction, a spectrum corresponding to the three-dimensional lighting simulation scene and a melanin ratio corresponding to the spectrum are determined.
[0079] Thus, based on the different contents carried by the trigger instruction, the embodiments of the present disclosure may provide at least three different methods for determining the spectrum corresponding to the three-dimensional lighting simulation scene and the retinoid ratio corresponding to the spectrum.
[0080] Method 1: Obtain a spectrum from the trigger command uploaded by the user and determine the retinoid ratio corresponding to the spectrum.
[0081] Step 2.1.1. The user can select the desired spectrum through the interactive interface of the lighting simulation system and upload the spectrum to the lighting simulation system through a trigger command.
[0082] Exemplarily, the spectrum may be customized by the user and uploaded to the lighting simulation system through a trigger instruction; or, the spectrum may be selected by the user from a standard light source spectrum database provided by the lighting simulation system and uploaded to the lighting simulation system through a trigger instruction.
[0083] In theory, the spectra of the same light source should be identical when the color temperature (CCT) is the same. However, in practice, differences in manufacturing processes, raw material ratios, or light-emitting mechanisms often result in distinct spectra for the same light source at the same color temperature. For example, when both manufacturers A and B use standard LEDs with a CCT of 4200K, they produce two different spectra.
[0084] Therefore, in order to improve the calculation accuracy of the measurement indicators, the embodiment of the present disclosure can pre-store the spectra of any type of light source at any color temperature from multiple manufacturers in the standard light source spectrum database, thereby achieving accurate definition of the spectra corresponding to different types of light sources.
[0085] Specifically, the standard light source spectrum database proposed in the embodiment of the present disclosure can be as shown in Table 2. Of course, it should be noted that the above is only an exemplary description, and Table 2 does not limit all possible situations of the standard light source spectrum database provided by the lighting scene simulation system, but it is not an exhaustive list here.
[0086] Manufacturer light source CCT(K) The corresponding spectrum Manufacturer A Ordinary LED <![CDATA[X1]]> <![CDATA[SA1]]> Manufacturer B Ordinary LED <![CDATA[X1]]> <![CDATA[SB1]]> Manufacturer A Ordinary LED <![CDATA[X2]]> <![CDATA[SA2]]> Manufacturer B Ordinary LED <![CDATA[X2]]> <![CDATA[SB2]]> Manufacturer A Full-spectrum LED <![CDATA[X1]]> <![CDATA[S ′ A1 ]]> Manufacturer B Full-spectrum LED <![CDATA[X1]]> <![CDATA[S ′ B1 ]]> Manufacturer A Full-spectrum LED <![CDATA[X2]]> <![CDATA[S ′ A2 ]]> Manufacturer B Full-spectrum LED <![CDATA[X2]]> <![CDATA[S′ B1 ]]>
[0087] Table 2 Standard light source spectrum database
[0088] By pre-calculating and storing a database of standard light source spectra, the disclosed embodiments enable users to quickly select spectra corresponding to any manufacturer, at any color temperature, and for any light source type, significantly improving the efficiency and flexibility of metric calculations. Alternatively, if a user uploads a custom spectrum via a trigger command, the disclosed embodiments can quickly respond, further improving the efficiency of metric calculations.
[0089] Step 2.1.2: The lighting simulation system calculates the melanin ratio corresponding to the received spectrum.
[0090] For example, in order to improve the calculation efficiency of the melanin ratio, the embodiment of the present disclosure can pre-calculate the melanin ratio corresponding to each spectrum in the standard light source spectrum database, and store the melanin ratio corresponding to each spectrum in the lighting simulation system, so that the lighting simulation system can enable the user to upload the spectrum to the lighting simulation system through a trigger instruction, and at the same time, determine the melanin ratio corresponding to the spectrum in real time, thereby reducing the time required to determine the melanin ratio and improving the calculation efficiency.
[0091] Alternatively, while the lighting simulation system determines a user-defined spectrum or a spectrum selected from a standard light source spectrum database through a trigger instruction, the embodiment of the present disclosure can also use a melanin ratio calculation formula to calculate the melanin ratio corresponding to the spectrum in real time. For example, the melanin ratio calculation formula is as follows:
[0092]
[0093] Where λ represents the wavelength. In the melanin ratio calculation formula, λ max and λ min Generally, the longest visible light wavelength (780nm) and the shortest visible light wavelength (380nm) can be taken respectively; S(λ) is the spectral power distribution of the light source, which is used to indicate the radiation power density of the light source; M(λ) is the spectral sensitivity function of melanin, which is used to indicate the response degree of melanin to light of different wavelengths; V(λ) is the spectral luminous efficiency function of photopic vision, which is used to indicate the sensitivity of the human eye to light of different wavelengths under photopic vision state.
[0094] That is, the lighting simulation system can enable the user to upload the spectrum to the lighting simulation system through a trigger instruction, and at the same time calculate the retinoid ratio corresponding to the spectrum in real time through the retinoid ratio formula.
[0095] Alternatively, when the spectrum is close to that corresponding to a standard light source (e.g., daylight), the lighting simulation system can directly determine that the retinol ratio corresponding to the spectrum is approximately constant. That is, while determining the user's desired spectrum through a trigger instruction, if the lighting simulation system determines that the spectrum is close to that corresponding to a standard light source (e.g., daylight), the retinol ratio corresponding to the spectrum can be determined in real time to be a constant, such as 1.0.
[0096] Of course, it should be noted that the above is only an exemplary description, and the above content does not limit all possible situations of the method for calculating the melanin ratio, but it is not intended to be exhaustive here.
[0097] Method 2: Obtain color temperature information from the trigger instruction uploaded by the user, and determine the spectrum and the melanin ratio corresponding to the spectrum based on the color temperature information.
[0098] Step 2.2.1 The user can determine the color temperature information through the interactive interface of the lighting simulation system and upload the color temperature information to the lighting simulation system through a trigger instruction.
[0099] The color temperature information refers to the color temperature used to describe the light source, and the unit of the color temperature is Kelvin, that is, K.
[0100] Step 2.2.2: The lighting simulation system can determine the spectrum and the melanin ratio corresponding to the spectrum through the standard color temperature spectrum and the received color temperature information.
[0101] The standard color temperature spectrum can be calculated according to the Planck formula. For example, the Planck formula is as follows:
[0102]
[0103] Where λ is the wavelength; T is the blackbody temperature, i.e., the color temperature; B(λ,T) is the spectral radiance at wavelength λ when the color temperature is T; h is the Planck constant, i.e., h = 6.262×10 ―34 J·S; C represents the speed of light, which is 3×10 8 m / s; K represents the Boltzmann constant, which is 1.381×10 ―23 J / K.
[0104] Exemplarily, the calculation process of the standard color temperature spectrum may at least include:
[0105] First, at any standard color temperature, the spectral radiance corresponding to each wavelength in the visible light wavelength range (i.e., light with a wavelength of 380nm to 780nm) is pre-calculated based on the Planck formula; then, based on the spectral radiance corresponding to each wavelength, the standard color temperature spectrum corresponding to the standard color temperature is determined.
[0106] Furthermore, the embodiment of the present disclosure can also traverse multiple standard color temperatures in a preset color temperature range according to a preset color temperature interval, and repeat the above calculation process of the standard color temperature spectrum for each standard color temperature, thereby determining multiple standard color temperature spectra, and constructing a complete Planck color temperature diagram based on the multiple standard color temperature spectra.
[0107] For example, if the preset color temperature interval is 100K and the preset color temperature range is between 1000K and 2500K, then the embodiment of the present disclosure can first use 100K as the interval, traverse the 241 standard color temperatures between 1000K and 2500K, and repeat the above standard color temperature spectrum calculation process for each standard color temperature, so as to determine the standard color temperature spectrum corresponding to each standard color temperature in the 241 standard color temperatures; then, based on the above 241 standard color temperature spectra, construct a complete Planck color temperature diagram.
[0108] Of course, it should be noted that the above is only an exemplary description, and the above does not limit all possible situations of standard color temperature and standard color temperature spectrum, but it is not an exhaustive list here.
[0109] Thus, when the lighting simulation system receives color temperature information through a trigger instruction, and the color temperature included in the color temperature information belongs to the standard color temperature, determining the spectrum and the melanin ratio corresponding to the spectrum through the standard color temperature spectrum and the received color temperature information may at least include:
[0110] First, a standard color temperature spectrum corresponding to the color temperature information is selected from a plurality of standard color temperature spectra. Then, the retinol ratio corresponding to the standard color temperature spectrum is retrieved from a database of retinol ratios of standard color temperature spectra pre-stored in the lighting simulation system. The database of retinol ratios of standard color temperature spectra includes the retinol ratio corresponding to each of the plurality of standard color temperature spectra.
[0111] For example, taking the preset color temperature interval as 100K, the preset color temperature range as between 1000K and 25000K, and the color temperature information as 1000K as an example, when the color temperature information is 1000K, the embodiment of the present disclosure can directly retrieve the standard color temperature spectrum corresponding to 1000K from the pre-stored standard color temperature spectrum as the spectrum required by the user, and directly query the melanin ratio corresponding to the spectrum when the color temperature is 1000K from the standard color temperature spectrum melanin ratio database.
[0112] Alternatively, when the lighting simulation system receives color temperature information via a trigger instruction, the disclosed embodiment may also determine the spectrum and the retinol ratio corresponding to the spectrum using the color temperature information and a pre-constructed Planck color temperature diagram. Specifically, the above-mentioned method for determining the spectrum and the retinol ratio corresponding to the spectrum includes at least:
[0113] First, the spectrum corresponding to the color temperature is derived through the pre-constructed Planck color temperature diagram; then, the retinol ratio corresponding to the spectrum is calculated in real time through the retinol ratio calculation formula.
[0114] The description of using the retinoid ratio calculation formula proposed in the embodiment of the present disclosure to calculate the retinoid ratio corresponding to the spectrum in real time can be found in the corresponding description in the above embodiment and will not be repeated here.
[0115] For example, taking the color temperature information of 1210K as an example, the lighting simulation system can deduce the spectrum corresponding to 1210K through the pre-built Planck color temperature diagram, and calculate the retinoid ratio corresponding to the spectrum in real time through the retinoid ratio calculation formula.
[0116] In addition, in an embodiment of the present disclosure, if the spectrum is customized by the user and the spectrum and the color temperature information of the spectrum are uploaded to the lighting simulation system through a trigger instruction, then when the color temperature contained in the color temperature information belongs to the standard color temperature, the embodiment of the present disclosure can directly query the retinoid ratio corresponding to the spectrum from the standard color temperature spectrum retinoid ratio database based on the color temperature information; or, when the color temperature contained in the color temperature information does not belong to the standard color temperature, the retinoid ratio corresponding to the spectrum can be calculated according to the retinoid ratio calculation formula.
[0117] The disclosed embodiments can achieve high efficiency in determining the spectrum and melanin ratio through a pre-stored database of standard color temperature spectra and standard color temperature spectrum melanin ratios, ensuring rapid response in standard color temperature scenarios, and accurate determination of the spectrum and melanin ratio in non-standard color temperatures, thereby improving the flexibility and accuracy of the simulation.
[0118] Method 3: Obtain the values of each channel in the RGB channel from the trigger instruction uploaded by the user, and determine the spectrum and the melanin ratio corresponding to the spectrum based on the values of each channel in the RGB channel.
[0119] Step 2.3.1. The user can determine the value of each channel in the RGB channel through the interactive interface of the lighting simulation system, and upload the value of each channel in the RGB channel to the lighting simulation system through a trigger instruction.
[0120] For example, when the RGB value input by the user through the interactive interface of the lighting simulation system is (255, 127, 60), the embodiment of the present disclosure can determine the value of each channel in the RGB channel input by the user, that is, the value of the R channel is 250, the value of the G channel is 127, and the value of the B channel is 60.
[0121] Step 2.3.2: The lighting simulation system determines the spectrum and the melanin ratio corresponding to the spectrum by taking the values of each channel in the received RGB channels.
[0122] In some embodiments, when the trigger instruction is used to carry the values of each of the RGB channels, determining the spectrum corresponding to the three-dimensional lighting simulation scene and the melanin ratio corresponding to the spectrum according to the trigger instruction includes:
[0123] According to the values of each channel in the RGB channel, a spectrum corresponding to the three-dimensional lighting simulation scene is determined; and using the values of each channel in the RGB channel, the first eigenvalue and the second eigenvalue corresponding to each channel are searched from the eigenvalue database respectively; wherein, for any channel in the RGB channel, the eigenvalue database includes the first eigenvalue and the second eigenvalue corresponding to any value of the channel;
[0124] The first eigenvalue and the second eigenvalue corresponding to each channel in the RGB channel are used to calculate the melanin ratio corresponding to the spectrum.
[0125] In this way, the embodiment of the present disclosure can first determine the spectrum corresponding to the three-dimensional lighting simulation scene based on the values of each channel in the RGB channels carried by the trigger instruction.
[0126] Specifically, based on the values of each channel in the RGB channel, the spectrum corresponding to the three-dimensional lighting simulation scene may include at least:
[0127] First, based on the values of each channel in the RGB channel, the channel spectrum corresponding to each channel is determined; then, the channel spectrum corresponding to each channel is weighted superimposed to obtain the spectrum required by the user.
[0128] For example, when the RGB value carried by the trigger instruction is (255, 127, 60), that is, the value of the R channel in the RGB channel is 250, the value of the G channel is 127, and the value of the B channel is 60, the embodiment of the present disclosure can first calculate the channel spectrum corresponding to each channel in the RGB channel, that is, the channel spectrum corresponding to the R channel, the channel spectrum corresponding to the G channel, and the channel spectrum corresponding to the B channel; then, the channel spectra corresponding to each channel are weightedly superimposed, that is, the channel spectrum corresponding to the R channel, the channel spectrum corresponding to the G channel, and the channel spectrum corresponding to the B channel are weightedly superimposed, so as to calculate the spectrum required by the user.
[0129] Furthermore, after determining the spectrum based on the values of each channel in the RGB channels, the embodiment of the present disclosure also needs to determine the melanin ratio corresponding to the spectrum.
[0130] Typically, existing technologies often require searching for the retinol ratio corresponding to the complete RGB value from a pre-calculated and stored database of retinol ratios based on the complete RGB value, thereby determining the retinol ratio corresponding to the spectrum.
[0131] This requires that the melanin ratio corresponding to each RGB value needs to be calculated in advance and stored in a melanin ratio database in advance.
[0132] However, since the RGB value can be determined based on the values of each channel in the RGB channel, and each channel has 256 possible values, that is to say, nearly 16 million melanin ratios need to be calculated and stored, which not only increases the computational complexity of the lighting simulation system, but also causes a storage burden on the lighting simulation system memory.
[0133] Therefore, in order to solve the above problems, the embodiment of the present disclosure no longer determines the melanin ratio based on the complete RGB value, but independently processes the values of each channel in the RGB channel and determines the melanin ratio corresponding to the RGB value based on the processing results of each channel.
[0134] For example, the melanin ratio corresponding to the spectrum based on the values of each channel in the RGB channel proposed in the embodiment of the present disclosure may include at least the following:
[0135] In the first step, for each channel in the RGB channel, the first eigenvalue and the second eigenvalue corresponding to each channel are searched from the pre-calculated and stored eigenvalue database.
[0136] The first eigenvalue is total_melanopic, which can be used to describe the total amount of stimulation of melanin by the light source; the second eigenvalue is total_photopic, which can be used to describe the total amount of stimulation of the light source on the human eye's photopic vision and feedback the brightness perceived by the human eye.
[0137] For example, taking the value of the R channel as 255, the value of the G channel as 127, and the value of the B channel as 60, the first eigenvalue corresponding to the R channel is total_melanopic(R,255), and the second eigenvalue is total_photopicc(R,255); the first eigenvalue corresponding to the G channel is total_melanopic(G,127), and the second eigenvalue is total_photopicc(G,127); and, the first eigenvalue corresponding to the B channel is total_melanopic(B,60), and the second eigenvalue is total_photopicc(B,60).
[0138] In the second step, the melanin ratio corresponding to the spectrum is calculated based on the first eigenvalue and the second eigenvalue corresponding to each channel.
[0139] Specifically, the melanin ratio corresponding to the spectrum can be calculated using the following formula:
[0140]
[0141] Where R′ represents the value of the R channel in the RGB channel, G′ represents the value of the G channel in the RGB channel; B′ represents the value of the B channel in the RGB channel; l represents the melanin ratio correction factor, which is usually 1.218.
[0142] Since each channel in the RGB channel has 256 values, and each value of each channel corresponds to only 2 calculation results, namely the first eigenvalue and the second eigenvalue, the embodiment of the present disclosure only needs to pre-calculate and store (256+256+256)×2 values, that is, 1536 values.
[0143] Compared to the nearly 16 million values required by existing techniques, the amount of data required for calculation in this embodiment is significantly reduced. In practical applications, this embodiment can quickly retrieve and combine these 1536 values to efficiently determine the retinoid ratio corresponding to any RGB value, thereby significantly reducing storage space and increasing computational efficiency while ensuring computational accuracy.
[0144] It should be noted that the three sets of steps described above—Steps 2.1.1-2.1.2, Steps 2.2.1-2.2.2, and Steps 2.3.1-2.3.2—represent three methods for determining a spectrum and the corresponding retinoid ratio. There is no specific order in which to prioritize the steps; at least one of the three sets can be performed, or at least two of the three sets can be performed simultaneously.
[0145] Step 3: Based on the multiple spectra and the melanin ratio corresponding to each spectrum, calculate the measurement indicators corresponding to the calculation point set of the three-dimensional lighting simulation scene, and generate a real-time isoline map, real-time pseudo-color map, or real-time point value map for real-time visualization of the measurement indicators.
[0146] During the lighting design phase, existing technologies currently do not have a method to conveniently calculate metrics, and they often need to be calculated manually, that is, multiple spectra need to be entered into a calculation toolbox in sequence to obtain the metrics.
[0147] However, if the above method is used to calculate the metric, it will not only reduce the computational efficiency and accuracy, but also increase the workload in the lighting design stage, reduce the accuracy and efficiency of the lighting design, and greatly limit the accuracy of the assessment of the impact of light on the human circadian rhythm in lighting scenes.
[0148] To address the aforementioned issues, embodiments of the present disclosure propose a method for calculating a metric. Furthermore, because a three-dimensional lighting simulation scene often contains multiple spectra, and the metric corresponding to each spectrum is determined based on the retinol ratio and visual illuminance corresponding to that spectrum, the method for calculating the metric proposed in embodiments of the present disclosure may include determining the metric corresponding to a set of calculation points based on the multiple spectra and the retinol ratio corresponding to each spectrum.
[0149] The measurement index may at least include multi-spectral EML.
[0150] Specifically, when the metric includes a multispectral EML, the metric corresponding to the calculation point set of the three-dimensional lighting simulation scene is calculated based on the multiple spectra and the retinoid ratio corresponding to each spectrum, including:
[0151] Get the visual illumination type;
[0152] For any spectrum, calculate the single-spectrum EML based on the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, and the visual illumination type;
[0153] Multiple single-spectrum EMLs are superimposed to obtain a multi-spectral EML corresponding to the calculation point set of the three-dimensional lighting simulation scene.
[0154] The light source set corresponding to the spectrum may include a set of various light sources associated with the spectrum.
[0155] Visual illuminance can represent the luminous flux density that directly illuminates the sampling point; or the luminous flux density that indirectly reaches the sampling point after being reflected, scattered, or refracted by the surface of objects in the scene.
[0156] The visual illuminance type may include at least right-angle visual illuminance, horizontal visual illuminance or vertical visual illuminance.
[0157] Exemplarily, when the visual illuminance type is right-angle visual illuminance, the multispectral EML corresponding to the calculation point set is the multispectral EML under right-angle visual illuminance; when the visual illuminance type is horizontal visual illuminance, the multispectral EML corresponding to the calculation point set is the multispectral EML under horizontal visual illuminance; or, when the visual illuminance type is vertical visual illuminance, the multispectral EML corresponding to the calculation point set is the multispectral EML under vertical visual illuminance.
[0158] Of course, it should be noted that the above description is merely illustrative and does not limit all possible visual illuminance types. This is not intended to be exhaustive. For example, the visual illuminance type may include illuminance at any angle. Accordingly, when the visual illuminance type is illuminance at any angle, the multispectral EML calculated based on the visual illuminance type is the multispectral EML at that angle.
[0159] Typically, for a certain spectrum of a 3D lighting simulation scene, existing technologies often require calculating the product of visual illuminance and melanin ratio to determine the single spectrum EML corresponding to the spectrum. The specific process is as follows:
[0160] First, a visual illuminance simulation calculation is performed on the spectrum to determine the visual illuminance corresponding to the spectrum; then, the product of the melanin ratio corresponding to the spectrum and the visual illuminance is determined, and the product is determined as the single spectrum EML.
[0161] In this way, if a multispectral EML is calculated for multiple spectra in a three-dimensional lighting simulation scene, the traditional method requires first calculating multiple single-spectrum EMLs one by one, then superimposing the multiple single-spectrum EMLs to finally determine the multispectral EML.
[0162] However, in practical applications, it is often difficult to separate the visual illuminance corresponding to each single spectrum from the mixed illumination corresponding to multiple spectra, resulting in the inability to accurately extract each single spectrum EML.
[0163] Therefore, to solve the above problems, the embodiment of the present disclosure introduces the melanin ratio as a weight factor in the traditional illuminance calculation model. By constructing a joint calculation method of "luminous flux density × melanin ratio", it realizes the calculation upgrade from traditional "visual illuminance" to "single spectrum EML", avoiding the complex separation process of monochromatic light visual illuminance in multi-spectral scenes.
[0164] Specifically, for any spectrum, the single-spectrum EML is calculated based on the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, and the visual illumination type, including:
[0165] Determining scene information of a three-dimensional lighting simulation scene and characteristic information of each light source in a light source set; wherein the scene information includes geometric information and material information of objects in the three-dimensional lighting simulation scene; the characteristic information of the light source includes at least the position, direction, luminous flux, and light distribution data of the light source;
[0166] The single spectrum EML of the calculation point set is determined based on the scene information, the characteristic information of each light source, the visual illumination type, and the melanin ratio corresponding to the spectrum.
[0167] The object geometry information is used to describe the geometry of the object in the scene and define the structure of the object in space. Furthermore, the object geometry information may include at least the object position, size, shape or surface division.
[0168] Object material information is used to describe the optical properties of an object's surface and determine how light interacts with it. The surface optical properties of an object can include at least diffuse reflection, specular reflection, transmission, refraction, and absorption.
[0169] Additionally, the metric may also include multispectral M-EDI.
[0170] Thus, in the embodiment of the present disclosure, when the metric includes a multispectral M-EDI, the metric corresponding to the calculation point set of the three-dimensional lighting simulation scene is calculated based on multiple spectra and the retinoid ratio corresponding to each spectrum, including:
[0171] Calculating the product of the multispectral EML and a preset parameter, and determining the product as the multispectral M-EDI; and / or,
[0172] Obtain the visual illumination type; and for any spectrum, determine the single-spectrum M-EDI based on the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, the visual illumination type, scene information of the three-dimensional lighting simulation scene, and the characteristic information of each light source in the light source set; and superimpose multiple single-spectrum M-EDIs to obtain a multispectral M-EDI.
[0173] Thus, the embodiment of the present disclosure may calculate the multi-spectral M-EDI in the following two ways:
[0174] Method 1: Calculate the multispectral M-EDI corresponding to the calculation point set according to the multispectral M-EDI calculation formula. The multispectral M-EDI calculation formula is as follows:
[0175] Multispectral M-EDI = Preset Parameters Multispectral EML
[0176] Here, the preset parameter is usually 0.9063.
[0177] Method 2: Calculate the single-spectrum M-EDI corresponding to each spectrum separately, and superimpose multiple single-spectrum M-EDIs to obtain the multi-spectral M-EDI.
[0178] If the single-spectrum M-EDI corresponding to each spectrum is calculated one by one, and then multiple single-spectrum M-EDIs are superimposed to finally determine the multi-spectral M-EDI, it will be difficult to separate the visual illuminance corresponding to each monochromatic spectrum from the mixed illumination corresponding to the multi-spectrum, resulting in the inability to accurately extract the M-EDI of each single spectrum.
[0179] Therefore, when calculating the single-spectrum M-EDI corresponding to a certain spectrum, the product of the melanin ratio corresponding to the spectrum and the preset parameters can also be introduced as a weighting factor. By constructing a joint calculation method of "luminous flux density × melanin ratio × preset parameters", the calculation upgrade from traditional "visual illuminance" to "single-spectrum M-EDI" is achieved, avoiding the complex separation process of monochromatic light visual illuminance in multi-spectral scenes.
[0180] Step 4: Generate a simulation report corresponding to the three-dimensional lighting simulation scene.
[0181] In order to achieve real-time dynamic display of measurement indicators using real-time isoline maps, real-time pseudo-color maps or real-time point value maps, the embodiment of the present disclosure adopts a method of reducing calculation accuracy and balancing computing efficiency and real-time requirements when calculating the measurement indicators required for the above-mentioned graphics rendering, thereby ensuring the smoothness of real-time updates of the graphical interface.
[0182] However, in order to meet the user's demand for high-precision data, the embodiment of the present disclosure also retains the high-precision calculation path.
[0183] Thus, the embodiment of the present disclosure further includes: generating a simulation report corresponding to the three-dimensional lighting simulation scene; wherein,
[0184] The simulation report includes at least one of an effect map, a high-precision contour map, a high-precision pseudo-color map, and a high-precision point value map corresponding to a calculation point set of the three-dimensional lighting simulation scene;
[0185] The high-precision contour map, high-precision pseudo-color map and high-precision point value map are used to visualize the measurement indicators.
[0186] Among them, the accuracy of the high-precision contour map is greater than that of the real-time contour map;
[0187] The accuracy of the high-precision pseudo-color image is greater than that of the real-time pseudo-color image;
[0188] The accuracy of the high-precision point value chart is greater than that of the real-time point value chart.
[0189] For example, the lighting simulation system can also generate high-precision metrics and, based on these high-precision metrics, generate professional simulation reports, thereby achieving two-way compatibility between visualization efficiency and data accuracy, that is, real-time graphics support dynamic display with fast low-precision calculations, while high-precision results provide in-depth analysis basis in the form of offline reports, comprehensively covering user needs in different scenarios.
[0190] The embodiment of the present disclosure also provides a device 500 for generating a lighting simulation metric. Figure 5 is a structural diagram of an apparatus 500 for generating lighting simulation metrics according to an embodiment of the present disclosure, comprising:
[0191] An acquisition module 510 is configured to acquire a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene;
[0192] A determination module 520 is configured to determine a plurality of spectra corresponding to the three-dimensional lighting simulation scene and a melanin ratio corresponding to each of the plurality of spectra;
[0193] A calculation module 530 is configured to calculate a metric corresponding to a set of calculation points in a three-dimensional lighting simulation scene based on multiple spectra and the melanin ratio corresponding to each spectrum; wherein the metric is visualized in real time via at least one of a real-time isoline map, a real-time pseudo-color map, and a real-time point value map.
[0194] Figure 6 A structural diagram of an apparatus 600 for generating lighting simulation metrics according to an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, in some embodiments, the apparatus 600 for generating lighting simulation metrics further includes a generating module 640; wherein,
[0195] The generating module 640 is used to generate a simulation report corresponding to the three-dimensional lighting simulation scene; wherein,
[0196] The simulation report includes at least one of an effect map, a high-precision contour map, a high-precision pseudo-color map, and a high-precision point value map corresponding to the calculation point set of the three-dimensional lighting simulation scene;
[0197] High-precision contour maps, high-precision false color maps, and high-precision point value maps are used to visualize measurement indicators.
[0198] In some embodiments, the accuracy of the high-precision contour map is greater than that of the real-time contour map;
[0199] The accuracy of the high-precision pseudo-color image is greater than that of the real-time pseudo-color image;
[0200] The accuracy of the high-precision point value chart is greater than that of the real-time point value chart.
[0201] In some implementations, the determining module 520 is configured to:
[0202] Obtain a trigger instruction; wherein the trigger instruction is used to carry at least one of the spectrum, the values of each channel in the RGB channel, and the color temperature information;
[0203] According to the trigger instruction, the spectrum corresponding to the three-dimensional lighting simulation scene and the retinoid ratio corresponding to the spectrum are determined.
[0204] In some implementations, when the trigger instruction is used to carry the values of each channel in the RGB channel, the determination module 520 is configured to:
[0205] According to the values of each channel in the RGB channel, a spectrum corresponding to the three-dimensional lighting simulation scene is determined; and using the values of each channel in the RGB channel, the first eigenvalue and the second eigenvalue corresponding to each channel are searched from the eigenvalue database respectively; wherein, for any channel in the RGB channel, the eigenvalue database includes the first eigenvalue and the second eigenvalue corresponding to any value of the channel;
[0206] The first eigenvalue and the second eigenvalue corresponding to each channel in the RGB channel are used to calculate the melanin ratio corresponding to the spectrum.
[0207] In some embodiments, the metric is used to quantify the degree to which the light generated within the calculation point set affects the human circadian rhythm;
[0208] Metrics include multispectral EML and / or multispectral M-EDI.
[0209] In some embodiments, when the metric includes multispectral EML, the calculation module 530 is configured to:
[0210] Get the visual illumination type;
[0211] For any spectrum, calculate the single spectrum EML based on the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, and the visual illumination type;
[0212] Multiple single-spectrum EMLs are superimposed to obtain a multi-spectral EML corresponding to the calculation point set of the three-dimensional lighting simulation scene.
[0213] In some embodiments, for any spectrum, the calculation module 530 is configured to:
[0214] Determining scene information of a three-dimensional lighting simulation scene and characteristic information of each light source in a light source set; wherein the scene information includes geometric information and material information of objects in the three-dimensional lighting simulation scene; and the characteristic information of the light source includes at least the position, direction, luminous flux, and light distribution data of the light source;
[0215] The single spectrum EML of the calculation point set is determined based on the scene information, the characteristic information of each light source, the visual illumination type, and the melanin ratio corresponding to the spectrum.
[0216] In some embodiments, when the metric includes multi-spectral M-EDI, the calculation module 530 is configured to:
[0217] Calculating the product of the multispectral EML and a preset parameter, and determining the product as the multispectral M-EDI; and / or,
[0218] Obtain the visual illumination type; and for any spectrum, determine the single-spectrum M-EDI based on the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, the visual illumination type, scene information of the three-dimensional lighting simulation scene, and the characteristic information of each light source in the light source set; and superimpose multiple single-spectrum M-EDIs to obtain a multispectral M-EDI.
[0219] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, please refer to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0220] In the technical solutions disclosed herein, the acquisition, storage, and application of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0221] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0222] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0223] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the device 700 can also be stored in the RAM 703. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0224] Various components in device 700 are connected to I / O interface 705, including an input unit 706, such as a keyboard, mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, optical disk, etc.; and a communication unit 709, such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows device 700 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0225] The computing unit 701 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as the method for generating lighting simulation metrics. For example, in some embodiments, the method for generating lighting simulation metrics can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for generating lighting simulation metrics described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the method for generating lighting simulation metrics by any other suitable means (e.g., via firmware).
[0226] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system comprising at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0227] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0228] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0229] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0230] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0231] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0232] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0233] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A method for generating lighting simulation metrics, comprising: Acquire a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene; Determining a plurality of spectra corresponding to the three-dimensional lighting simulation scene, and a melanin ratio corresponding to each of the plurality of spectra; Based on the multiple spectra and the melanin ratio corresponding to each of the spectra, a metric corresponding to the calculation point set of the three-dimensional lighting simulation scene is calculated; wherein, The measurement indicators are visually displayed in real time through at least one of a real-time isoline map, a real-time pseudo-color map, and a real-time point value map.
2. The method according to claim 1, further comprising: Generate a simulation report corresponding to the three-dimensional lighting simulation scene; wherein, The simulation report includes at least one of an effect map, a high-precision contour map, a high-precision pseudo-color map, and a high-precision point value map corresponding to the calculation point set of the three-dimensional lighting simulation scene; The high-precision isoline map, high-precision pseudo-color map and high-precision point value map are used to visualize the measurement indicators.
3. The method according to claim 2, wherein: The accuracy of the high-precision contour map is greater than that of the real-time contour map; The accuracy of the high-precision false color image is greater than that of the real-time false color image; The high-precision point value graph has a higher precision than the real-time point value graph.
4. The method according to claim 3, wherein: Determining a spectrum corresponding to the three-dimensional lighting simulation scene and a melanin ratio corresponding to the spectrum includes: Obtain a trigger instruction; wherein the trigger instruction is used to carry at least one of the spectrum, the values of each channel in the RGB channel, and the color temperature information; According to the trigger instruction, a spectrum corresponding to the three-dimensional lighting simulation scene and a melanin ratio corresponding to the spectrum are determined.
5. The method according to claim 4, wherein In a case where the trigger instruction is used to carry the values of each channel in the RGB channel, determining the spectrum corresponding to the three-dimensional lighting simulation scene and the melanin ratio corresponding to the spectrum according to the trigger instruction includes: According to the values of each channel in the RGB channels, a spectrum corresponding to the three-dimensional lighting simulation scene is determined; and using the values of each channel in the RGB channels, a first eigenvalue and a second eigenvalue corresponding to each of the channels are searched from an eigenvalue database; wherein, for any channel in the RGB channels, the eigenvalue database includes the first eigenvalue and the second eigenvalue corresponding to any value of the channel; The melanin ratio corresponding to the spectrum is calculated using the first eigenvalue and the second eigenvalue corresponding to each channel in the RGB channels.
6. The method according to claim 5, wherein: The metric is used to quantify the degree of influence of the illumination generated in the calculation point set on the human circadian rhythm; The measurement indicators include multispectral melanin equivalent illuminance EML and / or multispectral melanin equivalent daylight (D65) illuminance M-EDI.
7. The method according to claim 6, wherein: In a case where the metric includes a multispectral EML, calculating the metric corresponding to the calculation point set of the three-dimensional lighting simulation scene based on the multiple spectra and the retinoid ratio corresponding to each of the spectra includes: Get the visual illumination type; For any of the spectra, calculating a single-spectrum EML according to a light source set corresponding to the spectrum, a melanin ratio corresponding to the spectrum, and the visual illumination type; A plurality of the single-spectrum EMLs are superimposed to obtain a multi-spectrum EML corresponding to the calculation point set of the three-dimensional lighting simulation scene.
8. The method according to claim 7, wherein: For any of the spectra, calculating a single spectrum EML according to the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, and the visual illumination type includes: Determining scene information of the three-dimensional lighting simulation scene and characteristic information of each light source in the light source set; wherein the scene information includes geometric information and material information of objects in the three-dimensional lighting simulation scene; and the characteristic information of the light source includes at least the position, direction, luminous flux, and light distribution data of the light source; The single spectrum EML of the calculation point set is determined according to the scene information, the characteristic information of each of the light sources, the visual illumination type, and the melanin ratio corresponding to the spectrum.
9. The method according to claim 8, wherein In a case where the metric includes a multispectral M-EDI, calculating the metric corresponding to the calculation point set of the three-dimensional lighting simulation scene based on the multiple spectra and the melanin ratio corresponding to each of the spectra includes: Calculating the product of the multi-spectral EML and a preset parameter, and determining the product as the multi-spectral M-EDI; and / or, The visual illumination type is obtained; and for any of the spectra, a single-spectrum M-EDI is determined based on the light source set corresponding to the spectrum, the melanin ratio corresponding to the spectrum, the visual illumination type, scene information of the three-dimensional lighting simulation scene, and characteristic information of each light source in the light source set; and multiple single-spectrum M-EDIs are superimposed to obtain the multispectral M-EDI.
10. A device for generating lighting simulation metrics, comprising: An acquisition module, configured to acquire a three-dimensional lighting simulation scene and a calculation point set of the three-dimensional lighting simulation scene; a determination module, configured to determine a plurality of spectra corresponding to the three-dimensional lighting simulation scene, and a melanin ratio corresponding to each of the plurality of spectra; A calculation module is configured to calculate a metric corresponding to a calculation point set of the three-dimensional lighting simulation scene based on the multiple spectra and the retinoid ratio corresponding to each of the spectra; wherein the metric is visualized in real time via at least one of a real-time isoline map, a real-time pseudo-color map, and a real-time point value map.
11. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.
12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 9.
13. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.