Simulation method, device and equipment for light emitting effect of light source and storage medium

By collecting and processing the brightness distribution data of the light source at different distances, calculating and mapping it to the color space, it solves the problem of lack of effective simulation in light source optimization in the existing technology, achieves efficient and accurate simulation of the light source luminous effect, and provides light source design a valid reference.

CN118829043APending Publication Date: 2024-10-22FUDAN UNIVERSITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410764123.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The existing technology lacks an effective way to simulate the light source luminescence effect, resulting in the inability to effectively guarantee the light source optimization work and the inability to evaluate the brightness distribution and color distribution of the light source in real time.

Method used

Collect the actual brightness distribution data of the light source to be simulated on multiple receiving surfaces with different set distances, combine these data to calculate the simulated brightness distribution data, and calculate the channel values ​​of all coordinate positions in the preset color based on the simulated brightness distribution data, and finally Map data to color space to obtain luminous effect simulation data.

Benefits of technology

It achieves efficient and accurate simulation of the light source's luminous effect, provides an effective reference for light source design optimization, and can quickly and accurately evaluate the brightness and color distribution of the light source. It is suitable for lighting, display and projection systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118829043A_ABST
    Figure CN118829043A_ABST
Patent Text Reader

Abstract

The invention provides a light source light emitting effect simulation method, device and equipment and a storage medium, and relates to the technical field of optics, and the specific implementation scheme is as follows: collecting actual brightness distribution data of a to-be-simulated light source on a plurality of receiving surfaces with different set distances; calculating simulated brightness distribution data of the to-be-simulated light source on the receiving surface of the target distance in the plurality of set distances in combination with the plurality of actual brightness distribution data; calculating each channel value of all coordinate positions when the to-be-simulated light source displays a preset color according to the simulated brightness distribution data; and mapping the simulated brightness distribution data and each channel value to a color space to obtain light emitting effect simulation data of the to-be-simulated light source. Through the light source light emitting effect simulation mode provided by the scheme of the invention, the high efficiency of light emitting effect simulation and the accuracy of a simulation result are ensured, and an effective reference can be provided for light source design optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical technology. Specifically, the present application discloses a method, device, equipment and storage medium for simulating the luminous effect of a light source. Background Art

[0002] Light sources such as atmosphere lights are widely used in various lighting scenarios, such as indoor and outdoor lighting scenarios, projection lighting scenarios, and car interior lighting scenarios. With the continuous development of lighting technology, users have higher and higher requirements for light source effects. Therefore, light source manufacturers are required to comprehensively optimize the designed light sources before product manufacturing. At present, relevant technologies have not yet provided an effective light source luminous effect simulation method to provide a reference for light source optimization, resulting in the inability to effectively guarantee light source optimization work.

[0003] It is worth noting that the techniques described in this section are not necessarily techniques that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any technique described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0004] The embodiments of the present application provide a method, device, equipment and storage medium for simulating the luminous effect of a light source, aiming to solve one of the problems in the related art at least to a certain extent.

[0005] A first aspect of an embodiment of the present application provides a method for simulating a light source lighting effect, comprising:

[0006] Collecting actual brightness distribution data of the light source to be simulated on a receiving surface at multiple different set distances;

[0007] Calculate the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance among the multiple set distances in combination with the multiple actual brightness distribution data;

[0008] Calculate the channel values ​​of all coordinate positions of the light source to be simulated when displaying a preset color according to the simulated brightness distribution data;

[0009] The simulated brightness distribution data and the values ​​of each channel are mapped to a color space to obtain the luminous effect simulation data of the light source to be simulated.

[0010] A second aspect of the embodiments of the present application provides a light source luminous effect simulation device, comprising:

[0011] An acquisition module is used to acquire actual brightness distribution data of the light source to be simulated on a receiving surface at multiple different set distances;

[0012] A first calculation module, used for calculating the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance among the plurality of set distances, by combining the plurality of the actual brightness distribution data;

