]> 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 05ea3b22ae3356e21f66b57914773a9686639d82..0d6a753bd38e2707021bae841391728d0bba4c2e 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 00f5cb009a45cc3132945a40e1555eaf3d8b60ce..1b9d8927895ae9e2ba884bc637c7a04d69366676 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 5db5fd790a08af9a2615eb9651202f1290a738c2..4eef7155f89fed7fc26a85433b3313933e9ecafb 100644 (file)
@@ -5,6 +5,7 @@
 
 #if defined(USE_GDCM)
 #include <gdcmGlobal.h>
+#include <gdcmFile.h>
 #include <gdcmSerieHelper.h>
 #include <gdcmFile.h>
 #endif