This application claims the priority benefit of Taiwan application serial no. 106112921, filed on Apr. 18, 2017. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The invention relates to a modeling method, and particularly relates to an optical modeling method for building a lens model and an electronic apparatus using the optical modeling method.
In recent years, as the improvement of luminous efficiency and lifetime of light emitting diode (LED), along with the component features and advantages thereof, such as low power consumption, low pollution, high-efficiency, high speed of response, small volume, light weight, and installability on various kinds of surfaces, LED has been positively applied in various optical fields. Take the use of. LED on illumination for example, many illuminating devices using LED packaging structures on the light sources (such as light bulbs, street lamps, flashlights, etc.) or on other relevant components have been developed.
In designing such illuminating devices, the optical design is often performed by adding optical lens, diffuser plates, or other optical components in the light path of the LED packaging structures to change the optical performance thereof (for example, to change the light emitting angle and increase the color uniformity), and to obtain an expected light shape distribution, so that the light emitted by the whole light system satisfies the designer's requirements. However, the current designing method takes a lot of time because the light distribution curve of the lens is unpredictable.
The invention provides an optical modeling method and an electronic apparatus using the same, that effectively build a lens model, so that a light source generates a light shape that is close to a target light shape after passing the lens model, and time for designing the lens is saved.
The optical modeling method of the invention is adapted for an electronic apparatus to build a target lens model. The optical modeling method includes: calculating and generating a first lens model according to a spatial intensity distribution of a light source and a first target intensity distribution; introducing an external shape of the light source and calculating a first intensity distribution according to the spatial intensity distribution and the first lens model; obtaining a first difference level by comparing the first target intensity distribution and the first intensity distribution; taking the first lens model as the target lens model if the first difference level is not greater than a preset threshold; if the first difference level is greater than the preset threshold, correcting the first target intensity distribution to a second target intensity distribution according to the first difference level, and calculating and generating a second lens model according to the spatial intensity distribution of the light source and the second target intensity distribution.
The electronic apparatus of the invention is adapted to build a target lens model, and includes an input device, a storage device, and a processing device. The input device is configured to receive a first target intensity distribution. The storage device is configured to store a plurality of modules. The processing device is coupled to the input device and the storage device and configured to load and execute the modules in the storage device. The modules include a model calculating module, an intensity distribution calculating module, a difference calculating module, a model deciding module, and a compensating module. The model calculating module is configured to calculate and generate a first lens model according to a spatial intensity distribution of a light source and the first target intensity distribution. The intensity distribution calculating module is configured to introduce an external shape of the light source and calculates a first intensity distribution according to the spatial intensity distribution and the first lens model. The difference calculating module is configured to obtain a first difference level by comparing the first target intensity distribution and the first intensity distribution and determine whether the first difference level is greater than a preset threshold. If the first difference level is not greater than the preset threshold, the model deciding module takes the first lens model as the target lens model. If the first difference level is greater than the preset threshold, the compensating module corrects the first target intensity distribution to a second target intensity distribution according to the first difference level, and the model calculating module further calculates and generates a second lens model according to the spatial intensity distribution of the light source and the second target intensity distribution.
Based on the above, the optical modeling method and the electronic apparatus using the same of the invention first utilize the first target intensity distribution to calculate the first lens model, and utilize the external shape and the spatial intensity distribution of the light source, and the calculated first lens model to calculate the first intensity distribution. Self-compensating according to the difference level between the first intensity distribution and the first target intensity distribution, then the target lens model may be obtained by recursive calculation. Accordingly, after passing the target lens model, the light source generates a light shape that is close to the target intensity distribution, and time for designing the target lens model is saved as well.
To make the aforementioned and other features and advantages of the invention more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate exemplary embodiments of the invention and, together with the description, serve to explain the principles of the invention.
The input device 12 is a keyboard, a mouse, etc., for example, configured to receive an input signal. In this embodiment, the input signal received by the input device 12 includes, for example, a first target intensity distribution. The first target intensity distribution that is inputted is, for example, a one-, two-, or three-dimensional spatial intensity distribution, but the embodiment is not limited thereto.
The storage device 14 is, for example, a fixed or mobile random access memory (RAM), read-only memory (ROM), flash memory, or any other similar component, or any combination of the above components in any form. In this embodiment, the storage device 14 is configured to store a model calculating module 141, an intensity distribution calculating module 143, a difference calculating module 145, a model deciding module 147, and a compensating module 149.
The processing device 16 is, for example, a central processing unit (CPU), or other programmable microprocessor, digital signal processor (DSP), programmable controller, application specific integrated circuits (ASIC), programmable logic device (PLD) of general use or special use, or any other similar device, or any combination of the above devices, coupled to the input device 12 and the storage device 14.
In this embodiment, the module stored in the storage device 14 is a computer program, for example, which is loaded by the processing device 16 to execute an optical modeling method according to this embodiment. An embodiment is provided as follows to describe the steps of the method in detail.
In step S210, the processing device 16 receives a spatial intensity distribution of a light source and an expected first target intensity distribution from the input device 12. The spatial intensity distribution of the light source is, for example, designed when the light source is packaged, and indicates the intensity in each position in the space when the light source is illuminating. In another embodiment, the spatial intensity distribution of the light source is, for example, stored in advance in the storage device 14 to be loaded by the processing device 16 in step S210. On the other hand, users may input the expected first target intensity distribution by the input device 12, for example. The first target intensity distribution is the intensity distribution in each position in the space which a user expects a light source to reach after passing the designed target lens model.
Then, in step S220, the processing device 16 executes the model calculating module 141 to generate a lens model (e.g., a first lens model) according to the spatial intensity distribution of the light source and the first target intensity distribution Io, so that the intensity distribution that is obtained after the light source passes the generated lens model is close to the first target intensity distribution Io.
In step S230, the processing device 16 executes the intensity distribution calculating module 143 to introduce the external shape of the light source and calculate the intensity distribution (e.g., a first intensity distribution) generated by the light source passing the first lens model M according to the spatial intensity distribution of the light source and the first lens model M which is simulated in step S220.
The stray lights may cause the light source to generate an intensity distribution far from the first target intensity distribution Io after the light source passes the first lens model M generated in step S220.
In step S240, the processing device 16 executes the difference calculating module 145 to obtain a difference level (e.g., a first difference level) between the first target intensity distribution Io and the intensity distribution In calculated in step S230 and to determine whether the difference level is greater than a preset threshold, in order to decide if the intensity distribution In calculated in step S230 is acceptable. In this embodiment, the preset threshold is preset in the processing device 16 or the storage device 14 but not limited thereto. In other embodiments, the preset threshold is, for example, received by the input device 12 before the processing device 16 executes step S240 for the first time.
If the first difference level is not greater than the preset threshold, which means that the first intensity distribution In calculated in step S230 is close enough to the first target intensity distribution Io and thus is acceptable, then the process proceeds to step S250, where the processing device 16 executes the model deciding module 147 to output the first lens model M generated in step S220 as the target lens model.
Otherwise, if at least one of the first differences is greater than the preset threshold, then the process proceeds to step S260, where the processing device 16 executes the compensating module 149 to correct the first target intensity distribution Io to a second target intensity distribution I0′ according to the first difference level. Then the process returns to step S220 to generate a lens model (e.g., a second lens model) according to the spatial intensity distribution of the light source and the corrected second target intensity distribution Io′.
Please refer to
As a result, the second lens model generated according to the spatial intensity distribution of the light source and the corrected second target intensity distribution Io′ in step S220 is closer to the target lens model.
After the second lens model is generated, the process proceeds to step S230, where the processing device 16 executes the intensity distribution calculating module 143 again to introduce the external shape of the light source and calculate an intensity distribution (e.g., a second intensity distribution) generated by the light source passing the second lens model according to the spatial intensity distribution of the light source and the second lens model simulated in step S220.
Then, in step S240, the processing device 16 executes the difference calculating module 145 to obtain a second difference level by comparing the first target intensity distribution Io and the second intensity distribution and to determine whether the second difference level is greater than the preset threshold, in order to decide whether to accept the second intensity distribution or not. If the second difference level is not greater than the preset threshold, then the processing device 16 decides to accept the second intensity distribution, and the process proceeds to step S250, where the processing device 16 executes the model deciding module 147 to output the second lens model as the target lens model. Otherwise, the process proceeds to step S260, where the processing device 16 executes the compensating module 149 again to correct the second target intensity distribution Io′ to a third target intensity distribution according to the second difference level. Then the process returns to step S220 to generate a third lens model according to the spatial intensity distribution of the light source and the corrected third target intensity distribution. The specific implementation method of similar steps is provided in the above paragraphs and thus not to be repeated herein.
Accordingly, by performing the optical modeling method according to the embodiments of the invention, the stray light that may be generated is compensated in advance in order to obtain the target lens model more efficiently so that the intensity distribution obtained after the light source passes the target lens model is close to the first target intensity distribution.
Note that, in an embodiment, the processing device 16 further records the first intensity distribution, the first lens model and the first target intensity distribution, and records the second intensity distribution, the second lens model and the second target intensity distribution, etc. in the storage device 14 to construct a calculation database. Thereby, after the first target intensity distribution is obtained in step S210, the processing device 16 may directly access the calculation database from the storage device 14 and correct the first target intensity distribution in advance according to the data in the database, which saves significant time for calculation.
To sum up, the optical modeling method and the electronic apparatus using the same provided in the embodiments of the invention first utilize the first target intensity distribution to calculate the first lens model, and utilize the external shape and the spatial intensity distribution of the light source, and the first lens model to calculate the first intensity distribution. Self-compensating according to the difference level between the first intensity distribution and the first target intensity distribution, the target lens model may be obtained with recursive calculation. Accordingly, after passing the target lens model, the light source generates the light shape that is close to the target intensity distribution, and time for designing the target lens model is saved as well.
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of this invention. In view of the foregoing, it is intended that the invention covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
106112921 | Apr 2017 | TW | national |