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[_Buffer,_SupportsArray[dtype[Any]],_NestedSequence[_SupportsArray[dtype[Any]]],bool,int,float,complex,str,bytes,_NestedSequence[bool|int|float|complex|str|bytes]]) – Imagewindow_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[tuple[int,...],dtype[float64]]