]> Creatis software - clitk.git/blob - filters/clitkBinarizeImageGenericFilter.h
- correct bug: string pixeltype is different in ITK and VTK
[clitk.git] / filters / clitkBinarizeImageGenericFilter.h
1 /*=========================================================================
2
3   Program:   clitk
4   Module:    $RCSfile: clitkBinarizeImageGenericFilter.h,v $
5   Language:  C++
6   Date:      $Date: 2010/03/24 10:48:09 $
7   Version:   $Revision: 1.3 $
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 "clitkImageToImageGenericFilter.h"
35
36 //--------------------------------------------------------------------
37 namespace clitk 
38 {
39   
40   template<class args_info_type>
41   class ITK_EXPORT BinarizeImageGenericFilter: 
42     public ImageToImageGenericFilter<BinarizeImageGenericFilter<args_info_type> >
43   {
44     
45   public:
46
47     //--------------------------------------------------------------------
48     BinarizeImageGenericFilter();
49
50     //--------------------------------------------------------------------
51     typedef BinarizeImageGenericFilter         Self;
52     typedef itk::SmartPointer<Self>            Pointer;
53     typedef itk::SmartPointer<const Self>      ConstPointer;
54    
55     //--------------------------------------------------------------------
56     // Method for creation through the object factory
57     // and Run-time type information (and related methods)
58     itkNewMacro(Self);  
59     itkTypeMacro(BinarizeImageGenericFilter, LightObject);
60
61     //--------------------------------------------------------------------
62     void SetArgsInfo(const args_info_type & a);
63
64     //--------------------------------------------------------------------
65     // Main function called each time the filter is updated
66     template<class InputImageType>  
67     void UpdateWithInputImageType();
68
69   protected:
70     template<unsigned int Dim> void InitializeImageType();
71     args_info_type mArgsInfo;
72     
73   }; // end class
74   //--------------------------------------------------------------------
75     
76 } // end namespace clitk
77
78 #ifndef ITK_MANUAL_INSTANTIATION
79 #include "clitkBinarizeImageGenericFilter.txx"
80 #endif
81
82 #endif // #define clitkBinarizeImageGenericFilter_h