[0013] A second calculation module, used for calculating the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data;

[0014] A mapping module is used to map the simulated brightness distribution data and the values ​​of each channel to a color space to obtain the luminous effect simulation data of the light source to be simulated.

[0015] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, it implements each step of the light source luminous effect simulation method provided in the first aspect of the embodiment of the present application.

[0016] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step of the light source luminous effect simulation method provided in the first aspect of the embodiments of the present application is implemented.

[0017] As can be seen from the above, according to the light source luminous effect simulation method, device, equipment and storage medium provided by the present application, the actual brightness distribution data of the light source to be simulated on the receiving surface at multiple different set distances are collected; the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance in multiple set distances are calculated by combining multiple actual brightness distribution data; the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color are calculated according to the simulated brightness distribution data; the simulated brightness distribution data and the channel values ​​are mapped to the color space to obtain the luminous effect simulation data of the light source to be simulated. The light source luminous effect simulation method provided by the present application ensures the high efficiency of luminous effect simulation and the accuracy of simulation results, and provides an effective reference for light source design optimization.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The drawings shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0020] Figure 1 A schematic diagram of the basic flow of a method for simulating the light source lighting effect provided in an embodiment of the present application;

[0021] Figure 2 This is an actual brightness distribution diagram when the distance between the light source and the receiving surface is 1.5 cm provided in an embodiment of the present application;

[0022] Figure 3 A simulated brightness distribution diagram when the distance between the light source and the receiving surface is 1.5 cm provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram showing the difference between the actual brightness distribution and the simulated brightness distribution when the distance between the light source and the receiving surface is 1.5 cm provided in one embodiment of the present application;

[0024] Figure 5 A schematic diagram of a detailed process of a method for simulating the light source lighting effect provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of the functional modules of a light source luminous effect simulation device provided in one embodiment of the present application;

[0026] Figure 7 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0028] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features; the term "multiple" means two or more, unless otherwise clearly and specifically defined; the term "including" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections; the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may include the existence of A alone, the existence of A and B at the same time, and the existence of B alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

[0029] In order to solve the problem that the brightness distribution and color distribution of a light source cannot be evaluated in real time in the related art, an embodiment of the present application provides a method for simulating the luminous effect of a light source, such as Figure 1 This is a basic flow chart of the light source luminous effect simulation method provided in this embodiment. The light source luminous effect simulation method includes the following steps:

[0030] Step 101 : collecting actual brightness distribution data of the light source to be simulated on a receiving surface at a plurality of different set distances.

[0031] In this embodiment, for the light source to be simulated, the actual brightness data of the light source on the receiving surface at different distances can be collected by an optical instrument (such as a hyperspectrometer SR-5000). In an optional embodiment, the different set distances can be 0.5 cm, 1 cm, 1.5 cm, 2 cm, such as Figure 2 The figure shows the actual brightness distribution diagram when the distance between the light source and the receiving surface provided by this embodiment is 1.5 cm. It is worth mentioning that the light source to be simulated in this embodiment can be an RGB three-channel light source or an RGBW four-channel light source. This embodiment does not make a sole limitation on this and can be determined according to the actual application scenario.

[0032] Step 102 : combining a plurality of actual brightness distribution data, calculating simulated brightness distribution data of the light source to be simulated on a receiving surface at a target distance among a plurality of set distances.

[0033] In an optional implementation of the present embodiment, the coefficients of the initial simulated brightness distribution model are fitted using any actual brightness distribution data except the actual brightness distribution data of the target distance to obtain a first simulated brightness distribution model; the distance function is integrated into the first simulated brightness distribution model to obtain a second simulated brightness distribution model; the distance function of the second simulated brightness distribution model is fitted using multiple actual brightness distribution data except the actual brightness distribution data of the target distance to obtain a third simulated brightness distribution model; the actual distances of all coordinate positions on the receiving surface of the target distance of the light source to be simulated in multiple set distances are substituted into the third simulated brightness distribution model to obtain corresponding simulated brightness distribution data.

