denoise.tiffs

denoise.tiffs.glob(dir_path)[source]

Expand path to list of all tiffs in directory

Parameters:

dir_path – directory

Returns:

Return type:

denoise.tiffs.load_sino(paths, binning=1, dtype=None, flip_y=False)[source]

Load a stack of tiff files into a sinogram

Parameters:
  • paths – paths to tiff files

  • binning – whether angles and projection images should be binned.

Returns:

an np.array containing the values in the tiff files

Return type:

np.array

denoise.tiffs.load_stack(paths, binning=1, use_tqdm=True)[source]

Load a stack of tiff files.

Parameters:
  • paths – paths to tiff files

  • binning – whether angles and projection images should be binned.

Returns:

an np.array containing the values in the tiff files

Return type:

np.array

denoise.tiffs.natural_sorted(l)[source]
denoise.tiffs.save_stack(path, stack, offset=0, exist_ok=True, parents=False)[source]