]> Creatis software - clitk.git/blob - segmentation/clitkDecomposeAndReconstructGenericFilter.h
Debug RTStruct conversion with empty struc
[clitk.git] / segmentation / clitkDecomposeAndReconstructGenericFilter.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 clitkDecomposeAndReconstructGenericFilter_h
19 #define clitkDecomposeAndReconstructGenericFilter_h
20
21 /* =================================================
22  * @file   clitkDecomposeAndReconstructGenericFilter.h
23  * @author 
24  * @date   
25  * 
26  * @brief 
27  * 
28  ===================================================*/
29
30
31 // clitk include
32 #include "clitkIO.h"
33 #include "clitkCommon.h"
34 #include "clitkImageCommon.h"
35 #include "clitkDecomposeAndReconstruct_ggo.h"
36 #include "clitkDecomposeThroughErosionImageFilter.h"
37 #include "clitkReconstructThroughDilationImageFilter.h"
38 #include "clitkDecomposeAndReconstructImageFilter.h"
39
40 //itk include
41 #include "itkLightObject.h"
42
43 namespace clitk 
44 {
45
46
47   class ITK_EXPORT DecomposeAndReconstructGenericFilter : public itk::LightObject
48   {
49   public:
50     //----------------------------------------
51     // ITK
52     //----------------------------------------
53     typedef DecomposeAndReconstructGenericFilter                   Self;
54     typedef itk::LightObject                   Superclass;
55     typedef itk::SmartPointer<Self>            Pointer;
56     typedef itk::SmartPointer<const Self>      ConstPointer;
57    
58     // Method for creation through the object factory
59     itkNewMacro(Self);  
60
61     // Run-time type information (and related methods)
62     itkTypeMacro( DecomposeAndReconstructGenericFilter, LightObject );
63
64
65     //----------------------------------------
66     // Typedefs
67     //----------------------------------------
68
69
70     //----------------------------------------
71     // Set & Get
72     //----------------------------------------    
73     void SetArgsInfo(const args_info_clitkDecomposeAndReconstruct & a)
74     {
75       m_ArgsInfo=a;
76       m_Verbose=m_ArgsInfo.verbose_flag;
77       m_InputFileName=m_ArgsInfo.input_arg;
78     }
79     
80     
81     //----------------------------------------  
82     // Update
83     //----------------------------------------  
84     void Update();
85
86   protected:
87
88     //----------------------------------------  
89     // Constructor & Destructor
90     //----------------------------------------  
91     DecomposeAndReconstructGenericFilter();
92     ~DecomposeAndReconstructGenericFilter() {};
93
94     
95     //----------------------------------------  
96     // Templated members
97     //----------------------------------------  
98     template <unsigned int Dimension>  void UpdateWithDim(std::string PixelType);
99     template <unsigned int Dimension, class PixelType>  void UpdateWithDimAndPixelType();
100
101
102     //----------------------------------------  
103     // Data members
104     //----------------------------------------
105     args_info_clitkDecomposeAndReconstruct m_ArgsInfo;
106     bool m_Verbose;
107     std::string m_InputFileName;
108
109   };
110
111
112 } // end namespace clitk
113
114 #ifndef ITK_MANUAL_INSTANTIATION
115 #include "clitkDecomposeAndReconstructGenericFilter.txx"
116 #endif
117
118 #endif // #define clitkDecomposeAndReconstructGenericFilter_h