Pre-processing

Flat field correction.

tofu.preprocess.create_flat_correct_pipeline(args, graph, processing_node=None)[source]

Create flat field correction pipeline. All the settings are provided in args. graph is used for making the connections. Returns the flat field correction task which can be used for further pipelining.

tofu.preprocess.create_preprocessing_pipeline(args, graph, source=None, processing_node=None, cone_beam_weight=True, make_reader=True)[source]

If make_reader is True, create a read task if source is None and no dark and flat fields are given.

tofu.preprocess.create_sinogram_pipeline(args, graph)[source]

Create sinogram generating pipeline based on arguments from args.

tofu.preprocess.run_sinogram_generation(args)[source]

Make the sinograms with arguments provided by args.