slmsuite.holography.toolbox.phase.zernike
- zernike(grid, n, m, aperture=None)[source]
Returns a single real Zernike polynomial.
- Parameters
grid ((array_like, array_like) OR
SLM
) – Meshgrids of normalized \(\frac{x}{\lambda}\) coordinates corresponding to SLM pixels, in(x_grid, y_grid)
form. These are precalculated and stored in anySLM
, so such a class can be passed instead of the grids directly.n (int) – Cartesian Zernike index defining the polynomial.
m (int) – Cartesian Zernike index defining the polynomial.
aperture ({"circular", "elliptical", "cropped"} OR (float, float) OR None) – See
zernike_sum()
.
- Returns
The phase for this function.
- Return type
numpy.ndarray