13 #ifndef mitkItkImageIO_h
14 #define mitkItkImageIO_h
18 #include <itkImageIOBase.h>
47 void Write()
override;
57 static PropertyList::Pointer ExtractMetaDataAsPropertyList(
const itk::MetaDataDictionary& dictionary,
const std::string& mimeTypeName,
const std::vector<std::string>& defaultMetaDataKeys);
61 static Image::Pointer LoadRawMitkImageFromImageIO(itk::ImageIOBase* imageIO,
const std::string& path);
65 static void PreparImageIOToWriteImage(itk::ImageIOBase* imageIO,
const Image* image);
67 static void SavePropertyListAsMetaData(itk::MetaDataDictionary& dictionary,
const PropertyList* properties,
const std::string& mimeTypeName);
71 virtual std::vector<std::string> FixUpImageIOExtensions(
const std::string &imageIOName);
72 virtual void FixUpCustomMimeTypeName(
const std::string &imageIOName,
CustomMimeType &customMimeType);
75 virtual void InitializeDefaultMetaDataKeys();
78 std::vector<itk::SmartPointer<BaseData>> DoRead()
override;
85 itk::ImageIOBase::Pointer m_ImageIO;
87 std::vector<std::string> m_DefaultMetaDataKeys;