| 1330 | } |
| 1331 | |
| 1332 | void 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 | |
| 1344 | void mitk::MultiLabelSegmentation::ReleaseLabel(Label* label) |
| 1345 | { |
no test coverage detected