Skip to main content

load_tiff_stack_with_options

Function load_tiff_stack_with_options 

Source
pub fn load_tiff_stack_with_options(
    path: &Path,
    pixel_policy: PixelValuePolicy,
) -> Result<(Array3<f64>, TiffLoadInfo), IoError>
Expand description

Load a multi-frame TIFF with an explicit pixel-value policy, returning provenance metadata.

Behaves like load_tiff_stack, with the pixel-value policy applied to every frame as it is decoded (see the module docs).

§Arguments

  • path — Path to the multi-frame TIFF file.
  • pixel_policy — Policy for negative / non-finite pixel values.

§Returns

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