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 TZCYX stack with T>1 and C=1 into T=1 and C=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.