spectral_unmixing.convert_time_encoded_stack_to_channel_stackο
- spectral_unmixing.convert_time_encoded_stack_to_channel_stack(input_path, output_path)[source]ο
Convert a
TZCYXstack withT>1andC=1intoT=1andC=T.This helper is useful for microscopy examples in which multiple measured channels are stored as successive time pages rather than on the channel axis.
- Parameters:
input_path (str or Path) β Path to the input microscopy stack readable by OMIO.
output_path (str or Path) β Destination path for the converted stack written via OMIO.
- Return type:
Path- Returns:
Path β Actual path of the written converted stack.
- Raises:
ValueError β If the input does not have exactly one channel on the canonical channel axis.