slmsuite.holography.analysis.image_remove_blaze#

image_remove_blaze(phase_image, mask=None, plot=False)[source]#

Remove a global blaze from a phase image.

Parameters:
  • phase_image (np.ndarray) – The phase image to have the blaze removed.

  • mask (np.ndarray OR None) – If provided, the mask will weight the significance of the blaze. This can be the amplitude image, such that the blaze removal is more effective in brighter regions.

  • plot (bool) – Whether to enable debug plots.

Returns:

A phase image with the blaze removal applied.

Return type:

np.ndarray