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

Method CreateDisplayGroupName

Modules/Multilabel/src/mitkLabelSetImageHelper.cpp:385–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385std::string mitk::LabelSetImageHelper::CreateDisplayGroupName(const MultiLabelSegmentation* labelSetImage, MultiLabelSegmentation::GroupIndexType groupID)
386{
387 const auto groupName = labelSetImage->GetGroupName(groupID);
388 if (groupName.empty())
389 return "Group "+std::to_string(groupID + 1);
390
391 return groupName;
392}
393
394std::string mitk::LabelSetImageHelper::CreateDisplayLabelName(const MultiLabelSegmentation* labelSetImage, const Label* label)
395{

Callers

nothing calls this directly

Calls 2

GetGroupNameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected