locan.visualize.render_mpl.render2d.apply_window#

locan.visualize.render_mpl.render2d.apply_window(image, window_function='tukey', **kwargs)[source]#

Apply window function to image.

Parameters:
  • image (Union[_SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]]) – Image

  • window_function (str) – Window function to apply. One of ‘tukey’, ‘hann’ or any other in scipy.signal.windows.

  • kwargs (Any) – Other parameters passed to the scipy.signal.windows window function.

Return type:

ndarray[Any, dtype[float64]]