[0034] Specifically, this embodiment uses the actual brightness distribution data of multiple set distances other than the target distance (for example, 1.5 cm) to perform function fitting, wherein the actual brightness distribution data of any set distance (for example, 1 cm) among the other multiple set distances is first used to fit the coefficients of the initial simulated brightness distribution model, and then all the actual brightness distribution data corresponding to the other multiple set distances (that is, 0.5 cm, 1 cm, 2 cm) are used to fit the distance function.

[0035] In practical applications, the model coefficients of the initial simulated brightness distribution model can be fitted based on the actual brightness distribution data of the light source when the distance between the light source and the receiving surface is 1 cm. The initial simulated brightness distribution model is expressed as follows:

[0036]

[0037] Where (x, y) represents the coordinate position of the light source brightness distribution, f(x, y) represents the simulated brightness data at the (x, y) coordinate position, A represents the brightness adjustment coefficient, σ x , σ y Respectively represent the adjustment coefficients in the x and y directions, (x 0 ,y 0 ) represents the coordinate position of the center of the light source.

[0038] After fitting, the corresponding coefficient is: A = 209.1362, x 0 =106.1534,y 0 =96.1875,σ x =10.2844,σ y =10.1215, coefficient of determination R 2 =0.9843.

[0039] Then, the first simulated brightness distribution model can be obtained, which is expressed as follows:

[0040]

[0041] In this embodiment, the distance function is incorporated into the simulated brightness distribution model as an independent variable to obtain a second simulated brightness distribution model. The initial form of the second simulated brightness distribution model is expressed as follows:

[0042]

[0043] Among them, g 1 (d) g 2 (d) Respectively represents the influence of distance on the brightness adjustment coefficient and the x and y direction adjustment coefficients.

[0044] Based on the first simulated brightness distribution model fitted in the actual application process, the second simulated brightness distribution model to be fitted can be obtained, which is expressed as follows:

[0045]

[0046] Next, this embodiment can be fitted based on the actual brightness distribution data of the light source when the distance between the light source and the receiving surface is 0.5 cm, 1 cm, and 2 cm:

[0047] When d = 1 cm, g 1 (d) = 1, g 2 (d) = 1;

[0048] When d = 0.5 cm, g 1 (d) = 4.3169, g 2 (d) = 0.3649;

[0049] When d = 2 cm, g 1 (d) = 0.3257, g 2 (d) = 1.3976.

[0050] According to the above results, the distance function is fitted: g 1 (d) = 1.307d -2.056 , g 2 (d) = 0.846d 0.7701 Then, the third simulated brightness distribution model can be obtained by substituting the fitted distance function into the second simulated brightness distribution model, which is expressed as follows:

[0051]

[0052] Finally, the third brightness distribution model can be used to solve the simulated brightness distribution data corresponding to the target distance (for example, 1.5 cm), such as Figure 3 The figure shows the simulated brightness distribution diagram when the distance between the light source provided by this embodiment and the receiving surface is 1.5 cm.

[0053] It is worth mentioning that the simulated brightness distribution data obtained for the target distance in this embodiment can be used to evaluate the accuracy of the fitting function, such as Figure 4 The figure shows the difference between the actual brightness distribution and the simulated brightness distribution when the distance between the light source and the receiving surface provided in this embodiment is 1.5 cm, and the goodness of fit R between the actual brightness distribution data and the simulated brightness distribution data is shown. 2 =0.9195, the fitting function can explain about 90% of the uncertainty of the actual brightness distribution, has a high degree of fitting to the actual brightness distribution, and can meet the practical application more accurately.

[0054] It should be noted that the specific implementation method of obtaining the actual distance of all coordinate positions on the receiving surface of the target distance in this embodiment exemplarily includes: performing surface segmentation processing on the receiving surface to obtain the coordinate position of each segmentation point; interpolating the segmentation points to obtain a grid of the same size as the brightness matrix; translating the receiving surface in the positive direction of the X-axis by the target distance; and obtaining the actual distance of the grid points of all coordinate positions on the receiving surface after translation in the Z-axis direction relative to the light source to be simulated.

