]> Creatis software - clitk.git/blob - common/clitkChangeDicomTagGenericFilter.h
The lower and upper options can be tuned for all type of region growing algorithm
[clitk.git] / common / clitkChangeDicomTagGenericFilter.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
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
8
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.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef clitkChangeDicomTagGenericFilter_h
19 #define clitkChangeDicomTagGenericFilter_h
20
21 /* =================================================
22  * @file   clitkChangeDicomTagGenericFilter.h
23  * @author 
24  * @date   
25  * 
26  * @brief 
27  * 
28  ===================================================*/
29
30
31 // clitk include
32 #include "clitkChangeDicomTag_ggo.h"
33
34 //itk include
35 #include "itkGDCMImageIO.h"
36 #include "itkMetaDataDictionary.h"
37 #include "itkGDCMSeriesFileNames.h"
38 #include <vector>
39 #include <itksys/SystemTools.hxx>
40
41 namespace clitk 
42 {
43   template<class args_info_type>
44   class ITK_EXPORT ChangeDicomTagGenericFilter : public itk::LightObject
45   {
46   public:
47     //----------------------------------------
48     // ITK
49     //----------------------------------------
50     typedef ChangeDicomTagGenericFilter                   Self;
51     typedef itk::LightObject                   Superclass;
52     typedef itk::SmartPointer<Self>            Pointer;
53     typedef itk::SmartPointer<const Self>      ConstPointer;
54    
55     // Method for creation through the object factory
56     itkNewMacro(Self);  
57
58     // Run-time type information (and related methods)
59     itkTypeMacro( ChangeDicomTagGenericFilter, LightObject );
60
61
62     //----------------------------------------
63     // Typedefs
64     //----------------------------------------
65
66
67     //----------------------------------------
68     // Set & Get
69     //----------------------------------------    
70     void SetArgsInfo(const args_info_type & a)
71     {
72       m_ArgsInfo=a;
73       m_Verbose=m_ArgsInfo.verbose_flag;
74     }
75     
76     
77     //----------------------------------------  
78     // Update
79     //----------------------------------------  
80     void Update();
81
82   protected:
83
84     //----------------------------------------  
85     // Constructor & Destructor
86     //----------------------------------------  
87     ChangeDicomTagGenericFilter();
88     ~ChangeDicomTagGenericFilter() {};
89
90     
91     //----------------------------------------  
92     // Templated members
93     //----------------------------------------  
94     void UpdateWithDimAndPixelType();
95
96
97     //----------------------------------------  
98     // Data members
99     //----------------------------------------
100     args_info_type m_ArgsInfo;
101     bool m_Verbose;
102
103   };
104
105
106 } // end namespace clitk
107
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "clitkChangeDicomTagGenericFilter.txx"
110 #endif
111
112 #endif // #define clitkChangeDicomTagGenericFilter_h