preprocessing¶
nrxrdct.xrdct.preprocessing ¶
Preprocessing routines for XRD-CT detector images.
Zinger removal has moved to :mod:nrxrdct.utils. This module re-exports the
public API for backwards compatibility.
dezinger ¶
Apply zinger removal to a stack of detector images in parallel.
Each frame is processed independently via :func:zinger_remove using a
thread pool sized to os.cpu_count() - 1.
| Parameters: |
|
|---|
| Returns: |
|
|---|
Source code in src/nrxrdct/utils.py
zinger_remove ¶
Remove zingers (hot pixels) from a single 2-D detector image.
Pixels whose deviation from the local median exceeds nsigma standard
deviations (computed over the whole residual image) are replaced by the
median-filtered value. The replacement region is dilated by one pixel to
catch ringing artefacts around bright zingers.
| Parameters: |
|
|---|
| Returns: |
|
|---|