loupe.zernike_coordinates#

loupe.zernike_coordinates(mask, shift=None, rotate=0)[source]#

Compute the Zernike coordinate system for a given mask.

Parameters:
  • mask (array_like) – Binary mask defining the extent to compute the Zernike polynomial over.

  • shift ((2,) array_like or None, optional) – x, y shift of the coordinate system origin in pixels. If None (default), shift is computed automatically to locate the origin at the mask centroid.

  • rotate (float, optional) – Angle to rotate coordinate system by in degrees. rotate is specified relative to the x-axis. Default is 0.