prtools.zernike_remove#

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) – Binary mask defining the extent to compute the Zernike basis over.

  • 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.

Return type:

ndarray

See also

zernike_fit()

References

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