Skip to main content

load_tiff_directory

Function load_tiff_directory 

Source
pub fn load_tiff_directory(dir: &Path) -> Result<Array3<f64>, IoError>
Expand description

Load a directory of single-frame TIFFs as a 3D stack.

Files are sorted by name (lexicographic), so they should be named with zero-padded indices (e.g., frame_0001.tiff, frame_0002.tiff, …).

§Arguments

  • dir — Path to the directory containing TIFF files.

§Returns

3D array with shape (n_files, height, width) and f64 values.