mitk.LabelGroup#
- class mitk.LabelGroup#
Bases:
pybind11_objectOne layer of a
MultiLabelSegmentation.A multi-label segmentation is organized into one or more groups. Each group has its own backing image and its own set of labels; labels in different groups can overlap spatially because they live in separate images.
A
LabelGroupis a snapshot view:index,name,labels,class_names, andimageare read-only fields representing the group’s state at the moment it was returned by the parent segmentation.- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)Attributes
List of class-name strings for the labels in this group.
Backing
Imagethat stores this group's labels.Zero-based index of the group inside its segmentation.
The
LabelVectorfor this group.Display name of the group.
- property class_names#
List of class-name strings for the labels in this group.
- property index#
Zero-based index of the group inside its segmentation.
- property labels#
The
LabelVectorfor this group.
- property name#
Display name of the group.