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

Method GetLabelClassNames

Modules/Multilabel/src/mitkLabelSetImage.cpp:1553–1560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1551}
1552
1553std::vector<std::string> mitk::MultiLabelSegmentation::GetLabelClassNames() const
1554{
1555 std::set<std::string> names;
1556 auto searchName = [&names](const Label* l) { names.emplace(l->GetName()); };
1557 this->VisitLabels(this->GetAllLabelValues(), searchName);
1558
1559 return std::vector<std::string>(names.begin(), names.end());
1560}
1561
1562std::vector<std::string> mitk::MultiLabelSegmentation::GetLabelClassNamesByGroup(GroupIndexType index) const
1563{

Callers 1

Calls 5

VisitLabelsMethod · 0.95
GetAllLabelValuesMethod · 0.95
GetNameMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1