[0055] Step 103 : Calculate the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data.

[0056] In an optional implementation of this embodiment, the spectrum distribution of all coordinate positions when the light source to be simulated displays a preset color is calculated according to the simulated brightness distribution data; and the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color are obtained according to the spectrum distribution. Preferably, the light source to be simulated in this embodiment is an RGB three-channel light source, and then the corresponding values ​​obtained according to the spectrum distribution are the R channel value, the G channel value, and the B channel value.

[0057] On the one hand, the absolute proportion of the preset color spectrum of the light source to be simulated mixed with the three primary color spectra is determined according to the simulated brightness distribution data; the corresponding spectrum is calculated based on the absolute proportion of each coordinate position to obtain the spectrum distribution of all coordinate positions.

[0058] On the other hand, the spectral distribution of all coordinate positions when the light source to be simulated displays a preset color is calculated by combining the simulated brightness distribution data and the reflection characteristic ρ(λ) or transmission characteristic τ(λ) of the surface material of the receiving surface.

[0059] If the light source to be simulated is an RGB three-channel light source, then this embodiment can first calculate the actual three stimulus values ​​of all coordinate positions according to the spectral distribution; then, based on the conversion relationship between the preset three stimulus values ​​and the R, G, B channel values ​​and the actual three stimulus values, obtain the R, G, B channel values ​​of all coordinate positions when the light source to be simulated displays the preset color.

[0060] Generally speaking, optical instruments (such as a hyperspectrometer SR-5000) can be used to obtain the spectrum data of the light source to be simulated when it displays red (R=255, G=0, B=0), green (R=0, G=255, B=0), and blue (R=0, G=0, B=255), and the color of the light source to be simulated is obtained by adjusting the proportion of the three primary color spectra through the brightness data. In this embodiment, the relative proportion of the preset color spectrum of the light source to be simulated is obtained based on the following formula:

[0061]

[0062]

[0063] Y=1,

[0064]

[0065] Among them, X i , Y i , Z i (i=R, G, B) represent the three stimulus values ​​when the light source to be simulated displays red, green, and blue, respectively; X, Y, and Z represent the three stimulus values ​​when the light source to be simulated displays a preset color; (x, y) represent the color coordinates of the preset color of the light source to be simulated; R R , R G , R B It indicates the relative proportion of the preset color spectrum of the light source to be simulated, which is a mixture of the three primary color spectra. S(λ) is the spectral distribution. is the CIE color matching function.

[0066] Next, the absolute proportion of the preset color spectrum of the light source to be simulated mixed with the three primary color spectra can be determined according to the simulated brightness distribution data.

[0067] After obtaining the absolute ratio of spectrum mixing at each coordinate position, the corresponding spectrum can be calculated according to the following relationship:

[0068] P(λ)=R R P R (λ)+R G P G (λ)+R B P B (λ)

[0069] Among them, R R , R G , R B Indicates the absolute ratio of the three primary color spectrum mixture, P R / G / B (λ) represents the three primary color spectrum.

[0070] After obtaining the spectral distribution of all coordinate positions in this embodiment, the corresponding tristimulus values ​​can be calculated according to the following relationship:

[0071]

[0072] Where S(λ) is the spectral distribution, is the CIE color matching function.

[0073] Finally, obtaining the R, G, and B values ​​of all coordinate positions of the light source to be simulated can be achieved based on the following conversion relationship:

[0074]

[0075] Among them, x i ,y i 、z i (i=R, G, B) represent the chromaticity coordinates when the simulated ambient light displays red, green, and blue respectively, W , Y W , Z W They represent the three stimulus values ​​when the simulated ambient light displays white, S R / G / B It has no specific meaning and is just an intermediate quantity given to simplify the equation.

