主要内容

RayAberration

Ray aberration analysis result

Since R2026a

    Description

    Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.

    A RayAberration object stores a transverse ray aberration analysis result that contains tangential and sagittal aberration values. To display a 2-D visualization of the transverse ray aberration, use the show object function.

    Creation

    Create a RayAberration object when you perform ray aberration analysis for an optical system using the rayAberration object function.

    Properties

    expand all

    This property is read-only.

    Tangential ray aberration result, represented as a structure with these fields.

    Field NameField Value

    PupilCoordinates

    N-by-1 vector, where each element represents a normalized y-coordinate at which the ray fan is computed in the entrance pupil plane. N is the number of evenly spaced points, specified using the NumSamples name-value argument of the rayAberration function.

    Aberration

    N-by-M numeric matrix, where each element represents the tangential aberration value. N is the number of evenly spaced points. specified using the NumSamples name-value argument of rayAberration, and M is the number of wavelengths, specified using the Wavelengths name-value argument of rayAberration.

    This property is read-only.

    Sagittal ray aberration result, represented as a structure with these fields.

    Field NameField Value

    PupilCoordinates

    N-by-1 vector, where each element represents a normalized x-coordinate at which the ray fan is computed in the entrance pupil plane. N is the number of evenly spaced points, specified using the NumSamples name-value argument of the rayAberration function.

    Aberration

    N-by-M numeric matrix, where each element represents the sagittal aberration value. N is the number of evenly spaced points, specified using the NumSamples name-value argument of rayAberration, and M is the number of wavelengths, specified using the Wavelengths name-value argument of rayAberration.

    This property is read-only.

    Field point representation of the light source for which to compute ray aberration, represented as a FieldAngle object or a FieldPosition object.

    FieldPoint valueField Point Type

    FieldAngle object

    Field point represents a light source that is at an infinite distance.

    FieldPosition object

    Field point represents a light source that is at a finite distance.

    To set this property, use the FieldPoint name-value argument of the rayAberration function. To learn more about creating field points, see Create Field Points.

    This property is read-only.

    Wavelengths for which the ray aberration is computed, represented as an M-element numeric vector. M is the number of wavelengths specified using the Wavelengths name-value argument of the rayAberration function.

    This property is read-only.

    Index of the reference wavelength at which to compute the ray aberration and paraxial scale, represented as a positive integer. To set this property, use the ReferenceWavelengthIndex name-value argument of the rayAberration function.

    Object Functions

    showPlot analysis result

    Version History

    Introduced in R2026a