Surface optimization method for optical lens or reflector

By optimizing the surface shape of the optical lens or reflector, using the refractive or reflection law and semi-discrete optimal transmission problems, the problem of insufficient light field accuracy in the prior art is solved, and the high accuracy and easy processing of optical devices are achieved. Effect.

CN118915309AActive Publication Date: 2024-11-08UNIV OF SCI & TECH OF CHINA

Patent Information

Application Number
CN202411102015.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-08
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing optical lens or mirror design methods cannot ensure that the generated light field has extremely high accuracy, errors will gradually accumulate when calculating auxiliary features and reconstructing surfaces, and the triangular grid representation method is used and the real physical world. The normal refraction of the triangle plane does not match, resulting in an increase in error, and only requires the simulation results to be close to the target and ignore the actual processing difficulties.

Method used

By giving unit lighting direction and receiving plane, the position of each basic geometric unit is calculated using the law of refraction or reflection, the semi-discrete optimal transmission problem is established, the grid shape is optimized, and the optimization is gradually iteratively to improve the accuracy of the optical device, and the introduction of smoothness is introduced. Sexual constraints facilitate processing.

Benefits of technology

Accurate control of the beam direction and light intensity distribution of the specified area is achieved, the accuracy of the optical device is improved, the target image can be accurately presented on the receiving plane, and the designed surface is easy to process and manufacture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118915309A_ABST
    Figure CN118915309A_ABST
Patent Text Reader

Abstract

The invention discloses a surface optimization method for an optical lens or a reflector, and the method comprises the steps: giving a unit illumination direction, a target image and a receiving plane, and representing the surface of the to-be-optimized optical lens or reflector through an original grid; establishing an optimization problem according to the alignment degree of each position, the change degree of the luminous flux, the smooth degree of the original grid and the obstacle item to obtain a deformed grid; recalculating the positions of all the basic geometric units in the receiving plane in the deformed grid, and performing superposition rendering to obtain an image; establishing an optimization problem according to the image difference between the rendered image and the target image, the image gradient difference, the exceeded image boundary penalty term, the smooth degree of the deformed grid and the obstacle term, and obtaining a grid after secondary deformation; and the grid is encrypted step by step until the last iteration with the highest resolution is stopped, and the finally optimized grid is obtained. According to the method, the surface shape of the optical lens or the reflector can be optimized according to the light source information, the receiving plane position and the target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of optical lenses or reflectors, and in particular to a surface optimization method for optical lenses or reflectors. Background Art

[0002] When the refractive (or reflective) surface of an optical device is uneven, the refracted (or reflected) light will form an uneven light field, a phenomenon called caustics. However, it is very difficult to control the caustics phenomenon to form a specific light field by designing the surface shape of the optical device, because a slight change in the refractive (or reflective) surface may cause a huge change in the refraction (or reflection) direction. This process usually requires a lot of calculations and uses ray tracing or other techniques to simulate light passing through the lens (or reflector). The design of optical lenses (or reflectors) has important theoretical significance and practical application value in many fields such as optoelectronic detection, optical processing, medicine, and architecture.

[0003] Existing methods for designing caustic lenses (or reflectors) usually require first finding auxiliary features such as normal fields or visibility maps, and then reconstructing the surface of the optical device based on these auxiliary features. However, current methods cannot ensure that the generated light field has extremely high accuracy. First of all, these methods do not directly consider the difference between the caustic light field generated by the reconstructed surface and the target light field, so errors will gradually accumulate when calculating auxiliary features and reconstructing surfaces. In addition, many methods use triangular meshes to represent the surface of optical devices, but use the vertex normals of triangles for refraction, which is inconsistent with the use of triangular face normals for refraction in the real physical world, which further increases the error. Finally, these methods only require that the simulation results are close to the target, ignoring the difficulties that may arise in actual processing. Summary of the invention

[0004] The purpose of the present invention is to provide a surface optimization method for an optical lens or a reflector, which can control the light beam direction and light intensity distribution in a specified area, optimize the surface shape of the optical lens or the reflector according to the light source information, the receiving plane position and the target image, so that the light emitted from the light source can pass through the lens or the reflector to present the target image on the receiving plane, thereby improving the accuracy of the optical device.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A surface optimization method for an optical lens or a reflector, the method comprising:

