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 clitkSpect2DicomGenericFilter_h
19 #define clitkSpect2DicomGenericFilter_h
21 /* =================================================
22 * @file clitkSpect2DicomGenericFilter.h
28 ===================================================*/
33 #include "clitkImageCommon.h"
34 #include "clitkSpect2Dicom_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"
44 #include <itksys/SystemTools.hxx>
47 #include "itkMinimumMaximumImageFilter.h"
49 #include "itkGDCMImageIO.h"
50 #include "itkGDCMSeriesFileNames.h"
51 #include "itkNumericSeriesFileNames.h"
53 #include "itkImageSeriesReader.h"
54 #include "itkImageSeriesWriter.h"
56 #include "itkResampleImageFilter.h"
58 #if ( ( ITK_VERSION_MAJOR == 4 ) && ( ITK_VERSION_MINOR < 6 ) )
59 #include "itkShiftScaleImageFilter.h"
62 #include "itkIdentityTransform.h"
63 #include "itkLinearInterpolateImageFunction.h"
65 #include <itksys/SystemTools.hxx>
67 #if ITK_VERSION_MAJOR >= 4
68 #include "gdcmUIDGenerator.h"
70 #include "gdcm/src/gdcmFile.h"
71 #include "gdcm/src/gdcmUtil.h"
79 template<class args_info_type>
80 class ITK_EXPORT Spect2DicomGenericFilter : public itk::LightObject
83 //----------------------------------------
85 //----------------------------------------
86 typedef Spect2DicomGenericFilter Self;
87 typedef itk::LightObject Superclass;
88 typedef itk::SmartPointer<Self> Pointer;
89 typedef itk::SmartPointer<const Self> ConstPointer;
91 // Method for creation through the object factory
94 // Run-time type information (and related methods)
95 itkTypeMacro( Spect2DicomGenericFilter, LightObject );
98 //----------------------------------------
100 //----------------------------------------
103 //----------------------------------------
105 //----------------------------------------
106 void SetArgsInfo(const args_info_type & a)
109 m_Verbose=m_ArgsInfo.verbose_flag;
110 m_InputFileName=m_ArgsInfo.input_arg;
114 //----------------------------------------
116 //----------------------------------------
121 //----------------------------------------
122 // Constructor & Destructor
123 //----------------------------------------
124 Spect2DicomGenericFilter();
125 ~Spect2DicomGenericFilter() {};
128 //void CopyDictionary (itk::MetaDataDictionary &fromDict, itk::MetaDataDictionary &toDict);
129 //----------------------------------------
131 //----------------------------------------
132 template <unsigned int Dimension> void UpdateWithDim(std::string PixelType);
133 template <unsigned int Dimension, class PixelType> void UpdateWithDimAndPixelType();
136 //----------------------------------------
138 //----------------------------------------
139 args_info_type m_ArgsInfo;
141 std::string m_InputFileName;
146 } // end namespace clitk
148 #ifndef ITK_MANUAL_INSTANTIATION
149 #include "clitkSpect2DicomGenericFilter.txx"
152 #endif // #define clitkSpect2DicomGenericFilter_h