lentil.zernike_remove

lentil.zernike_remove(opd, mask, modes, rho=None, theta=None)[source]

Fit and remove a Zernike basis set from an OPD.

Parameters
  • opd (array_like) – OPD to fit.

  • mask (array_like) – Mask defining the extent to compute the Zernike polynomial over. All nonzero entries are included in the result.

  • modes (array_like) – List of modes (Noll ordering) to remove.

  • rho (array_like, optional) – Radial coordinates of the mask array. rho should be 0 at the origin and 1 at the edge of the circle.

  • theta (array_like, optional) – Angular coordinates of the mask array in radians.

Returns

Residual OPD after the specified Zernike modes have been fit and removed.

Return type

ndarray

See also

zernike_fit()

References

[1] Noll, RJ. Zernike polynomials and atmospheric turbulence. J Opt Soc Am 66, 207-211 (1976).