Skip to main content

load_tiff_auto

Function load_tiff_auto 

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

Load TIFF data from either a single multi-frame file or a directory.

Auto-detects based on whether path is a file or directory:

Directories are not loaded purely lexicographically: chunked VENUS folders (<prefix>_<chunk>_<frame>.tif) are detected automatically, ordered by numeric frame index, and chunks are summed element-wise (the TiffFolderOptions defaults — see the module docs). No provenance is returned; use load_tiff_auto_with_options to get a TiffLoadInfo and to control chunk summing.

§Arguments

  • path — Path to either a multi-frame TIFF file or a directory of TIFFs.

§Returns

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