]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/OtsuThresholdImageFilter.h
...
[cpPlugins.git] / lib / cpPlugins / Plugins / OtsuThresholdImageFilter.h
diff --git a/lib/cpPlugins/Plugins/OtsuThresholdImageFilter.h b/lib/cpPlugins/Plugins/OtsuThresholdImageFilter.h
new file mode 100644 (file)
index 0000000..07c9b75
--- /dev/null
@@ -0,0 +1,55 @@
+#ifndef __CPPLUGINS__PLUGINS__OTSUTHRESHOLDIMAGEFILTER__H__
+#define __CPPLUGINS__PLUGINS__OTSUTHRESHOLDIMAGEFILTER__H__
+
+#include <cpPlugins/Plugins/cpPlugins_Export.h>
+#include <cpPlugins/Interface/ImageToImageFilter.h>
+
+namespace cpPlugins
+{
+  namespace Plugins
+  {
+    /**
+     */
+    class cpPlugins_EXPORT OtsuThresholdImageFilter
+      : public cpPlugins::Interface::ImageToImageFilter
+    {
+    public:
+      typedef OtsuThresholdImageFilter                 Self;
+      typedef cpPlugins::Interface::ImageToImageFilter Superclass;
+      typedef itk::SmartPointer< Self >                Pointer;
+      typedef itk::SmartPointer< const Self >          ConstPointer;
+
+    public:
+      itkNewMacro( Self );
+      itkTypeMacro( OtsuThresholdImageFilter, cpPluginsInterfaceImageToImageFilter );
+
+    protected:
+      OtsuThresholdImageFilter( );
+      virtual ~OtsuThresholdImageFilter( );
+
+      virtual std::string _GenerateData( );
+
+      cpPlugins_Image_Demangle_Methods( OtsuThresholdImageFilter );
+
+      template< class I >
+        std::string _DemangleInput( itk::DataObject* image );
+
+      template< class I, class O >
+        std::string _RealGD( itk::DataObject* image );
+
+    private:
+      // Purposely not implemented
+      OtsuThresholdImageFilter( const Self& );
+      Self& operator=( const Self& );
+    };
+
+    // ---------------------------------------------------------------------
+    CPPLUGINS_INHERIT_PROVIDER( OtsuThresholdImageFilter );
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__PLUGINS__OTSUTHRESHOLDIMAGEFILTER__H__
+
+// eof - $RCSfile$