[0076] Step 104: Map the simulated brightness distribution data and the values ​​of each channel to the color space to obtain the luminous effect simulation data of the light source to be simulated.

[0077] Specifically, this embodiment obtains a luminous effect with different brightness and color according to the brightness data of all coordinate positions and the channel values ​​corresponding to all coordinate positions based on the color coordinates. Generally speaking, this embodiment can visualize the luminous effect simulation data in the form of a luminous effect simulation diagram.

[0078] It is worth mentioning that although the ray tracing method can also be used to simulate the luminous effect in practical applications, the ray tracing method has the limitation that both the design and simulation are time-consuming. The method for simulating the luminous effect of a light source described above in this embodiment uses the state quantity obtained by function fitting, which has lower requirements for modeling. It can simply, quickly and efficiently evaluate the brightness distribution of the light spot, and can quickly and accurately simulate the luminous effect of the light source. It is widely applicable to the simulation of luminous effect of light sources in lighting systems, display systems, and projection systems.

[0079] In order to better illustrate the implementation scheme of the present application, this embodiment also provides a detailed light source luminous effect simulation method, such as Figure 5 The figure is a detailed flow chart of a method for simulating the luminous effect of a light source provided in an embodiment of the present application, which specifically includes the following steps:

[0080] Step 501, collecting actual brightness distribution data of a light source to be simulated having R, G, and B channels on a receiving surface at a plurality of different set distances;

[0081] Step 502: using any actual brightness distribution data except the actual brightness distribution data of the target distance, fitting the coefficients of the initial simulated brightness distribution model to obtain a first simulated brightness distribution model;

[0082] Step 503: Incorporate the distance function into the first simulated brightness distribution model to obtain a second simulated brightness distribution model;

[0083] Step 504: using a plurality of actual brightness distribution data other than the actual brightness distribution data of the target distance, fitting a distance function of the second simulated brightness distribution model to obtain a third simulated brightness distribution model;

[0084] Step 505, substituting the actual distances of all coordinate positions of the light source to be simulated on the receiving surface at the target distance among the multiple set distances into the third simulated brightness distribution model to obtain corresponding simulated brightness distribution data;

[0085] Step 506, determining the absolute proportion of the preset color spectrum of the light source to be simulated mixed with the three primary color spectra according to the simulated brightness distribution data;

[0086] Step 507, calculating the corresponding spectrum based on the absolute ratio of each coordinate position, and obtaining the spectrum distribution of all coordinate positions;

[0087] Step 508, calculating the actual tristimulus values ​​of all coordinate positions according to the spectral distribution;

[0088] Step 509, according to the conversion relationship between the preset tristimulus values ​​and the R, G, B channel values ​​and the actual tristimulus values, obtaining the RGB values ​​of all coordinate positions when the light source to be simulated displays the preset color;

[0089] Step 510: Map the simulated brightness distribution data and the R, G, B channel values ​​to the color space to obtain the luminous effect simulation data of the light source to be simulated.

[0090] In this embodiment, after obtaining the actual brightness distribution data of the light source to be simulated on the receiving surface at different preset distances, the actual brightness distribution data is fitted by a preset fitting function to obtain simulated brightness distribution data; the color coordinates of the three primary color spectra of the light source to be simulated and the preset color of the atmosphere light to be simulated are obtained, and the proportion of the three primary color spectra can be adjusted by simulating the brightness distribution data to obtain the color of the light source to be simulated; finally, by mapping the simulated brightness distribution data and the RGB value to the RGB color space, the simulated luminous effect of the light source to be simulated can be obtained. Through the implementation of the present application scheme, the brightness distribution state of the light source spot can be obtained in advance, and a specific color can be given at the same time, so that the simulated effect presented by it can highly restore the real environment. The present application scheme has the ability to evaluate the luminous effect of the light source with high precision and rapidity, and provides simple and efficient assistance for the practical application of light sources in various industries.

