]> Creatis software - clitk.git/blob - filters/clitkBinarizeImageGenericFilter.h
More MSVC stuff
[clitk.git] / filters / clitkBinarizeImageGenericFilter.h
1 /*=========================================================================
2
3   Program:   clitk
4   Module:    $RCSfile: clitkBinarizeImageGenericFilter.h,v $
5   Language:  C++
6   Date:      $Date: 2010/02/03 10:54:58 $
7   Version:   $Revision: 1.2 $
8   Author :   Jef Vandemeulebroucke <jef@creatis.insa-lyon.fr>
9              David Sarrut (david.sarrut@creatis.insa-lyon.fr)
10
11   Copyright (C) 2008
12   Léon Bérard cancer center    http://oncora1.lyon.fnclcc.fr
13   CREATIS                      http://www.creatis.insa-lyon.fr
14
15   This program is free software: you can redistribute it and/or modify
16   it under the terms of the GNU General Public License as published by
17   the Free Software Foundation, version 3 of the License.
18
19   This program is distributed in the hope that it will be useful,
20   but WITHOUT ANY WARRANTY; without even the implied warranty of
21   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22   GNU General Public License for more details.
23
24   You should have received a copy of the GNU General Public License
25   along with this program.  If not, see <http://www.gnu.org/licenses/>.
26
27   =========================================================================*/
28
29 #ifndef CLITKBINARIZEIMAGEGENERICFILTER_H
30 #define CLITKBINARIZEIMAGEGENERICFILTER_H
31
32 // clitk include
33 #include "clitkIO.h"
34 #include "clitkCommon.h"
35 #include "clitkImageToImageGenericFilter.h"
36
37 //--------------------------------------------------------------------
38 namespace clitk 
39 {
40   
41   template<class args_info_type>
42   class ITK_EXPORT BinarizeImageGenericFilter: 
43     public ImageToImageGenericFilter<BinarizeImageGenericFilter<args_info_type> >
44   {
45     
46   public:
47
48     //--------------------------------------------------------------------
49     BinarizeImageGenericFilter();
50
51     //--------------------------------------------------------------------
52     typedef BinarizeImageGenericFilter         Self;
53     typedef itk::SmartPointer<Self>            Pointer;
54     typedef itk::SmartPointer<const Self>      ConstPointer;
55    
56     //--------------------------------------------------------------------
57     // Method for creation through the object factory
58     // and Run-time type information (and related methods)
59     itkNewMacro(Self);  
60     itkTypeMacro(BinarizeImageGenericFilter, LightObject);
61
62     //--------------------------------------------------------------------
63     void SetArgsInfo(const args_info_type & a);
64
65     //--------------------------------------------------------------------
66     // Main function called each time the filter is updated
67     template<class InputImageType>  
68     void UpdateWithInputImageType();
69
70   protected:
71     template<unsigned int Dim> void InitializeImageType();
72     args_info_type mArgsInfo;
73     
74   }; // end class
75   //--------------------------------------------------------------------
76     
77 } // end namespace clitk
78
79 #ifndef ITK_MANUAL_INSTANTIATION
80 #include "clitkBinarizeImageGenericFilter.txx"
81 #endif
82
83 #endif // #define clitkBinarizeImageGenericFilter_h