| 39 | } |
| 40 | |
| 41 | void SetIfMissing(mitk::MultiLabelSegmentation* seg, |
| 42 | const std::string& key, |
| 43 | mitk::BaseProperty* value) |
| 44 | { |
| 45 | if (seg->GetProperty(key.c_str()).IsNull()) |
| 46 | seg->SetProperty(key.c_str(), value); |
| 47 | } |
| 48 | |
| 49 | // Presence (not non-emptiness) is the check. Type-2 DICOM tags may be |
| 50 | // intentionally empty; if Validate insisted on non-empty values, the |
no test coverage detected