1 /*=========================================================================
4 Module: $RCSfile: clitkBinarizeImageGenericFilter.h,v $
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)
12 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
13 CREATIS http://www.creatis.insa-lyon.fr
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.
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.
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/>.
27 =========================================================================*/
29 #ifndef CLITKBINARIZEIMAGEGENERICFILTER_H
30 #define CLITKBINARIZEIMAGEGENERICFILTER_H
34 #include "clitkCommon.h"
35 #include "clitkImageToImageGenericFilter.h"
37 //--------------------------------------------------------------------
41 template<class args_info_type>
42 class ITK_EXPORT BinarizeImageGenericFilter:
43 public ImageToImageGenericFilter<BinarizeImageGenericFilter<args_info_type> >
48 //--------------------------------------------------------------------
49 BinarizeImageGenericFilter();
51 //--------------------------------------------------------------------
52 typedef BinarizeImageGenericFilter Self;
53 typedef itk::SmartPointer<Self> Pointer;
54 typedef itk::SmartPointer<const Self> ConstPointer;
56 //--------------------------------------------------------------------
57 // Method for creation through the object factory
58 // and Run-time type information (and related methods)
60 itkTypeMacro(BinarizeImageGenericFilter, LightObject);
62 //--------------------------------------------------------------------
63 void SetArgsInfo(const args_info_type & a);
65 //--------------------------------------------------------------------
66 // Main function called each time the filter is updated
67 template<class InputImageType>
68 void UpdateWithInputImageType();
71 template<unsigned int Dim> void InitializeImageType();
72 args_info_type mArgsInfo;
75 //--------------------------------------------------------------------
77 } // end namespace clitk
79 #ifndef ITK_MANUAL_INSTANTIATION
80 #include "clitkBinarizeImageGenericFilter.txx"
83 #endif // #define clitkBinarizeImageGenericFilter_h