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

Method RegisterLabel

Modules/Multilabel/src/mitkLabelSetImage.cpp:1332–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330}
1331
1332void mitk::MultiLabelSegmentation::RegisterLabel(mitk::Label* label)
1333{
1334 if (nullptr == label) mitkThrow() << "Invalid call of RegisterLabel with a nullptr.";
1335
1336 UpdateLookupTable(label->GetValue());
1337 m_LookupTable->Modified();
1338
1339 auto command = itk::MemberCommand<MultiLabelSegmentation>::New();
1340 command->SetCallbackFunction(this, &MultiLabelSegmentation::OnLabelModified);
1341 m_LabelModEventGuardMap.emplace(label->GetValue(), ITKEventObserverGuard(label, itk::ModifiedEvent(), command));
1342}
1343
1344void mitk::MultiLabelSegmentation::ReleaseLabel(Label* label)
1345{

Callers 4

InsertGroupMethod · 0.95
ReplaceGroupLabelsMethod · 0.95
ReplaceLabelsMethod · 0.95
AddLabelMethod · 0.95

Calls 3

NewFunction · 0.50
GetValueMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected