]> Creatis software - creaImageIO.git/commitdiff
works with gdcm1.3
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Wed, 26 May 2010 12:12:04 +0000 (12:12 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Wed, 26 May 2010 12:12:04 +0000 (12:12 +0000)
src/creaImageIODicomImageReader.cpp
src/creaImageIODicomImageReader.h
src/creaImageIOOutputModel.cpp

index 05ea3b2..0d6a753 100644 (file)
@@ -101,7 +101,16 @@ namespace creaImageIO
     return str;
   }
   //========================================================================
- 
+  void DicomImageReader::getAttributes(const std::string filename,
+               std::map <std::string , std::string> &infos, std::vector<std::string> i_attr)
+       {
+               std::vector<std::string>::iterator it = i_attr.begin();
+               for(; it != i_attr.end(); it++)
+               {
+                       infos[(*it)] = "";
+               }
+               ReadAttributes(filename, infos);
+       }
   //=====================================================================
   void DicomImageReader::ReadAttributes(const std::string& filename, 
                      std::map<std::string,std::string>& attr)
index 00f5cb0..1b9d892 100644 (file)
@@ -33,6 +33,9 @@ namespace creaImageIO
     virtual void ReadAttributes(const std::string& filename, 
                                tree::AttributeMapType& attr);
 
+       void getAttributes(const std::string filename,
+               std::map <std::string , std::string> &infos, std::vector<std::string> i_attr);
+
   private:
     vtkGdcmReader* mReader;
        struct deleter
index 5db5fd7..4eef715 100644 (file)
@@ -5,6 +5,7 @@
 
 #if defined(USE_GDCM)
 #include <gdcmGlobal.h>
+#include <gdcmFile.h>
 #include <gdcmSerieHelper.h>
 #include <gdcmFile.h>
 #endif