prtools.zernike_coordinates#

zernike_coordinates(mask, shift=None, angle=0, indexing='ij')[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, optional) – How far to shift center in float (rows, cols). If None (default), shift is computed automatically to locate the origin at the mask centroid.

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

  • indexing ({'ij', 'xy'}, optional) – Matrix (‘ij’, default) or cartesian (‘xy’) indexing of output.

Returns:

rho, theta

Return type:

ndarrays