tomopy.prep.stripe
¶
Module for pre-processing tasks.
Functions:
remove_stripe_fw (tomo[, level, wname, …]) |
Remove horizontal stripes from sinogram using the Fourier-Wavelet (FW) based method [C4]. |
remove_stripe_ti (tomo[, nblock, alpha, …]) |
Remove horizontal stripes from sinogram using Titarenko’s approach [C11]. |
remove_stripe_sf (tomo[, size, ncore, nchunk]) |
Normalize raw projection data using a smoothing filter approach. |
-
tomopy.prep.stripe.
remove_stripe_fw
(tomo, level=None, wname=u'db5', sigma=2, pad=True, ncore=None, nchunk=None)[source]¶ Remove horizontal stripes from sinogram using the Fourier-Wavelet (FW) based method [C4].
Parameters: - tomo (ndarray) – 3D tomographic data.
- level (int, optional) – Number of discrete wavelet transform levels.
- wname (str, optional) – Type of the wavelet filter. ‘haar’, ‘db5’, sym5’, etc.
- sigma (float, optional) – Damping parameter in Fourier space.
- pad (bool, optional) – If True, extend the size of the sinogram by padding with zeros.
- ncore (int, optional) – Number of cores that will be assigned to jobs.
- nchunk (int, optional) – Chunk size for each core.
Returns: ndarray – Corrected 3D tomographic data.
-
tomopy.prep.stripe.
remove_stripe_ti
(tomo, nblock=0, alpha=1.5, ncore=None, nchunk=None)[source]¶ Remove horizontal stripes from sinogram using Titarenko’s approach [C11].
Parameters: - tomo (ndarray) – 3D tomographic data.
- nblock (int, optional) – Number of blocks.
- alpha (int, optional) – Damping factor.
- ncore (int, optional) – Number of cores that will be assigned to jobs.
- nchunk (int, optional) – Chunk size for each core.
Returns: ndarray – Corrected 3D tomographic data.
-
tomopy.prep.stripe.
remove_stripe_sf
(tomo, size=5, ncore=None, nchunk=None)[source]¶ Normalize raw projection data using a smoothing filter approach.
Parameters: - tomo (ndarray) – 3D tomographic data.
- size (int, optional) – Size of the smoothing filter.
- ncore (int, optional) – Number of cores that will be assigned to jobs.
- nchunk (int, optional) – Chunk size for each core.
Returns: ndarray – Corrected 3D tomographic data.