16 #ifndef DICOMMMETADATAREADER_H 17 #define DICOMMMETADATAREADER_H 19 #include "itkImageSeriesReader.h" 20 #include "itkGDCMImageIO.h" 21 #include "itkGDCMSeriesFileNames.h" 22 #include <itkMapContainer.h> 30 const unsigned int Dimension = 2;
31 typedef itk::Image< PixelType, 2 > ImageType;
33 typedef itk::ImageFileReader< ImageType > ReaderType;
34 typedef itk::GDCMSeriesFileNames NamesGeneratorType;
35 typedef itk::GDCMImageIO ImageIOType;
36 typedef std::vector<std::string> FileNamesContainer;
37 typedef itk::MetaDataDictionary DictionaryType;
38 typedef itk::MetaDataObject< std::string > MetaDataStringType;
39 typedef itk::MapContainer<std::string, std::pair<std::string, std::string>> MapContainerType;
52 std::map<std::string, std::pair<std::string, std::string>>
GetMetaDataMap();
55 bool GetTagValue(std::string tag, std::string &label, std::string &value);
60 ReaderType::Pointer m_reader;
61 NamesGeneratorType::Pointer m_nameGenerator;
62 FileNamesContainer m_fileNames;
63 ImageIOType::Pointer m_dicomIO;
64 MapContainerType::Pointer m_tagvalueMap;
65 DictionaryType m_dictionary;
66 std::string m_FilePath;
69 #endif // DICOMMMETADATAREADER_H