Skip to main content

load_tiff_auto_with_options

Function load_tiff_auto_with_options 

Source
pub fn load_tiff_auto_with_options(
    path: &Path,
    options: &TiffFolderOptions,
) -> Result<(Array3<f64>, TiffLoadInfo), IoError>
Expand description

Load TIFF data from a file or directory, returning provenance metadata.

Auto-detects based on whether path is a file or directory, like load_tiff_auto, but additionally applies TiffFolderOptions (chunk summing for directories) and reports what was done via TiffLoadInfo.

§Arguments

  • path — Path to either a multi-frame TIFF file or a directory of TIFFs.
  • options — Loading options (chunk summing).

§Returns

(stack, info) where stack has shape (n_frames, height, width).