httomolibgpu.prep.normalize
#
Modules for raw projection data normalization
- httomolibgpu.prep.normalize.normalize(data: <cp.ndarray>, flats: <cp.ndarray>, darks: <cp.ndarray>, cutoff: float = 10.0, minus_log: bool = True, nonnegativity: bool = False, remove_nans: bool = False) <cp.ndarray> [source]#
Normalize raw projection data using the flat and dark field projections. This is a raw CUDA kernel implementation with CuPy wrappers.
- Parameters
data (cp.ndarray) – Projection data as a CuPy array.
flats (cp.ndarray) – 3D flat field data as a CuPy array.
darks (cp.ndarray) – 3D dark field data as a CuPy array.
cutoff (float, optional) – Permitted maximum value for the normalised data.
minus_log (bool, optional) – Apply negative log to the normalised data.
nonnegativity (bool, optional) – Remove negative values in the normalised data.
remove_nans (bool, optional) – Remove NaN and Inf values in the normalised data.
- Returns
Normalised 3D tomographic data as a CuPy array.
- Return type
cp.ndarray