Contenido principal

Optical System Design and Analysis

Optical design and simulation, ray tracing, spot diagrams, aberrations, lens distortion, and field curvature analysis

Design and simulate optical systems using the Optical Design and Simulation Library for Image Processing Toolbox™. The library enables you to create custom optical designs, use bulk glass and coating materials from comprehensive material libraries, import bulk materials, and create custom optical materials and coatings. The library provides visualization tools to visualize optical designs in 2-D and 3-D. Additionally, you can integrate with existing optical designs by importing systems from ZMX files.

You can evaluate optical systems by tracing rays, performing polarization analysis, computing spot diagrams, analyzing aberrations, lens distortion, and field curvature. You can then visualize the results. Additionally, you can optimize optical systems and optical coatings using optimization tools available in the Optimization Toolbox™.

The Optical System Designer app provides an interactive interface for optical system design. You can use the app to design custom optical systems, simulate imported optical systems from ZMX files, and interactively visualize traced rays, spot diagrams, aberrations, distortions, field curvature, and other analysis.

To get started with the Optical Design and Simulation Library for Image Processing Toolbox, see Get Started with Optical Design and Simulation.

You can install the Optical Design and Simulation Library for Image Processing Toolbox from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

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

Apps

Optical System DesignerDesign and analyze optical systems (Since R2026a)

Functions

expand all

Create and Manipulate System Components

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

Tune Optical Systems

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

2-D Visualization

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

3-D Visualization

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

Ray Tracing

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

Optical System Specifications

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

Image Quality and Aberration Analysis

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

Analysis Visualization

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

Manage Glass Library

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

Select and Use Glass Materials

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

Create Custom Glass Materials

opticalMaterialCreate optical material (Since R2026a)
refractiveIndexCompute complex refractive index for optical material (Since R2026a)

Select Coating Materials

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

Create Custom Coating Materials

opticalMaterialCreate optical material (Since R2026a)

Design and Apply Optical Coatings

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

Manage Optical Coating Library

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

Browse Optical Coatings

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

Topics

Get Started

Optical System Analysis

Optical Coatings

Featured Examples