LensElement
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
A LensElement object specifies the properties of a lens element
in an optical system, such as its shape, position, and angular orientation. Add two or more
refractive surfaces to an optical system using the addRefractiveSurface object function, which creates a
LensElement object.
Properties
Name of the lens element, specified as a scalar or character vector.
Refractive surfaces in the lens element, specified as an
N-element row vector of Surface
objects. N is the number of surfaces in the lens element. You can add
Surface objects to an optical system by using the addRefractiveSurface object function. By default, all surfaces are
planar.
Thickness of the lens element, specified as one of these options:
Non-negative numeric scalar – For a lens element with two refractive surfaces (a singlet), specify the thickness as a scalar value representing the distance between the first and second surface.
(N-1)-element numeric vector – For a lens element with N refractive surfaces, where N is greater than 2, specify each element of the vector as the distance between consecutive surfaces, in the order they appear along the optical axis. For example, for a triplet lens element with three surfaces, set
Thickness = [2.5 1.8], where 2.5 and 1.8 are the distances between the first and second surfaces, and the second and third surfaces, respectively.
By default, the thickness between each pair of consecutive surfaces in a lens
element is 1. Units are in millimeters.
Optical material of the refractive surfaces in the lens element, specified as one of these options.
opticalMaterialobject – Specify a single optical material to the entire lens element.(N-1)-element vector of
opticalMaterialobjects – Specify a material to the refractive region between each pair of consecutive surfaces, allowing for compound or cemented elements with different materials. N is the number of surfaces in the lens element, where N is greater than 2.String scalar or character vector – Specify the name of a material from the glass library,
glassLibrary, or the coating material library,coatingMaterialLibrary, to assign the material to the entire lens element. For example, specifyMaterialas"N-BK7"to set the N-BK7 glass as the material of the lens element.
By default, the lens material is defined as opticalMaterial(Name="Glass",
RefractiveIndexParameter=[1.5, 50]).
Optical coatings applied to the lens element, specified as one of these options.
opticalCoatingobject – Apply a single coating to the front, first surface of the lens element.2-element row vector of
opticalCoatingobjects – Apply coatings to both the front and back surfaces. You apply the first element to the front surface, and the second element to the back of the last surface. Each coating is oriented such that its substrate side is adjacent to the lens surface.N-element row vector of
opticalCoatingobjects – For a lens element with N surfaces, apply the first N coatings to the front of each corresponding surface, and the Nth coating to the back of the last surface.
By default, the lens element is uncoated.
Shape of the lens surface, specified as one of these options.
object — Circular surface shape.Circularobject — Rectangular surface shape.Rectangular
By default, the shape of the lens surface is circular, with a semi-diameter of
1.
Position of the first vertex of the lens element, specified as a 3-element row vector. The vector is in the form [x y z], where each element is the optical system x-, y-, and z-coordinate.
To learn more about optical coordinate systems, see Coordinate Systems in Optical Design.
Tilt angles of the lens element, specified as a 3-element row vector. The vector is in the form [ ], where , , and are tilt angles with respect to the optical system x, y, and z-axes, respectively.
To learn more about optical coordinate systems, see Coordinate Systems in Optical Design.
Note
The TiltAngles property represents Euler angles. If you
specify angles that are multiples of 90 degrees, visually verify the orientation of
the optical system. Gimbal lock can occur, in which two of the three rotational axes
become aligned. This alignment results in the loss of one degree of freedom, and can
lead to ambiguous or unintended orientations.
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)