nabu.reconstruction.rings module

class nabu.reconstruction.rings.MunchDeringer(sigma, sinos_shape, levels=None, wname='db15', padding=None, padding_mode='edge')[source]

Bases: object

Initialize a “Munch Et Al” sinogram deringer. See References for more information.

Parameters:
  • sigma (float) – Standard deviation of the damping parameter. The higher value of sigma, the more important the filtering effect on the rings.

  • levels (int, optional) – Number of wavelets decomposition levels. By default (None), the maximum number of decomposition levels is used.

  • wname (str, optional) – Default is “db15” (Daubechies, 15 vanishing moments)

  • sinos_shape (tuple, optional) – Shape of the sinogram (or sinograms stack).

  • padding (tuple of two int, optional) – Horizontal padding to use for reducing the aliasing artefacts

References

B. Munch, P. Trtik, F. Marone, M. Stampanoni, Stripe and ring artifact removal with combined wavelet-Fourier filtering, Optics Express 17(10):8567-8591, 2009.

remove_rings(sinos, output=None)[source]

Main function to performs rings artefacts removal on sinogram(s). CAUTION: this function defaults to in-place processing, meaning that the sinogram(s) you pass will be overwritten.

Parameters:
  • sinos (numpy.ndarray) – Sinogram or stack of sinograms.

  • output (numpy.ndarray, optional) – Output array. If set to None (default), the output overwrites the input.