lentil.circlemask

lentil.circlemask(shape, radius, shift=(0, 0))[source]

Compute a circular mask.

Parameters
  • shape (array_like) – Size of output in pixels (nrows, ncols)

  • radius (float) – Radius of circle in pixels

  • shift (array_like, optional) – How far to shift center in float (rows, cols). Default is (0, 0).

Returns

mask

Return type

ndarray