MCPcopy Create free account
hub / github.com/MITK/MITK / GetLabelClassNamesByGroup

Method GetLabelClassNamesByGroup

Modules/Multilabel/src/mitkLabelSetImage.cpp:1562–1569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562std::vector<std::string> mitk::MultiLabelSegmentation::GetLabelClassNamesByGroup(GroupIndexType index) const
1563{
1564 std::set<std::string> names;
1565 auto searchName = [&names](const Label* l) { names.emplace(l->GetName()); };
1566 this->VisitLabels(this->GetLabelValuesByGroup(index), searchName);
1567
1568 return std::vector<std::string>(names.begin(), names.end());
1569}
1570
1571void mitk::MultiLabelSegmentation::SetAllLabelsVisible(bool visible)
1572{

Callers 3

MakeLabelGroupFunction · 0.80

Calls 5

VisitLabelsMethod · 0.95
GetLabelValuesByGroupMethod · 0.95
GetNameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1