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.

Delegates to load_tiff_folder with default options: chunked VENUS folders (<prefix>_<chunk>_<frame>.tif) are detected automatically, ordered by numeric frame index, and chunks covering identical frame ranges are summed element-wise. Only folders not following the chunk convention load in lexicographic filename order — name legacy files with zero-padded indices (e.g., frame_0001.tiff, frame_0002.tiff, …). No provenance is returned; use load_tiff_folder_with_options to get a TiffLoadInfo and to control chunk summing.

§Arguments

  • dir — Path to the directory containing TIFF files.

§Returns

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