]> Creatis software - cpPlugins.git/blobdiff - plugins/ImageParaMorphologyFilters/BinaryDilateParaImageFilter.cxx
...
[cpPlugins.git] / plugins / ImageParaMorphologyFilters / BinaryDilateParaImageFilter.cxx
index 6af981bf72078fd2cb23a04f0fa6e85a0a262e56..3f11eaeb1044eff8ae214fc611bf95d1f6746827 100644 (file)
@@ -1,19 +1,23 @@
-#include <plugins/ImageParaMorphologyFilters/BinaryDilateParaImageFilter.h>
+#include <ImageParaMorphologyFilters/BinaryDilateParaImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
 
-#include <itkBinaryDilateParaImageFilter.h>
-#include <itkBinaryDilateParaImageFilter.hxx>
-#include <itkBinaryThresholdImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
-#include <itkParabolicErodeDilateImageFilter.hxx>
+/* TODO
+   #include <itkBinaryDilateParaImageFilter.h>
+   #include <itkBinaryDilateParaImageFilter.hxx>
+   #include <itkBinaryThresholdImageFilter.hxx>
+   #include <itkUnaryFunctorImageFilter.hxx>
+   #include <itkParabolicErodeDilateImageFilter.hxx>
+*/
 
 // -------------------------------------------------------------------------
 cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
 BinaryDilateParaImageFilter( )
   : Superclass( )
 {
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
-  this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+  typedef cpPlugins::DataObjects::Image _TImage;
+
+  this->_ConfigureInput< _TImage >( "Input", true, false );
+  this->_ConfigureOutput< _TImage >( "Output" );
   this->m_Parameters.ConfigureAsReal( "Radius" );
   this->m_Parameters.ConfigureAsBool( "Circular" );
   this->m_Parameters.ConfigureAsBool( "UseImageSpacing" );
@@ -33,9 +37,11 @@ cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
 void cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
 _GenerateData( )
 {
-  auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
-  else this->_Error( "No valid input image." );
+  /* TODO
+     auto o = this->GetInputData( "Input" );
+     cpPlugins_Demangle_ImageScalars_Dims( o, _GD0 );
+     else this->_Error( "No valid input image." );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -43,15 +49,17 @@ template< class _TImage >
 void cpPluginsImageParaMorphologyFilters::BinaryDilateParaImageFilter::
 _GD0( _TImage* image )
 {
-  typedef itk::BinaryDilateParaImageFilter< _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( ) );
+  /* TODO
+     typedef itk::BinaryDilateParaImageFilter< _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$