[0007] Step 1: Given a unit lighting direction Target Image and receiving plane p, using the original mesh M0 to represent the surface of the optical lens or mirror to be optimized;

[0008] Step 2: Use the law of refraction or reflection to calculate the position t' of each basic geometric unit t in the original grid M0 on the receiving plane p, and then calculate the center position of t' The target image Treated as a continuous probability distribution μ, calculate the center position The semi-discrete optimal transmission problem between μ and μ is used to obtain the optimized position

[0009] Step 3: According to and The degree of alignment E align , the degree of change of the luminous flux Φ carried by the basic geometric unit t flux , the smoothness E of the original mesh M0 smooth and obstacle E barr Establish an optimization problem and optimize to obtain the deformed mesh M1;

[0010] Step 4: recalculate the position t′ of all basic geometric units t on the receiving plane p in the deformed grid M1, and obtain the image g after superposition rendering;

[0011] Step 5: The image g obtained in step 4 and the target image The image difference between img , image gradient difference E grad , penalty term E beyond the image boundary bdr , the smoothness E of the deformed mesh M1 smooth and obstacle E barr Establish an optimization problem and optimize the mesh M2 after secondary deformation;

[0012] Step 6: Replace the original mesh M0 with the mesh M2 after secondary deformation, and perform several iterations of M0-M1-M2. Through the strategy of coarse-to-fine, the mesh is gradually encrypted until the last iteration with the highest resolution stops, and the final optimized mesh is obtained. Represents the surface of an optimized optical lens or mirror.

[0013] It can be seen from the technical solution provided by the present invention that the above method can control the light beam direction and light intensity distribution in a specified area, and optimize the surface shape of the optical lens or reflector according to the light source information, the position of the receiving plane and the target image, so that the light emitted from the light source can pass through the lens or reflector to present the target image on the receiving plane, thereby improving the accuracy of the optical device. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0015] Figure 1 A schematic flow chart of a surface optimization method for an optical lens or a reflector provided in an embodiment of the present invention;

[0016] Figure 2 A schematic diagram of the optical path of the lens system according to an embodiment of the present invention;

[0017] Figure 3 Schematic diagram of the optical path of the reflector system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, which does not constitute a limitation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] like Figure 1 The figure is a schematic flow chart of a surface optimization method for an optical lens or a reflector provided by an embodiment of the present invention, the method comprising:

[0020] Step 1: Given a unit lighting direction Target Image and receiving plane p, using the original mesh M0 to represent the surface of the optical lens or mirror to be optimized;

[0021] Step 2: Use the law of refraction or reflection to calculate the position t' of each basic geometric unit t in the original grid M0 on the receiving plane p, and then calculate the center position of t' The target image Treated as a continuous probability distribution μ, calculate the center position The semi-discrete optimal transmission problem between μ and μ is used to obtain the optimized position

[0022] In this step, if Figure 2 FIG. 1 is a schematic diagram of the optical path of the lens system according to an embodiment of the present invention. Figure 3 FIG. 1 is a schematic diagram of the optical path of the reflector system according to an embodiment of the present invention. Figure 2 It includes a light source with known luminous properties, a lens and a receiving plane; Figure 3 The invention comprises a light source with known light emission characteristics, a reflector and a receiving plane. The light emitted from the light source is refracted by a lens or reflected by a reflector in sequence, and finally reaches the receiving plane, and presents a pattern on the receiving plane.

[0023] First, use the law of refraction or reflection to determine the direction of the outgoing light using the following formula

[0024]

[0025] Here η is the refractive index of the lens, if it is a reflector, then η = 1; is the unit surface normal of the basic geometric unit t; Unit lighting direction;

[0026] Then intersect the outgoing light with the receiving plane p to get the intersection point t', and the average value of all vertices in t' is the center position

[0027] Central Location The semi-discrete optimal transport problem between and μ is equivalent to solving its dual problem, that is, optimizing the convex energy function:

[0028]

[0029] here, represents the energy function; Represents the weight vector to be optimized, that is, the variable in the optimization problem; are the position coordinates of the point being integrated; represents the integral over this position; Indicates the target image The light intensity at the location (pixel value brightness); n t Represents the number of basic geometric units t; is the ith cell in the weighted Voronoi diagram, that is:

[0030]

