We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1c15f commit c4fd8ccCopy full SHA for c4fd8cc
httomolibgpu/prep/phase.py
@@ -317,10 +317,11 @@ def paganin_filter_tomopy(
317
phase_filter = fftshift(_paganin_filter_factor2(energy, dist, alpha, w2))
318
phase_filter = phase_filter / phase_filter.max() # normalisation
319
320
+ # Filter projections
321
+ fft_tomo *= phase_filter
322
+
323
# Apply filter and take inverse FFT
- ifft_filtered_tomo = (
- ifft2(phase_filter * fft_tomo, axes=(-2, -1), overwrite_x=True)
- ).real
324
+ ifft_filtered_tomo = ifft2(fft_tomo, axes=(-2, -1), overwrite_x=True).real
325
326
# slicing indices for cropping
327
slc_indices = (
0 commit comments