itasc.core.label_store

TIFF storage for tracked nucleus label volumes.

Schema: single multipage TIFF — shape (T, Y, X), dtype uint32. Frames that have not yet been tracked are stored as all-zeros.

Functions

read_full_tracked_stack(path)

Read all tracked frames as a (T, Y, X) uint32 array.

write_full_tracked_stack(path, stack)

Write the entire (T, Y, X) tracked stack in one encode.

itasc.core.label_store.write_full_tracked_stack(path, stack)[source]

Write the entire (T, Y, X) tracked stack in one encode.

A multipage zlib TIFF cannot be updated in place, so a per-frame writer would decode and re-encode the whole file on every frame (O(T²) over a full-stack save). This encodes once (O(T)). A legacy singleton-Z axis (T, 1, Y, X) is squeezed to match the documented schema.

Return type:

None

Parameters:
itasc.core.label_store.read_full_tracked_stack(path)[source]

Read all tracked frames as a (T, Y, X) uint32 array.

Return type:

ndarray

Parameters:

path (str | Path)