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

Method GetGroupIndexOfLabel

Modules/Multilabel/src/mitkLabelSetImage.cpp:1395–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393}
1394
1395mitk::MultiLabelSegmentation::GroupIndexType mitk::MultiLabelSegmentation::GetGroupIndexOfLabel(LabelValueType value) const
1396{
1397 auto finding = m_LabelToGroupMap.find(value);
1398 if (m_LabelToGroupMap.end() == finding)
1399 {
1400 mitkThrow()<< "Cannot deduce group index. Passed label value does not exist. Value: "<< value;
1401 }
1402 return finding->second;
1403}
1404
1405
1406mitk::Label::ConstPointer mitk::MultiLabelSegmentation::GetLabel(LabelValueType value) const

Callers 15

GetActiveLayerMethod · 0.95
ReplaceGroupLabelsMethod · 0.95
SetActiveLabelMethod · 0.95
MergeLabelsMethod · 0.95
RemoveLabelMethod · 0.95
RemoveLabelFromMapMethod · 0.95
EraseLabelMethod · 0.95
UpdateCenterOfMassMethod · 0.95
IsEmptyMethod · 0.95

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 8

AddNewLabelMethod · 0.64
DeleteLabelInternalMethod · 0.64
RemoveGroupMethod · 0.64
OnClearLabelsMethod · 0.64
OnDeleteLabelsMethod · 0.64
OnMergeLabelsMethod · 0.64
OnClearLabelMethod · 0.64