[0031] After the optimization is completed, For the weight, calculate each cell The weighted center of

[0032] Step 3: According to and The degree of alignment E align , the degree of change of the luminous flux Φ carried by the basic geometric unit t flux , the smoothness E of the original mesh M0 smooth and obstacle Ebarr Establish an optimization problem and optimize to obtain the deformed mesh M1;

[0033] In this step, and The degree of alignment E align Determined by the following formula:

[0034]

[0035] n t Represents the number of basic geometric units t;

[0036] The degree of change E of the luminous flux Φ carried by the basic geometric unit t flux Determined by the following formula:

[0037]

[0038] represents the luminous flux carried by the basic geometric unit t before optimization;

[0039] Obstacle E barr It consists of the following two parts:

[0040]

[0041] Here P(t i ) means to convert t i Projection onto the receiving plane;

[0042] represents the directed area;

[0043]

[0044] is a piecewise function used to prevent triangle flipping;

[0045] ∈2>∈1>0 are two constant thresholds;

[0046] f tir (t i ) is also a piecewise function, used to prevent total reflection, f tir (t i ) is determined by the following formula:

[0047]

[0048] Here η is the refractive index of the lens, if it is a reflector, then η = 1; is the i-th basic geometric unit t i The unit surface normal of ; is the unit light direction;

[0049] The smoothness E of the original mesh M0 smooth It consists of the following three parts:

[0050] E smooth =E face +τ1E edge +τ2E lap

[0051] Among them, E face is the average curvature of the surface; E edge is the curvature of the edge; E lap is the Laplace smoothing term of the vertex; τ1, T2 are constant parameters;

[0052] First, let the basic geometric unit t i The geometric center of Constructing auxiliary variables It represents its second fundamental form, and the mean curvature is represented by H i =(a i +b i ) / 2,a i 、b i 、c i is the optimization variable introduced; definition:

[0053]

[0054] Here A i Indicates t i area;

[0055] Then set Yes i A set of orthogonal bases of are two orthogonal basis functions; for each adjacent face t j ,set up Then the Weingarten matrix should be Map to consider:

[0056]

[0057] δ(t i , t j ) is used to measure the second basic type M i Next, t i and t j Continuity between

[0058] For each adjacent edge e ij , define h(e ij )=δ(t i , t j )+δ(t j, t i ), and then define Eedge as:

[0059]

[0060] ε i represents all adjacent edges e ij A collection of v is the Welsch function, defined as:

[0061] v is a custom constant parameter;

[0062] Last E lap Determined by the following formula:

[0063]

[0064] Here P U Represents the projection of the height field domain U; represents the set of all internal vertices j; represents the set of adjacent points of vertex j;

[0065] The final optimization problem is expressed as:

[0066] minγ1E align +γ2E flux +γ3E smooth +γ4E barr ,

[0067] Among them, γ1, ..., γ4 are user-defined constant parameters.

[0068] Step 4: recalculate the position t′ of all basic geometric units t on the receiving plane p in the deformed grid M1, and obtain the image g after superposition rendering;

[0069] In this step, the intersection area between t′ and each pixel grid is calculated, and the light flux carried by t′ is distributed to each pixel grid according to the intersection area. Finally, all the light fluxes of each pixel grid are superimposed, and then gamma inverse correction is performed to obtain the superimposed rendered image g, which is expressed as:

[0070]

[0071] Among them, Area(.) function represents area; pixel j Represents the jth pixel grid.

[0072] Step 5: The image g obtained in step 4 and the target image The image difference between img , image gradient difference E grad, penalty term E beyond the image boundary bdr , the smoothness E of the deformed mesh M1 smooth and obstacle E barr Establish an optimization problem and optimize the mesh M2 after secondary deformation;

[0073] In this step, the smoothness E of the deformed mesh M1 is smooth and obstacle E barr Same definition as in step 3;

[0074] Rendering image g and target image The image difference between img Determined by the following formula:

[0075]

[0076] n p is the number of images;

[0077] Image gradient difference E grad Determined by the following formula:

[0078]

[0079] Among them, G x,y and Represents the rendered image g and the target image respectively The gradient matrix of ; the subscript F represents the Frobenius norm of the matrix, referred to as F-norm;

[0080] Penalty term E beyond the image boundary bdr Determined by the following formula:

