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

Method UpdateLabel

Modules/Multilabel/src/mitkLabelSetImage.cpp:1014–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012}
1013
1014void 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
1026mitk::Label *mitk::MultiLabelSegmentation::GetActiveLabel()
1027{

Callers

nothing calls this directly

Calls 4

UpdateLookupTableMethod · 0.95
IsNullMethod · 0.45
UpdateMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected