]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/BasicFilters/BinaryThresholdImageFilter.h
38ec83af2fa08961a6061362760a51cff902f1d1
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / BinaryThresholdImageFilter.h
1 #ifndef __CPPLUGINS__PLUGINS__BINARYTHRESHOLDIMAGEFILTER__H__
2 #define __CPPLUGINS__PLUGINS__BINARYTHRESHOLDIMAGEFILTER__H__
3
4 #include <cpPlugins/BasicFilters/cpPluginsBasicFilters_Export.h>
5 #include <cpPlugins/Interface/BaseProcessObjects.h>
6
7 namespace cpPlugins
8 {
9   namespace BasicFilters
10   {
11     /**
12      */
13     class cpPluginsBasicFilters_EXPORT BinaryThresholdImageFilter
14       : public cpPlugins::Interface::ImageToImageFilter
15     {
16     public:
17       typedef BinaryThresholdImageFilter               Self;
18       typedef cpPlugins::Interface::ImageToImageFilter Superclass;
19       typedef itk::SmartPointer< Self >                Pointer;
20       typedef itk::SmartPointer< const Self >          ConstPointer;
21
22     public:
23       itkNewMacro( Self );
24       itkTypeMacro(
25         BinaryThresholdImageFilter,
26         cpPluginsInterfaceImageToImageFilter
27         );
28       cpPlugins_Id_Macro(
29         cpPlugins::BasicFilters::BinaryThresholdImageFilter,
30         ImageToBinaryImageFilter
31         );
32
33     protected:
34       BinaryThresholdImageFilter( );
35       virtual ~BinaryThresholdImageFilter( );
36
37       virtual std::string _GenerateData( );
38
39       template< class I >
40         inline std::string _GD0( itk::DataObject* image );
41
42       template< class I, class O >
43         inline std::string _RealGD( itk::DataObject* image );
44
45     private:
46       // Purposely not implemented
47       BinaryThresholdImageFilter( const Self& );
48       Self& operator=( const Self& );
49     };
50
51     // ---------------------------------------------------------------------
52     CPPLUGINS_INHERIT_PROVIDER( BinaryThresholdImageFilter );
53
54   } // ecapseman
55
56 } // ecapseman
57
58 #endif // __CPPLUGINS__PLUGINS__BINARYTHRESHOLDIMAGEFILTER__H__
59
60 // eof - $RCSfile$