| 814 | } |
| 815 | |
| 816 | void mitk::MultiLabelIOHelper::RemoveMetaPropertiesFromLabel(Label* label) |
| 817 | { |
| 818 | if (nullptr == label) |
| 819 | { |
| 820 | mitkThrow() << "Invalid call of RemoveMetaPropertiesFromLabel. Passed label pointer is null."; |
| 821 | } |
| 822 | auto labelKeys = label->GetPropertyKeys(); |
| 823 | for (const auto& key : labelKeys) |
| 824 | { |
| 825 | if (key.find('_') == 0) |
| 826 | { |
| 827 | label->RemoveProperty(key); |
| 828 | } |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | mitk::LabelVector mitk::MultiLabelIOHelper::CloneLabelsWithoutMetaProperties(const LabelVector& labels) |
| 833 | { |
nothing calls this directly
no test coverage detected