fishtank.filters.deconwolf

Contents

fishtank.filters.deconwolf#

fishtank.filters.deconwolf(img, colors, z_step=0.6, iter=100, gpu=False, tilesize=None)#

Deconwolf deconvolution.

Parameters:
  • img (ndarray) – A (Z,X,Y) or (C,Z,X,Y) image.

  • colors (list | ndarray | int) – A list of channel colors. Must be the same length as the number of channels in the image.

  • z_step (float (default: 0.6)) – Z step size in microns.

  • iter (int (default: 100)) – Number of iterations.

  • gpu (bool (default: False)) – Wjether to use the GPU.

  • tilesize (Optional[int] (default: None)) – Size of tiles. If None, no tiling is used.

Return type:

ndarray

Returns:

filtered a numpy array of the same shape and dtype as the input image.