ewokstomo.tasks.online.nabu_pipeline.get_reconstruction_z_region_and_margin#

ewokstomo.tasks.online.nabu_pipeline.get_reconstruction_z_region_and_margin(process_config)[source]#

Get parameters relevant for processing pipeline: sub-region to reconstruct, and processing margin.

Parameters#

process_config: nabu.pipeline.process_config.ProcessConfig object

Data structure with the processing configuration

Returns#

start_end_z: tuple of int

Tuple in the form (start_z, end_z), defining the start and stop of slices indices to be reconstructed

margin_ud: tuple of int

Tuple in the form (margin_up, margin_down): “processing margin” in the vertical direction. Data will be cropped as: reconstruction[margin_up:-margin_down, …]