pre_process_2deteCT.py 🚧¢

Source: LION/data_loaders/2deteCT/pre_process_2deteCT.py

Warning

This file has not yet received a complete narrative and docstring audit. Its public source-level API is listed automatically below.

format_slice_index(index: int) str

No docstring is available.

format_mode_index(index: int) str

No docstring is available.

write_settings(settings_out_file_path: Path)

Writes the default settings to reconstruct the images from the original paper

correct_detector_shift(sinogram, slice_index, settings: Dict)

No docstring is available.

pre_process_slice(settings: Dict, slice_index: int, mode_index: int, raw_folder_path: Path, processed_folder_path: Path)

pre_process_slice applies the right sinogram correction as a pre_processing step to avoid doing it at runtime