renderChart
R2026bSyntax
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
specifies options for rendering the chart using one or more name-value arguments in
addition to any combination of input arguments from previous syntaxes. For example,
chart = renderChart(opsys,___,Name=Value)Distance=500 specifies the distance from the optical system origin
to the chart center as 500 millimeters.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Limitations
The rendered chart does not include diffraction effects.
If the
andTiltAnglePositionvalues of theopticalSystemobjectopsysare not all zeros, therenderChartfunction renders the chart taking these positions and tilts into account. Measurements resulting from these renders might not be accurate.
Tips
Rendering simulated test charts can be computationally intensive, and CPU run times can take several minutes. Computation speed depends on your system hardware and rendering settings.
For the fastest computation speeds, use a GPU. Using a GPU requires Parallel Computing Toolbox and a CUDA-enabled NVIDIA GPU. If Parallel Computing Toolbox or a suitable GPU is not available, then the function returns an error. For information about the supported compute capabilities, see GPU Computing Requirements (Parallel Computing Toolbox).
Systems with more CPU cores generally render faster.
Higher
MaxSampleVariancevalues reduce rendering run time but can introduce noise in the rendered output.Higher image sensor resolution increases rendering run time.
Rendering through optical systems with more surfaces and coatings requires longer run time.
Enabling polarization increases run time. To enable polarization effects, specify the
Polarizationargument astrueor1.
Version History
Introduced in R2026b
