Astigmatism#

class deeptrack.aberrations.Astigmatism(*args: tuple[Any, ...], coefficient: PropertyLike[float | list[float]] = 1, **kwargs: dict[str, Any])#

Bases: Zernike

Zernike polynomial with n=2, m=2.

This class represents the Zernike polynomial for astigmatism aberration, characterized by a radial index of n=2 and an azimuthal index of m=2. It describes phase aberrations that result in elliptical distortions in the optical system.

Parameters#

coefficient: PropertyLike[float or list of floats], optional

The coefficient of the polynomial. Default is 1.

Attributes#

n: int

The radial index of the Zernike polynomial (always 2 for Astigmatism).

m: int

The azimuthal index of the Zernike polynomial (always 2 for Astigmatism).

coefficient: PropertyLike[float or list of floats]

The coefficient of the polynomial.

Examples#

Apply an Astigmatism Zernike phase aberration (n=2, m=2) to a simulated fluorescence image:

>>> import deeptrack as dt
>>> particle = dt.PointParticle(z=1 * dt.units.micrometer)
>>> astigmatism_aberration = dt.Astigmatism(coefficient=0.75)
>>> aberrated_optics = dt.Fluorescence(
>>>     pupil=astigmatism_aberration,
>>> )
>>> aberrated_particle = aberrated_optics(particle)
>>> aberrated_particle.plot(cmap="gray")