1 #ifndef __creaImageIODicomScanner_h_INCLUDED__
2 #define __creaImageIODicomScanner_h_INCLUDED__
4 #include "creaImageIOTree.h"
7 #include <gdcmReader.h>
8 #include <vtkGDCMImageReader.h>
9 #include <gdcmScanner.h>
12 class vtkGDCMImageReader;
22 //=====================================================================
23 /// Concrete image reader for DICOM images
24 class DicomImageScanner
28 virtual ~DicomImageScanner();
30 /// Add file extensions read by the reader
31 bool addDirectory(std::string& filename, std::map<std::string,std::string>& attr);
33 /// return for a file a 2D VTkImage
34 virtual vtkImageData* ReadImage(const std::string& filename);
35 /// Read the attributes for a file
36 virtual void ReadAttributes(const std::string& filename,
37 tree::AttributeMapType& attr);
38 void ReadAttributes2(const std::string& filename,
39 tree::AttributeMapType& attr);
41 std::string irclean(const std::string& str);
43 const std::string GetStringValueFromTag( const gdcm::DataElement& ds);
44 vtkGDCMImageReader *mReader;
49 //=====================================================================
53 } // namespace creaImageIO
57 #endif // #ifndef __creaImageIODicomScanner_h_INCLUDED__