[0081]

[0082] here is t′ i The number of vertices, t′ i is the position of the ith basic geometric unit on the receiving plane p; is the kth vertex of the basic geometric unit; Indicates the internal distance of the imaging area nearest point;

[0083] The final optimization problem is expressed as:

[0084] minλ1E img +λ2E grad +λ3E bdr +λ4E smooth +λ5E barr ,

[0085] Among them, λ1, ..., λ5 are user-defined constant parameters.

[0086] Step 6: Replace the original mesh M0 with the mesh M2 after secondary deformation, and perform several iterations of M0-M1-M2. Through the strategy of coarse-to-fine, the mesh is gradually encrypted until the last iteration with the highest resolution stops, and the final optimized mesh is obtained. Represents the surface of an optimized optical lens or mirror.

[0087] This application introduces the piecewise smoothness constraint E in the geometric optimization process. smooth , making the designed surface easy to process and enabling the manufacture of optical devices that accurately reproduce the target image.

[0088] It is worth noting that the contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field.

[0089] In summary, the method described in the embodiment of the present invention has the following advantages:

[0090] 1) This application proposes an accurate differentiable rendering model based on light flux, without the need for complex ray tracing sampling;

[0091] 2) This application directly drives the optimization of the optical device surface by the difference between the rendering result and the target image, and introduces smoothness constraints that facilitate processing and manufacturing, so that an optical device that accurately reproduces the target image can be manufactured;

[0092] 3) This application adopts an iterative face-based optimal transmission initialization strategy, which helps to avoid local minima and achieve effective optimization;

[0093] 4) This application can be used to design art installations, LCD backlight panels, color sorter light sources, medical equipment, lighting fixtures, etc., and has important theoretical significance and practical application value in many fields such as photoelectric detection, optical processing, medicine, and architecture.

[0094] In addition, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.

[0095] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. The information disclosed in the background technology section of this article is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as an admission or in any form that the information constitutes prior art known to those skilled in the art.

Claims

1. A surface optimization method for an optical lens or a reflector, characterized in that: The method comprises: Step 1: Given a unit lighting direction Target Image and receiving plane p, using the original mesh M0 to represent the surface of the optical lens or mirror to be optimized; Step 2: Use the law of refraction or reflection to calculate the position t′ of each basic geometric unit t in the original grid M0 on the receiving plane p, and then calculate the center position of t′ The target image Treated as a continuous probability distribution μ, calculate the center position The semi-discrete optimal transmission problem between μ and μ is used to obtain the optimized position Step 3: According to and The degree of alignment E align , the degree of change of the luminous flux Φ carried by the basic geometric unit t flux , the smoothness E of the original mesh M0 smooth and obstacle E barr Establish an optimization problem and optimize to obtain the deformed mesh M1; Step 4: recalculate the position t′ of all basic geometric units t on the receiving plane p in the deformed grid M1, and obtain the image g after superposition rendering; Step 5: The image g obtained in step 4 and the target image The image difference between img , image gradient difference E grad , penalty term E beyond the image boundary bdr , the smoothness E of the deformed mesh M1 smooth and obstacle E barr Establish an optimization problem and optimize the mesh M2 after secondary deformation; Step 6: Replace the original mesh M0 with the mesh M2 after secondary deformation, and perform several iterations of M0-M1-M2. Through the strategy of coarse-to-fine, the mesh is gradually encrypted until the last iteration with the highest resolution stops, and the final optimized mesh is obtained. Represents the surface of an optimized optical lens or mirror.

