]> Creatis software - clitk.git/blob - segmentation/clitkLevelSetSegmentationGenericFilter.h
Set mode of regular files to non-executable (644) instead of executable (755)
[clitk.git] / segmentation / clitkLevelSetSegmentationGenericFilter.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 clitkLevelSetSegmentationGenericFilter_h
19 #define clitkLevelSetSegmentationGenericFilter_h
20
21 /* =================================================
22  * @file   clitkLevelSetSegmentationGenericFilter.h
23  * @author Jef Vandemeulebroucke <jef@creatis.insa-lyon.fr>
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 "clitkLevelSetSegmentation_ggo.h"
36
37 //itk include
38 #include "itkLightObject.h"
39 #include "itkGeodesicActiveContourLevelSetImageFilter.h"
40 #include "itkBinaryThresholdImageFilter.h"
41 #include "itkCurvatureAnisotropicDiffusionImageFilter.h"
42 #include "itkGradientMagnitudeRecursiveGaussianImageFilter.h"
43 #include "itkGradientMagnitudeImageFilter.h"
44 #include "itkSigmoidImageFilter.h"
45
46 namespace clitk 
47 {
48
49
50   class ITK_EXPORT LevelSetSegmentationGenericFilter : public itk::LightObject
51   {
52   public:
53     //----------------------------------------
54     // ITK
55     //----------------------------------------
56     typedef LevelSetSegmentationGenericFilter                   Self;
57     typedef itk::LightObject                   Superclass;
58     typedef itk::SmartPointer<Self>            Pointer;
59     typedef itk::SmartPointer<const Self>      ConstPointer;
60    
61     // Method for creation through the object factory
62     itkNewMacro(Self);  
63
64     // Run-time type information (and related methods)
65     itkTypeMacro( LevelSetSegmentationGenericFilter, LightObject );
66
67
68     //----------------------------------------
69     // Typedefs
70     //----------------------------------------
71
72
73     //----------------------------------------
74     // Set & Get
75     //----------------------------------------    
76     void SetArgsInfo(args_info_clitkLevelSetSegmentation a)
77     {
78       m_ArgsInfo=a;
79       m_Verbose=m_ArgsInfo.verbose_flag;
80     }
81
82     //----------------------------------------  
83     // Update
84     //----------------------------------------  
85     void Update();
86
87   protected:
88
89     //----------------------------------------  
90     // Constructor & Destructor
91     //----------------------------------------  
92     LevelSetSegmentationGenericFilter();
93     ~LevelSetSegmentationGenericFilter() {};
94
95     
96     //----------------------------------------  
97     // Templated members
98     //----------------------------------------  
99     template <unsigned int Dimension>  void UpdateWithDim(std::string PixelType);
100     template <unsigned int Dimension, class PixelType>  void UpdateWithDimAndPixelType();
101
102
103     //----------------------------------------  
104     // Data members
105     //----------------------------------------
106     bool m_Verbose;
107     args_info_clitkLevelSetSegmentation m_ArgsInfo;
108   };
109
110
111 } // end namespace clitk
112
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "clitkLevelSetSegmentationGenericFilter.txx"
115 #endif
116
117 #endif // #define clitkLevelSetSegmentationGenericFilter_h