Segmentation.convert_slice_tuple#

Segmentation.convert_slice_tuple(slice_tuple)[source]#

Convert a segmentation slice tuple into SegmentationSlice.

Parameters:

slice_tuple (tuple[int, ...]) – Tuple containing segment values for a single slice.

Returns:

Slice parameters.

Return type:

SegmentationSlice

Raises:

ValueError – If the tuple given doesn’t have the expected number of values.

See also

SegmentationSlice.from_tuple

Method to convert a tuple into a SegmentationSlice.