2. The surface optimization method of an optical lens or a reflector according to claim 1, characterized in that: In step 2, the direction of the outgoing light is first determined by the following formula using the law of refraction or reflection: Here η is the refractive index of the lens, if it is a reflector, then η = 1; is the unit surface normal of the basic geometric unit t; Unit lighting direction; Then intersect the outgoing light with the receiving plane p to get the intersection point t', and the average value of all vertices in t' is the center position Central location The semi-discrete optimal transport problem between and μ is equivalent to solving its dual problem, that is, optimizing the convex energy function: here, represents the energy function; Represents the weight vector to be optimized, that is, the variable in the optimization problem; are the position coordinates of the point being integrated; represents the integral over this position; Indicates the target image The light intensity at the location; n t Represents the number of basic geometric units t; is the i-th cell in the weighted Voronoi diagram, that is: After the optimization is completed, For the weight, calculate each cell The weighted center of 3. The surface optimization method of an optical lens or a reflector according to claim 1, characterized in that: In step 3, and The degree of alignment E align Determined by the following formula: n t Represents the number of basic geometric units t; The degree of change E of the luminous flux Φ carried by the basic geometric unit t flux Determined by the following formula: represents the luminous flux carried by the basic geometric unit t before optimization; Obstacle E barr It consists of the following two parts composition: Here P(t i ) means to convert t i Projection onto the receiving plane; represents the directed area; is a piecewise function used to prevent triangle flipping; ∈2>∈1>0 are two constant thresholds; f tir (t i ) is also a piecewise function, used to prevent total reflection, f tir (t i ) is determined by the following formula: Here η is the refractive index of the lens, if it is a reflector, then η = 1; is the i-th basic geometric unit t i The unit surface normal of ; is the unit light direction; The smoothness E of the original mesh M0 smooth It consists of the following three parts: E smooth =E face +τ1E edge +τ2E lap Among them, E face is the average curvature of the surface; E edge is the curvature of the edge; E lap is the Laplace smoothing term of the vertex; τ1, τ2 are constant parameters; First, let the basic geometric unit t i The geometric center of Constructing auxiliary variables It represents its second fundamental form, and the mean curvature is represented by H i =(a i +b i ) / 2,a i 、b i 、c i is the optimization variable introduced; definition: Here A i Indicates t i area; Then set Yes i A set of orthogonal bases of are two orthogonal basis functions; for each adjacent face t j ,set up Then the Weingarten matrix should be Map to consider: δ(t i , t j ) is used to measure the second basic type M i Next, t i and t j Continuity between For each adjacent edge e ij , define h(e ij )=δ(t i ,t j )+δ(t j ,t i ), and then define E edge for: ε I represents all adjacent edges e ij A collection of v is the Welsch function, defined as: v is a custom constant parameter; Last E lap Determined by the following formula: Here P U Represents the projection of the height field domain U; represents the set of all internal vertices j; represents the set of adjacent points of vertex j; The final optimization problem is expressed as: min γ1E align +γ2E flux +γ3E smooth +γ4E barr , Among them, γ1, …, γ4 are user-defined constant parameters.

4. The surface optimization method of an optical lens or a reflector according to claim 1, characterized in that: In step 4, the intersection area between t′ and each pixel grid is calculated, and the light flux carried by t′ is distributed to each pixel grid according to the intersection area. Finally, all the light fluxes of each pixel grid are superimposed, and then gamma inverse correction is performed to obtain the superimposed rendered image g, which is expressed as: Among them, Area(·) function represents area; pixel j Represents the jth pixel grid.

5. The surface optimization method of an optical lens or a reflector according to claim 1, characterized in that: In step 5, the smoothness E of the deformed mesh M1 is smooth and obstacle E barr Same definition as in step 3; Rendering image g and target image The image difference between img Determined by the following formula: n p is the number of images; Image gradient difference E grad Determined by the following formula: Among them, G x,y and Represents the rendered image g and the target image respectively The gradient matrix of ; the subscript F represents the Frobenius norm of the matrix, referred to as F-norm; Beyond the image boundary penalty E bdr Determined by the following formula: here is t′ i The number of vertices; t′ i is the position of the ith basic geometric unit on the receiving plane p; is the kth vertex of the basic geometric unit; Indicates the internal distance of the imaging area nearest point; The final optimization problem is expressed as: min λ1E img +λ2E grad +λ3E bdr +λ4E smooth +λ5E barr , Among them, λ1,...,λ5 are user-defined constant parameters.

Citation Information

Patent Citations

  • Reflector design method based on optimal transmission

    CN111856747A

  • Training method of neural network for detecting smoothness of steel bar surface

    CN112734016A

  • Reconstruction model geometry and texture optimization method based on adaptive mesh subdivision

    CN116863101A

  • Lens for uniformizing light beams and array thereof

    CN117872583A

  • Methods and Systems for Freeform Irradiance Tailoring for Light Fields

    US20200240611A1

Cited By

  • Surface optimization method for optical lens or reflector

    WO2026036621A1