主要内容

光学系统设计与分析

光学设计和仿真、射线追踪、光斑图、像差、镜头畸变和场曲分析

使用 Optical Design and Simulation Library for Image Processing Toolbox™ 设计和仿真光学系统。该库使您能够创建自定义光学设计,使用来自综合材料库的块状玻璃和镀膜材料,导入块状材料,以及创建自定义光学材料和镀膜。该库提供可视化工具以在二维和三维中可视化光学设计。此外,您还可以通过从 ZMX 文件导入系统来与现有光学设计集成。

您可以通过跟踪射线、执行偏振分析、计算光斑图、分析像差、镜头畸变和场曲来评估光学系统。然后您可以可视化结果。此外,您也可以使用 Optimization Toolbox™ 中提供的优化工具来优化光学系统和光学镀膜。

光学系统设计器为光学系统设计提供交互式界面。您可以使用该 App 设计自定义光学系统,仿真从 ZMX 文件导入的光学系统,并以交互方式可视化跟踪的射线、光斑图、像差、畸变、场曲和其他分析。

要开始使用 Optical Design and Simulation Library for Image Processing Toolbox,请参阅Get Started with Optical Design and Simulation

您可以从附加功能资源管理器安装 Optical Design and Simulation Library for Image Processing Toolbox。有关安装附加功能的详细信息,请参阅获取和管理附加功能

Double Gauss lens system visualized in 2-D (top) and 3-D (bottom) using the Optical Design and Simulation Library.

App

光学系统设计器Design and analyze optical systems (自 R2026a 起)

函数

全部展开

创建和操作系统组件

opticalSystemModel components of optical system (自 R2026a 起)
addDiaphragmAdd physical diaphragm component to optical system (自 R2026a 起)
addImagePlaneAdd image plane component to optical system (自 R2026a 起)
addMirrorAdd mirror component to optical system (自 R2026a 起)
addRefractiveSurfaceAdd refractive surface component to optical system (自 R2026a 起)
addGapAdd gap between optical components (自 R2026a 起)
addAdd optical component to optical system (自 R2026a 起)
changeGapChange gap between components in optical system (自 R2026a 起)
distanceAfterQuery distance after optical component (自 R2026a 起)
distanceBeforeQuery distance before optical component (自 R2026a 起)
insertInsert optical component into optical system (自 R2026a 起)
removeRemove component from optical system (自 R2026a 起)
resolveMaterialsResolve component materials in optical system against glass library (自 R2026a 起)
setConstructionFrameSet coordinate break for all subsequent components in optical system (自 R2026a 起)

调节光学系统

focusPosition image plane of optical system to minimize RMS spot size (自 R2026a 起)
updateSemiDiametersUpdate semi-diameters of surfaces in optical system (自 R2026a 起)
zmxinfoRead metadata of ZMX file (自 R2026a 起)
zmximportImport optical system from ZMX file (自 R2026a 起)

二维可视化

view2dVisualize optical system in 2-D (自 R2026a 起)
OpticalSystemViewer2DCustomize 2-D visualization of optical system (自 R2026a 起)

三维可视化

view3dVisualize optical system in 3-D (自 R2026a 起)
OpticalSystemViewer3DCustomize 3-D visualization of optical system (自 R2026a 起)

射线追踪

fieldPointCreate field point representation of light source (自 R2026a 起)
samplingGridCreate ray sampling grid for entrance surface of optical system (自 R2026a 起)
traceChiefRayTrace chief ray through optical system (自 R2026a 起)
traceMarginalRaysTrace marginal rays through optical system (自 R2026a 起)
traceRaysPerform ray tracing through optical system (自 R2026a 起)

光学系统设定

halfFieldOfViewCompute half field of view of optical system (自 R2026a 起)
paraxialInfoCompute paraxial information, including cardinal points, for optical system (自 R2026a 起)

图像质量和像差分析

chromaticAberrationCompute lateral and longitudinal chromatic aberration of optical system (自 R2026a 起)
fieldCurvatureCompute tangential and sagittal field curvature (自 R2026a 起)
lensDistortionCompute geometric lens distortion for optical system (自 R2026a 起)
rayAberrationCompute tangential and sagittal ray aberration of optical system (自 R2026a 起)
spotCompute spot at which rays converge in image plane (自 R2026a 起)

分析可视化

spotDiagramChart displaying spot diagram of optical system (自 R2026a 起)
showPlot analysis result (自 R2026a 起)

管理镜片库

glassLibraryGlass material library for optical system components (自 R2026a 起)
changePriorityChange priority of glass material catalog in glass library (自 R2026a 起)
addGlassCatalogAdd new glass catalog to glass library (自 R2026a 起)
removeGlassCatalogRemove glass material catalog from glass library (自 R2026a 起)
restoreDefaultGlassLibraryRestore glass library to default settings (自 R2026a 起)

选择和使用玻璃材料

pickGlassPick named glass material from glass library (自 R2026a 起)
searchGlassLibrarySearch glass library for glass material (自 R2026a 起)
refractiveIndexCompute complex refractive index for optical material (自 R2026a 起)
resolveMaterialsResolve component materials in optical system against glass library (自 R2026a 起)
opticalMaterialPickerOptical material picker UI component (自 R2026a 起)

创建自定义玻璃材料

opticalMaterialCreate optical material (自 R2026a 起)
refractiveIndexCompute complex refractive index for optical material (自 R2026a 起)

选择镀膜材料

pickCoatingMaterialPick optical coating material from coating material library (自 R2026a 起)
coatingMaterialLibraryOptical coating material library (自 R2026a 起)
addCoatingMaterialAdd new optical coating material to optical coating material library (自 R2026a 起)
removeCoatingMaterialRemove optical coating material from optical coating material library (自 R2026a 起)
restoreDefaultCoatingMaterialLibraryRestore optical coating material library to default (自 R2026a 起)

创建自定义镀膜材料

opticalMaterialCreate optical material (自 R2026a 起)

设计和应用光学镀膜

opticalCoatingCreate optical coating for optical system surfaces (自 R2026a 起)
fresnelCoefficientsCompute Fresnel coefficients for optical coating (自 R2026a 起)
addCoatingAdd optical coating to lens surfaces in optical system (自 R2026a 起)
removeCoatingRemove optical coatings from lens surfaces in optical system (自 R2026a 起)
opticalCoatingEditorOptical coating editor UI component (自 R2026a 起)

管理光学镀膜库

coatingLibraryOptical coating library for optical system components (自 R2026a 起)
addCoatingAdd optical coating to optical coating library (自 R2026a 起)
removeCoatingRemove optical coating from optical coating library (自 R2026a 起)
restoreDefaultCoatingLibraryRestore coating library to default (自 R2026a 起)

浏览光学镀膜

pickCoatingPick optical coating from optical coating library (自 R2026a 起)
opticalCoatingPickerOptical coating picker UI component (自 R2026a 起)

主题

快速入门

光学系统分析

光学镀膜

精选示例