combine_slices#
- combine_slices(filepath, filenames, use_compression='zlib')[source]#
Combine individual slices into a volumetric stack. To control which slices to include, supply a list of filenames.
- Return type:
ndarray- Parameters:
filepath (str) – Path to the directory containing the tiff files
filenames (list) – List of the file names of the tiff files to combine
use_compression (str) – Compression type to use for the combined tiff file
- Returns:
Array containing the combined stack
- Return type:
np.ndarray