13 #ifndef mitkMultiLabelIOHelper_h
14 #define mitkMultiLabelIOHelper_h
18 #include <itkSmartPointer.h>
19 #include <nlohmann/json.hpp>
31 class MetaDataDictionary;
60 static bool SaveLabelSetImagePreset(
const std::string &presetFilename,
69 static bool LoadLabelSetImagePreset(
const std::string &presetFilename,
85 static tinyxml2::XMLElement *GetLabelAsXMLElement(tinyxml2::XMLDocument &doc,
const Label *label);
95 static tinyxml2::XMLElement *PropertyToXMLElement(tinyxml2::XMLDocument& doc,
const std::string &key,
const BaseProperty *property);
108 static int GetIntByKey(
const itk::MetaDataDictionary& dic,
const std::string& key);
111 static std::string GetStringByKey(
const itk::MetaDataDictionary& dic,
const std::string& key);
117 static std::vector<LabelGroupMetaData> DeserializeMultiLabelGroupsFromJSON(
const nlohmann::json& listOfLabelSets);