| 1012 | } |
| 1013 | |
| 1014 | void mitk::MultiLabelSegmentation::UpdateLabel(LabelValueType labelValue, const Label* templateLabel) |
| 1015 | { |
| 1016 | auto label = GetLabel(labelValue); |
| 1017 | if (label.IsNull()) mitkThrow() << "Cannot update label. Unknown label value provided. Unknown label value:" << labelValue; |
| 1018 | if (templateLabel == nullptr) mitkThrow() << "Cannot update label. Null pointer passed as template label."; |
| 1019 | |
| 1020 | label->Update(templateLabel, false); |
| 1021 | |
| 1022 | this->UpdateLookupTable(labelValue); |
| 1023 | m_LookupTable->Modified(); |
| 1024 | } |
| 1025 | |
| 1026 | mitk::Label *mitk::MultiLabelSegmentation::GetActiveLabel() |
| 1027 | { |
nothing calls this directly
no test coverage detected