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

Method GetActiveLabel

Modules/Multilabel/src/mitkLabelSetImage.cpp:1026–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026mitk::Label *mitk::MultiLabelSegmentation::GetActiveLabel()
1027{
1028 if (m_ActiveLabelValue == UNLABELED_VALUE) return nullptr;
1029
1030 auto finding = m_LabelMap.find(m_ActiveLabelValue);
1031 return finding == m_LabelMap.end() ? nullptr : finding->second;
1032}
1033
1034const mitk::Label* mitk::MultiLabelSegmentation::GetActiveLabel() const
1035{

Calls 2

findMethod · 0.45
endMethod · 0.45