make_gaussian_mask

make_gaussian_mask#

ptyrad.utils.math_ops.make_gaussian_mask(Npix, radius, std, center=None)[source]#

Create a 2D Gaussian-blurred circular mask.

Parameters:
  • Npix (int) – Size of the square mask (Npix x Npix).

  • radius (float) – Radius of the circular mask.

  • std (float) – Standard deviation of the Gaussian blur.

  • center (tuple) – (y, x) coordinates of the center of the circle.

Returns:

A 2D Gaussian-blurred circular mask.

Return type:

np.ndarray