1 #ifndef __creaImageIODicomImageReader_h_INCLUDED__
2 #define __creaImageIODicomImageReader_h_INCLUDED__
5 #include <creaImageIOAbstractImageReader.h>
18 //=====================================================================
19 /// Concrete image reader for DICOM images
20 class DicomImageReader : virtual public AbstractImageReader
24 virtual ~DicomImageReader();
26 /// Add file extensions read by the reader
27 virtual void PushBackExtensions(std::vector<std::string>&);
28 /// Test if file is read by this reader
29 virtual bool CanRead(const std::string& filename);
30 /// return for a file a 2D VTkImage
31 virtual vtkImageData* ReadImage(const std::string& filename);
32 /// Read the attributes for a file
33 virtual void ReadAttributes(const std::string& filename,
34 tree::AttributeMapType& attr);
36 void getAttributes(const std::string filename,
37 std::map <std::string , std::string> &infos, std::vector<std::string> i_attr);
40 vtkGdcmReader* mReader;
45 friend struct deleter;
47 //=====================================================================
51 } // namespace creaImageIO
55 #endif // #ifndef __creaImageIODicomImageReader_h_INCLUDED__