HorizontalTilt#

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

Bases: Zernike

Zernike polynomial with n=1, m=1.

This class represents a Zernike polynomial corresponding to a horizontal tilt aberration. It introduces a linear phase variation across the aperture aligned with the horizontal axis.

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 1 for HorizontalTilt).

m: int

The azimuthal index of the Zernike polynomial (always 1 for HorizontalTilt).

coefficient: PropertyLike[float or list of floats]

The coefficient of the polynomial.

Examples#

Apply a HorizontalTilt Zernike phase aberration (n=1, m=1) to a simulated fluorescence image:

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