1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef clitkImage2DicomDoseGenericFilter_h
19 #define clitkImage2DicomDoseGenericFilter_h
21 /* =================================================
22 * @file clitkImage2DicomDoseGenericFilter.h
28 ===================================================*/
33 #include "clitkImageCommon.h"
34 #include "clitkImage2DicomDose_ggo.h"
37 #include "itkLightObject.h"
38 #include "itkGDCMImageIO.h"
39 #include "itkMetaDataDictionary.h"
40 #include "itkGDCMSeriesFileNames.h"
41 #include "itkImageSeriesReader.h"
42 #include "itkImageSeriesWriter.h"
43 #include "itkImageFileReader.h"
44 #include "itkImageFileWriter.h"
46 #include <itksys/SystemTools.hxx>
50 template<class args_info_type>
51 class ITK_EXPORT Image2DicomDoseGenericFilter : public itk::LightObject
55 //----------------------------------------
57 //----------------------------------------
58 typedef Image2DicomDoseGenericFilter Self;
59 typedef itk::LightObject Superclass;
60 typedef itk::SmartPointer<Self> Pointer;
61 typedef itk::SmartPointer<const Self> ConstPointer;
63 // Method for creation through the object factory
66 // Run-time type information (and related methods)
67 itkTypeMacro( Image2DicomDoseGenericFilter, LightObject );
70 //----------------------------------------
72 //----------------------------------------
73 void SetArgsInfo(const args_info_type & a)
76 m_Verbose=m_ArgsInfo.verbose_flag;
77 m_InputFileName=m_ArgsInfo.input_arg;
80 //----------------------------------------
82 //----------------------------------------
86 //----------------------------------------
87 // Constructor & Destructor
88 //----------------------------------------
89 Image2DicomDoseGenericFilter();
90 ~Image2DicomDoseGenericFilter() {};
92 //----------------------------------------
94 //----------------------------------------
95 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
96 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
99 gdcm::File * mDCMFile;
101 //----------------------------------------
103 //----------------------------------------
104 args_info_type m_ArgsInfo;
106 std::string m_InputFileName;
111 void CopyDictionary (itk::MetaDataDictionary &fromDict, itk::MetaDataDictionary &toDict);
112 template <typename T> std::string NumberToString ( T Number );
114 } // end namespace clitk
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "clitkImage2DicomDoseGenericFilter.txx"
120 #endif // #define clitkImage2DicomDoseGenericFilter_h