[0091] It should be understood that the size of the serial number of each step in this embodiment does not mean the order of execution of the steps. The execution order of each step should be determined by its function and internal logic, and should not constitute a sole limitation on the implementation process of the embodiment of this application.

[0092] Figure 6 A light source luminous effect simulation device is provided in one embodiment of the present application. The light source luminous effect simulation device can be used to implement the light source luminous effect simulation method in the above-mentioned embodiment, mainly comprising:

[0093] The acquisition module 601 is used to acquire actual brightness distribution data of the light source to be simulated on a receiving surface at multiple different set distances;

[0094] A first calculation module 602 is used to calculate simulated brightness distribution data of the light source to be simulated on the receiving surface at a target distance among multiple set distances, by combining multiple actual brightness distribution data;

[0095] The second calculation module 603 is used to calculate the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data;

[0096] The mapping module 604 is used to map the simulated brightness distribution data and the values ​​of each channel to the color space to obtain the lighting effect simulation data of the light source to be simulated.

[0097] In an optional implementation of the present embodiment, the light source luminous effect simulation device also includes: an acquisition module, which is used to perform surface segmentation processing on the receiving surface to obtain the coordinate position of each segmentation point; interpolate the segmentation points to obtain a grid of the same size as the brightness matrix; translate the receiving surface in the positive direction of the X-axis by a target distance; and obtain the actual distance of the grid points at all coordinate positions on the receiving surface after the translation relative to the light source to be simulated in the Z-axis direction.

[0098] It should be noted that the light source luminous effect simulation methods in the aforementioned method embodiments can all be implemented based on the light source luminous effect simulation device provided in this embodiment. Ordinary technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the light source luminous effect simulation device described in this embodiment can be implemented by referring to the corresponding working process in the aforementioned method embodiments, and will not be repeated here.

[0099] Based on the technical solution of the embodiment of the present application, the actual brightness distribution data of the light source to be simulated on the receiving surface at multiple different set distances are collected; the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance in the multiple set distances are calculated by combining the multiple actual brightness distribution data; the values ​​of each channel at all coordinate positions when the light source to be simulated displays a preset color are calculated according to the simulated brightness distribution data; the simulated brightness distribution data and the values ​​of each channel are mapped to the color space to obtain the luminous effect simulation data of the light source to be simulated. The light source luminous effect simulation method provided by the present application scheme ensures the high efficiency of luminous effect simulation and the accuracy of simulation results, and provides an effective reference for light source design optimization.

[0100] Figure 7 An electronic device is provided in one embodiment of the present application. The electronic device can be used to implement the light source luminous effect simulation method in the aforementioned embodiment, and mainly includes: a memory 701 and a processor 702. The memory 701 stores a computer program 703 that can be run on the processor 702. The memory 701 and the processor 702 are in communication connection. When the processor 702 executes the computer program 703, the light source luminous effect simulation method in the aforementioned embodiment is implemented. The number of processors 702 can be one or more.

[0101] The memory 701 may be a high-speed random access memory (RAM) memory, or a non-volatile memory, such as a disk memory. The memory 701 is used to store executable program codes, and the processor 702 is coupled to the memory 701 .

[0102] Furthermore, the present application also provides a computer-readable storage medium, which may be provided in the electronic device in the above embodiments. Figure 7 Memory in the illustrated embodiment.

[0103] The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for simulating the light source lighting effect in the aforementioned embodiment is implemented. Furthermore, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.

[0104] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0105] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0106] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0107] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0108] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0109] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0110] The above is a description of the light source luminous effect simulation method, device, equipment and storage medium provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for simulating the luminous effect of a light source, characterized in that: include: Collecting actual brightness distribution data of the light source to be simulated on a receiving surface at multiple different set distances; Calculate the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance among the multiple set distances in combination with the multiple actual brightness distribution data; Calculate the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data; The simulated brightness distribution data and the values ​​of each channel are mapped to a color space to obtain the luminous effect simulation data of the light source to be simulated.

