httomo.darks_flats.get_darks_flats

httomo.darks_flats.get_darks_flats#

httomo.darks_flats.get_darks_flats(darks_config: DarksFlatsFileConfig, flats_config: DarksFlatsFileConfig, preview_config: PreviewConfig) Tuple[ndarray, ndarray][source]#

Reads the dark-field and flat-field images from the file(s) defined in the input configurations.

Parameters:
  • darks_config (DarksFlatsFileConfig) – Configuration of where to get the dark-field images from.

  • flats_config (DarksFlatsFileConfig) – Configuration of where to get the flat-field images from.

  • preview_config (PreviewConfig) – Configuration of previewing to be applied to projection, dark-field, and flat-field images.

Returns:

Index zero contains the dark-field images and index one contains the flat-field images.

Return type:

Tuple[np.ndarray, np.ndarray]