mitk.LabelVector#
- class mitk.LabelVector#
Bases:
pybind11_objectImmutable, sliceable sequence of
Labelobjects.Returned by methods like
MultiLabelSegmentation.get_labels()andMultiLabelSegmentation.get_group_labels(). Supportslen, iteration, integer and slice indexing, membership testing, and exposes a flatvalueslist of the underlying label pixel values.- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)Attributes
- __contains__(self: mitk.LabelVector, arg0: object) bool#
- __getitem__(*args, **kwargs)#
Overloaded function.
__getitem__(self: mitk.LabelVector, arg0: typing.SupportsInt) -> mitk.Label
__getitem__(self: mitk.LabelVector, arg0: slice) -> mitk.LabelVector
- __iter__(self: mitk.LabelVector) collections.abc.Iterator[mitk.Label]#
- __len__(self: mitk.LabelVector) int#
Return the number of labels.
- property values#