]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKParaMorphology/BinaryErodeParaImageFilter.cxx
Moved to version 1.0
[cpPlugins.git] / plugins / ITKParaMorphology / BinaryErodeParaImageFilter.cxx
diff --git a/plugins/ITKParaMorphology/BinaryErodeParaImageFilter.cxx b/plugins/ITKParaMorphology/BinaryErodeParaImageFilter.cxx
deleted file mode 100644 (file)
index 30fb4b8..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <ITKParaMorphology/BinaryErodeParaImageFilter.h>
-#include <cpInstances/DataObjects/Image.h>
-#include <cpInstances/DataObjects/Image_Demanglers.h>
-
-#include <itkBinaryErodeParaImageFilter.h>
-
-// -------------------------------------------------------------------------
-cpPluginsITKParaMorphology::BinaryErodeParaImageFilter::
-BinaryErodeParaImageFilter( )
-  : Superclass( )
-{
-  typedef cpInstances::DataObjects::Image _TImage;
-
-  this->_ConfigureInput< _TImage >( "Input", true, false );
-  this->_ConfigureOutput< _TImage >( "Output" );
-  this->m_Parameters.ConfigureAsReal( "Radius", 3 );
-  this->m_Parameters.ConfigureAsBool( "Circular", true );
-  this->m_Parameters.ConfigureAsBool( "UseImageSpacing", false );
-}
-
-// -------------------------------------------------------------------------
-cpPluginsITKParaMorphology::BinaryErodeParaImageFilter::
-~BinaryErodeParaImageFilter( )
-{
-}
-
-// -------------------------------------------------------------------------
-void cpPluginsITKParaMorphology::BinaryErodeParaImageFilter::
-_GenerateData( )
-{
-  auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_Image_ScalarPixels_AllDims_1( o, _GD0 )
-    this->_Error( "No valid input image." );
-}
-
-// -------------------------------------------------------------------------
-template< class _TImage >
-void cpPluginsITKParaMorphology::BinaryErodeParaImageFilter::
-_GD0( _TImage* image )
-{
-  typedef itk::BinaryErodeParaImageFilter< _TImage > _TFilter;
-
-  auto filter = this->_CreateITK< _TFilter >( );
-  filter->SetInput( image );
-  filter->SetRadius( this->m_Parameters.GetReal( "Radius" ) );
-  filter->SetCircular( this->m_Parameters.GetBool( "Circular" ) );
-  filter->SetUseImageSpacing( this->m_Parameters.GetBool( "UseImageSpacing" ) );
-  filter->Update( );
-  this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
-}
-
-// eof - $RCSfile$