nabu.pipeline.reader module

nabu.pipeline.reader.bin_image_stack(src_stack, dst_stack, binning_factor=(2, 2), num_threads=8)[source]
nabu.pipeline.reader.NXTomoReaderBinning(binning_factor, *nxtomoreader_args, num_threads=None, **nxtomoreader_kwargs)[source]
nabu.pipeline.reader.apply_distortion_correction_on_images_stack(src_stack, dst_stack, distortion_corrector, num_threads=8)[source]
nabu.pipeline.reader.NXTomoReaderDistortionCorrection(distortion_corrector, *nxtomoreader_args, num_threads=None, **nxtomoreader_kwargs)[source]
nabu.pipeline.reader.EDFStackReaderBinning(binning_factor, *edfstackreader_args, **edfstackreader_kwargs)[source]
nabu.pipeline.reader.apply_distortion_correction_on_image(image, distortion_corrector)[source]
nabu.pipeline.reader.EDFStackReaderDistortionCorrection(distortion_corrector, *edfstackreader_args, **edfstackreader_kwargs)[source]
nabu.pipeline.reader.load_darks_flats(dataset_info, sub_region, processing_func=None, processing_func_args=None, processing_func_kwargs=None)[source]

Load the (reduced) darks and flats and crop them to the sub-region currently used. At this stage, dataset_info.flats should be a dict in the form {num: array}

Parameters:

sub_region (2-tuple of 3-tuples of int) – Tuple in the form ((start_y, end_y), (start_x, end_x))