You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: httomolibgpu/prep/phase.py
+7-24Lines changed: 7 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -49,14 +49,12 @@
49
49
# This implementation originated from the TomoPy version. It has been modified to conform
50
50
# different unit standards and also control of the filter driven by 'delta/beta' ratio
51
51
# as opposed to 'alpha' in the TomoPy implementation.
52
-
# The generalised formulation for Paganin is also added.
53
52
defpaganin_filter(
54
53
tomo: cp.ndarray,
55
54
pixel_size: float=1.28,
56
55
distance: float=1.0,
57
56
energy: float=53.0,
58
57
ratio_delta_beta: float=250,
59
-
generalised_paganin: bool=False,
60
58
) ->cp.ndarray:
61
59
"""
62
60
Perform single-material phase retrieval from flats/darks corrected tomographic measurements. See
@@ -74,8 +72,6 @@ def paganin_filter(
74
72
Beam energy in keV.
75
73
ratio_delta_beta : float
76
74
The ratio of delta/beta, where delta is the phase shift and real part of the complex material refractive index :math:`n = (1 - \delta) + i \beta` and beta is the absorption.
77
-
generalised_paganin : bool
78
-
Implementation of the filter following a newer generalised formulation for Paganin. This can further boost the resolution through periodic boundary conditions.
0 commit comments