2. The method for simulating the light source luminous effect according to claim 1, characterized in that: The step of combining the plurality of actual brightness distribution data to calculate the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance among the plurality of set distances comprises: Using any actual brightness distribution data other than the actual brightness distribution data of the target distance, fitting the coefficients of the initial simulated brightness distribution model to obtain a first simulated brightness distribution model; Integrating the distance function into the first simulated brightness distribution model to obtain a second simulated brightness distribution model; Using a plurality of actual brightness distribution data other than the actual brightness distribution data of the target distance, fitting the distance function of the second simulated brightness distribution model to obtain a third simulated brightness distribution model; The actual distances of all coordinate positions of the light source to be simulated on the receiving surface at the target distance among the multiple set distances are substituted into the third simulated brightness distribution model to obtain corresponding simulated brightness distribution data.

3. The method for simulating the light source lighting effect according to claim 2, characterized in that: The initial simulation brightness distribution model is expressed as: Where (x, y) represents the coordinate position of the light source brightness distribution, f(x, y) represents the simulated brightness data at the (x, y) coordinate position, A represents the brightness adjustment coefficient, σ x , σ y They represent the adjustment coefficients in the x and y directions respectively, and (x0, y0) represents the coordinate position of the center of the light source.

4. The method for simulating the light source lighting effect according to claim 2, characterized in that: Before substituting the actual distances of all coordinate positions of the light source to be simulated on the receiving surface at the target distance in the plurality of set distances into the third simulated brightness distribution model, the method further includes: Performing curved surface segmentation processing on the receiving surface to obtain the coordinate position of each segmentation point; After interpolation processing is performed on the segmentation points, a grid having the same size as the brightness matrix is ​​obtained; The receiving surface is translated in the positive direction of the X-axis by the target distance; The actual distances of the grid points at all coordinate positions on the translated receiving surface relative to the light source to be simulated in the Z-axis direction are obtained.

5. The method for simulating the light source lighting effect according to claim 1, characterized in that: The calculating, according to the simulated brightness distribution data, the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color comprises: Calculating the spectrum distribution of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data; The channel values ​​of all coordinate positions when the light source to be simulated displays a preset color are obtained according to the spectral distribution.

6. The method for simulating the light source lighting effect according to claim 5, characterized in that: The step of calculating the spectrum distribution of all coordinate positions of the light source to be simulated when displaying a preset color according to the simulated brightness distribution data includes: Determine the absolute proportion of the preset color spectrum of the light source to be simulated mixed by the spectra of each channel according to the simulated brightness distribution data; The corresponding spectrum is calculated based on the absolute ratio of each coordinate position to obtain the spectrum distribution of all coordinate positions.

7. The method for simulating the light source lighting effect according to claim 5, characterized in that: Calculating the spectrum distribution of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data includes: The spectral distribution of all coordinate positions when the light source to be simulated displays a preset color is calculated by combining the simulated brightness distribution data and the reflection characteristic or the transmission characteristic of the surface material of the receiving surface.

8. A light source luminous effect simulation device, characterized in that: include: An acquisition module is used to acquire actual brightness distribution data of the light source to be simulated on a receiving surface at multiple different set distances; A first calculation module, used for calculating the simulated brightness distribution data of the light source to be simulated on the receiving surface at the target distance among the plurality of set distances, by combining the plurality of the actual brightness distribution data; A second calculation module, used for calculating the channel values ​​of all coordinate positions when the light source to be simulated displays a preset color according to the simulated brightness distribution data; A mapping module is used to map the simulated brightness distribution data and the values ​​of each channel to a color space to obtain the luminous effect simulation data of the light source to be simulated.

9. An electronic device, characterized in that: The device comprises a memory and a processor, wherein: The processor is used to execute the computer program stored in the memory; When the processor executes the computer program, the steps in the method for simulating the luminous effect of a light source as claimed in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method for simulating the luminous effect of a light source as claimed in any one of claims 1 to 7 are implemented.