Module tiff_stack

Module tiff_stack 

Source
Expand description

Multi-frame TIFF stack loading for neutron imaging data.

VENUS beamline data is typically stored as multi-frame TIFF files where each frame corresponds to a time-of-flight (TOF) bin. The result is a 3D array with dimensions (n_tof, height, width).

§Supported formats

  • Single multi-frame TIFF (all TOF bins in one file)
  • Directory of single-frame TIFFs (one file per TOF bin, sorted by name)

§Data types

  • 16-bit unsigned integer (common for neutron detectors)
  • 32-bit float (normalized data)

Structs§

TiffStackInfo
Metadata about a loaded TIFF stack.

Functions§

load_tiff_auto
Load TIFF data from either a single multi-frame file or a directory.
load_tiff_directory
Load a directory of single-frame TIFFs as a 3D stack.
load_tiff_folder
Load a directory of TIFFs matching a glob pattern as a 3D stack.
load_tiff_stack
Load a multi-frame TIFF into a 3D array (n_frames, height, width).