mitk.LabelGroup#

class mitk.LabelGroup#

Bases: pybind11_object

One 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 LabelGroup is a snapshot view: index, name, labels, class_names, and image are 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

class_names

List of class-name strings for the labels in this group.

image

Backing Image that stores this group's labels.

index

Zero-based index of the group inside its segmentation.

labels

The LabelVector for this group.

name

Display name of the group.

property class_names#

List of class-name strings for the labels in this group.

property image#

Backing Image that stores this group’s labels.

property index#

Zero-based index of the group inside its segmentation.

property labels#

The LabelVector for this group.

property name#

Display name of the group.