1 /*=========================================================================
4 Module: $RCSfile: clitkBinarizeImageGenericFilter.h,v $
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)
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 "clitkImageToImageGenericFilter.h"
36 //--------------------------------------------------------------------
40 template<class args_info_type>
41 class ITK_EXPORT BinarizeImageGenericFilter:
42 public ImageToImageGenericFilter<BinarizeImageGenericFilter<args_info_type> >
47 //--------------------------------------------------------------------
48 BinarizeImageGenericFilter();
50 //--------------------------------------------------------------------
51 typedef BinarizeImageGenericFilter Self;
52 typedef itk::SmartPointer<Self> Pointer;
53 typedef itk::SmartPointer<const Self> ConstPointer;
55 //--------------------------------------------------------------------
56 // Method for creation through the object factory
57 // and Run-time type information (and related methods)
59 itkTypeMacro(BinarizeImageGenericFilter, LightObject);
61 //--------------------------------------------------------------------
62 void SetArgsInfo(const args_info_type & a);
64 //--------------------------------------------------------------------
65 // Main function called each time the filter is updated
66 template<class InputImageType>
67 void UpdateWithInputImageType();
70 template<unsigned int Dim> void InitializeImageType();
71 args_info_type mArgsInfo;
74 //--------------------------------------------------------------------
76 } // end namespace clitk
78 #ifndef ITK_MANUAL_INSTANTIATION
79 #include "clitkBinarizeImageGenericFilter.txx"
82 #endif // #define clitkBinarizeImageGenericFilter_h