]> Creatis software - cpPlugins.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Sun, 30 Oct 2016 02:53:07 +0000 (21:53 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Sun, 30 Oct 2016 02:53:07 +0000 (21:53 -0500)
13 files changed:
appli/bash/CMakeLists.txt
appli/bash/Config.h.in
appli/bash/CreateRealConfig.cxx [new file with mode: 0644]
lib/CMakeLists.txt
plugins/ImageGradientFilters/FluxImageFilter.cxx
plugins/ImageGradientFilters/FluxImageFilter.h
plugins/ImageGradientFilters/GulsunTekImageFilter.cxx
plugins/ImageGradientFilters/MFluxImageFilter.cxx
plugins/ImageGradientFilters/MFluxImageFilter.h
plugins/ImageParaMorphologyFilters/BinaryDilateParaImageFilter.cxx
plugins/ImageParaMorphologyFilters/BinaryDilateParaImageFilter.h
plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.cxx
plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.h

index c945e6a2786a9b1b7f874a0f71ffc5360f223435..53037b83f16acfa808371dd4c0c9f17927f073f9 100644 (file)
@@ -10,6 +10,7 @@ INCLUDE_DIRECTORIES(
 
 SET(
   _bash_APPS
+  CreateRealConfig
   CreateInstances
   CreateDemanglers
   CreatePlugins
index 953661b2238f24507c35357cc07204bc6f2161f4..859965d482f7eb749d3b32ee3b82df14de7155fb 100644 (file)
@@ -22,6 +22,7 @@
 #define cpPlugins_CONFIG_VECTORS            "@cpPlugins_CONFIG_VECTORS@"
 #define cpPlugins_CONFIG_DIFFUSIONTENSORS   "@cpPlugins_CONFIG_DIFFUSIONTENSORS@"
 #define cpPlugins_CONFIG_MATRICES           "@cpPlugins_CONFIG_MATRICES@"
+#define cpPlugins_ALL_CONFIGS               "@cpPlugins_ALL_CONFIGS@"
 
 // -------------------------------------------------------------------------
 #define cpPlugins_bash_OS_@CMAKE_SYSTEM_NAME@
diff --git a/appli/bash/CreateRealConfig.cxx b/appli/bash/CreateRealConfig.cxx
new file mode 100644 (file)
index 0000000..e9737d5
--- /dev/null
@@ -0,0 +1,37 @@
+#include <bash/Config.h>
+
+// -------------------------------------------------------------------------
+int main( int argc, char* argv[] )
+{
+  // Get inputs
+  if( argc < 2 )
+  {
+    std::cerr << "Usage: " << argv[ 0 ] << " output_file" << std::endl;
+    return( 1 );
+
+  } // fi
+  std::string output_filename = argv[ 1 ];
+
+  std::stringstream data;
+  data
+    << "#ifndef __cpPlugins__RealConfig__h__" << std::endl
+    << "#define __cpPlugins__RealConfig__h__" << std::endl
+    << std::endl;
+
+  TStrings tokens;
+  cpPlugins_bash::Tokenize( tokens, cpPlugins_ALL_CONFIGS, ";" );
+  for( auto t = tokens.begin( ); t != tokens.end( ); ++t )
+    data << "#define " << *t << std::endl;
+
+  data << std::endl << "#endif // __cpPlugins__RealConfig__h__" << std::endl;
+  if( !( cpPlugins_bash::Write( data.str( ), output_filename ) ) )
+  {
+    std::cerr << "Error writing file." << std::endl;
+    return( 1 );
+
+  } // fi
+
+  return( 0 );
+}
+
+// eof - $RCSfile$
index 4d6f6008aaa6118172437146268925cf4f505349..f10db6baea6d6623727d25687114a252a71bebfc 100644 (file)
@@ -22,12 +22,12 @@ SUBDIRS(Instances)
 ## == Main library ==
 ## ==================
 
-FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "#ifndef __cpPlugins__RealConfig__h__\n")
-FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "#define __cpPlugins__RealConfig__h__\n\n")
-FOREACH(_def ${cpPlugins_ALL_CONFIGS})
-  FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "#define ${_def}\n")
-ENDFOREACH(_def)
-FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h "\n#endif // __cpPlugins__RealConfig__h__\n")
+ADD_CUSTOM_COMMAND(
+  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
+  COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins
+  COMMAND ${cpPlugins_bash_CreateRealConfig_APP} ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
+  DEPENDS ${cpPlugins_bash_CreateRealConfig_APP}
+  )
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/Instances)
 CompileLibFromDir(cpPlugins SHARED cpPlugins ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h)
 TARGET_LINK_LIBRARIES(
index 806703d4caf6b3fc90e9686f8e21067624583448..8231a82ae48fb673e11051fddb21f34b3ff8f6d2 100644 (file)
@@ -1,22 +1,26 @@
-#include <plugins/ImageGradientFilters/FluxImageFilter.h>
+#include <ImageGradientFilters/FluxImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
 
-#include <cpExtensions/Algorithms/ImageFunctionFilter.h>
-#include <cpExtensions/Algorithms/FluxMedialness.h>
+/* TODO
+   #include <cpExtensions/Algorithms/ImageFunctionFilter.h>
+   #include <cpExtensions/Algorithms/FluxMedialness.h>
 
-#include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
-#include <cpExtensions/Algorithms/FluxMedialness.hxx>
-#include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
-#include <itkImageFunction.hxx>
+   #include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
+   #include <cpExtensions/Algorithms/FluxMedialness.hxx>
+   #include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
+   #include <itkImageFunction.hxx>
+*/
 
 // -------------------------------------------------------------------------
 cpPluginsImageGradientFilters::FluxImageFilter::
 FluxImageFilter( )
   : Superclass( )
 {
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Mask", false, false );
-  this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+  typedef cpPlugins::DataObjects::Image _TImage;
+  this->_ConfigureInput< _TImage >( "Input", true, false );
+  this->_ConfigureInput< _TImage >( "Mask", false, false );
+  this->_ConfigureOutput< _TImage >( "Output" );
 
   this->m_Parameters.ConfigureAsReal( "MinRadius" );
   this->m_Parameters.ConfigureAsReal( "MaxRadius" );
@@ -39,9 +43,11 @@ cpPluginsImageGradientFilters::FluxImageFilter::
 void cpPluginsImageGradientFilters::FluxImageFilter::
 _GenerateData( )
 {
-  auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
-  else this->_Error( "Invalid input image." );
+  /* TODO
+     auto o = this->GetInputData( "Input" );
+     cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
+     else this->_Error( "Invalid input image." );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -49,27 +55,29 @@ template< class _TImage >
 void cpPluginsImageGradientFilters::FluxImageFilter::
 _GD0( _TImage* image )
 {
-  typedef typename _TImage::PixelType _TGradient;
-  typedef cpExtensions::Algorithms::FluxMedialness< _TImage > _TFunction;
-  typedef typename _TFunction::TOutput _TScalar;
-  typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
-  typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
+  /* TODO
+     typedef typename _TImage::PixelType _TGradient;
+     typedef cpExtensions::Algorithms::FluxMedialness< _TImage > _TFunction;
+     typedef typename _TFunction::TOutput _TScalar;
+     typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
+     typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
 
-  auto filter = this->_CreateITK< _TFilter >( );
-  auto function = filter->GetFunction( );
-  if( function == NULL )
-  {
-    filter->SetFunction( _TFunction::New( ) );
-    function = filter->GetFunction( );
+     auto filter = this->_CreateITK< _TFilter >( );
+     auto function = filter->GetFunction( );
+     if( function == NULL )
+     {
+     filter->SetFunction( _TFunction::New( ) );
+     function = filter->GetFunction( );
 
-  } // fi
-  function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
-  function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
-  function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
-  function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
-  filter->SetInput( image );
-  filter->Update( );
-  this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+     } // fi
+     function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
+     function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
+     function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
+     function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
+     filter->SetInput( image );
+     filter->Update( );
+     this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+  */
 }
 
 // eof - $RCSfile$
index 321a8e9ba04c21f8caae3521ab238e39dd95c850..2c4b4f8c4139e6230c8ebbcbcaad06fc393ca7ec 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __cpPluginsImageGradientFilters__FluxImageFilter__h__
 #define __cpPluginsImageGradientFilters__FluxImageFilter__h__
 
-#include <plugins/cpPluginsImageGradientFilters_Export.h>
+#include <cpPluginsImageGradientFilters_Export.h>
 #include <cpPlugins/BaseObjects/ProcessObject.h>
 
 namespace cpPluginsImageGradientFilters
@@ -19,7 +19,7 @@ namespace cpPluginsImageGradientFilters
 
   protected:
     template< class _TImage >
-      inline void _GD0( _TImage* image );
+    inline void _GD0( _TImage* image );
   };
 
 } // ecapseman
index 52525d9c1633d3698c54e8bd2328c7e2678782d7..4c4689788472493282aa16d042a8a4ab41f03092 100644 (file)
@@ -1,6 +1,6 @@
 #include <ImageGradientFilters/GulsunTekImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demangler.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
  
 /* TODO
    #include <cpExtensions/Algorithms/ImageFunctionFilter.h>
@@ -17,9 +17,11 @@ cpPluginsImageGradientFilters::GulsunTekImageFilter::
 GulsunTekImageFilter( )
   : Superclass( )
 {
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Mask", false, false );
-  this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+  typedef cpPlugins::DataObjects::Image _TImage;
+
+  this->_ConfigureInput< _TImage >( "Input", true, false );
+  this->_ConfigureInput< _TImage >( "Mask", false, false );
+  this->_ConfigureOutput< _TImage >( "Output" );
 
   this->m_Parameters.ConfigureAsReal( "MinRadius" );
   this->m_Parameters.ConfigureAsReal( "MaxRadius" );
@@ -42,9 +44,11 @@ cpPluginsImageGradientFilters::GulsunTekImageFilter::
 void cpPluginsImageGradientFilters::GulsunTekImageFilter::
 _GenerateData( )
 {
-  auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
-  else this->_Error( "Invalid input image." );
+  /* TODO
+     auto o = this->GetInputData( "Input" );
+     cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
+     else this->_Error( "Invalid input image." );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -52,39 +56,41 @@ template< class _TImage >
 void cpPluginsImageGradientFilters::GulsunTekImageFilter::
 _GD0( _TImage* image )
 {
-  typedef itk::Image< char, _TImage::ImageDimension > _TChar;
-  typedef itk::Image< short, _TImage::ImageDimension > _TShort;
-  typedef itk::Image< int, _TImage::ImageDimension > _TInt;
-  typedef itk::Image< long, _TImage::ImageDimension > _TLong;
-  typedef itk::Image< float, _TImage::ImageDimension > _TFloat;
-  typedef itk::Image< double, _TImage::ImageDimension > _TDouble;
-  typedef itk::Image< unsigned char, _TImage::ImageDimension > _TUChar;
-  typedef itk::Image< unsigned short, _TImage::ImageDimension > _TUShort;
-  typedef itk::Image< unsigned int, _TImage::ImageDimension > _TUInt;
-  typedef itk::Image< unsigned long, _TImage::ImageDimension > _TULong;
+  /* TODO
+     typedef itk::Image< char, _TImage::ImageDimension > _TChar;
+     typedef itk::Image< short, _TImage::ImageDimension > _TShort;
+     typedef itk::Image< int, _TImage::ImageDimension > _TInt;
+     typedef itk::Image< long, _TImage::ImageDimension > _TLong;
+     typedef itk::Image< float, _TImage::ImageDimension > _TFloat;
+     typedef itk::Image< double, _TImage::ImageDimension > _TDouble;
+     typedef itk::Image< unsigned char, _TImage::ImageDimension > _TUChar;
+     typedef itk::Image< unsigned short, _TImage::ImageDimension > _TUShort;
+     typedef itk::Image< unsigned int, _TImage::ImageDimension > _TUInt;
+     typedef itk::Image< unsigned long, _TImage::ImageDimension > _TULong;
 
-  auto m = this->GetInput( "Mask" );
-  auto ci = m->GetITK< _TChar >( );
-  auto si = m->GetITK< _TShort >( );
-  auto ii = m->GetITK< _TInt >( );
-  auto li = m->GetITK< _TLong >( );
-  auto fi = m->GetITK< _TFloat >( );
-  auto di = m->GetITK< _TDouble >( );
-  auto uci = m->GetITK< _TUChar >( );
-  auto usi = m->GetITK< _TUShort >( );
-  auto uii = m->GetITK< _TUInt >( );
-  auto uli = m->GetITK< _TULong >( );
-  if     (  ci != NULL ) this->_GD1( image,  ci );
-  else if(  si != NULL ) this->_GD1( image,  si );
-  else if(  ii != NULL ) this->_GD1( image,  ii );
-  else if(  li != NULL ) this->_GD1( image,  li );
-  else if(  fi != NULL ) this->_GD1( image,  fi );
-  else if(  di != NULL ) this->_GD1( image,  di );
-  else if( uci != NULL ) this->_GD1( image, uci );
-  else if( usi != NULL ) this->_GD1( image, usi );
-  else if( uii != NULL ) this->_GD1( image, uii );
-  else if( uli != NULL ) this->_GD1( image, uli );
-  else                   this->_GD1( image, ci );
+     auto m = this->GetInput( "Mask" );
+     auto ci = m->GetITK< _TChar >( );
+     auto si = m->GetITK< _TShort >( );
+     auto ii = m->GetITK< _TInt >( );
+     auto li = m->GetITK< _TLong >( );
+     auto fi = m->GetITK< _TFloat >( );
+     auto di = m->GetITK< _TDouble >( );
+     auto uci = m->GetITK< _TUChar >( );
+     auto usi = m->GetITK< _TUShort >( );
+     auto uii = m->GetITK< _TUInt >( );
+     auto uli = m->GetITK< _TULong >( );
+     if     (  ci != NULL ) this->_GD1( image,  ci );
+     else if(  si != NULL ) this->_GD1( image,  si );
+     else if(  ii != NULL ) this->_GD1( image,  ii );
+     else if(  li != NULL ) this->_GD1( image,  li );
+     else if(  fi != NULL ) this->_GD1( image,  fi );
+     else if(  di != NULL ) this->_GD1( image,  di );
+     else if( uci != NULL ) this->_GD1( image, uci );
+     else if( usi != NULL ) this->_GD1( image, usi );
+     else if( uii != NULL ) this->_GD1( image, uii );
+     else if( uli != NULL ) this->_GD1( image, uli );
+     else                   this->_GD1( image, ci );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -92,29 +98,31 @@ template< class _TImage, class _TMask >
 void cpPluginsImageGradientFilters::GulsunTekImageFilter::
 _GD1( _TImage* image, _TMask* mask )
 {
-  typedef typename _TImage::PixelType _TGradient;
-  typedef cpExtensions::Algorithms::GulsunTekMedialness< _TImage, _TMask > _TFunction;
-  typedef typename _TFunction::TOutput _TScalar;
-  typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
-  typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
+  /* TODO
+     typedef typename _TImage::PixelType _TGradient;
+     typedef cpExtensions::Algorithms::GulsunTekMedialness< _TImage, _TMask > _TFunction;
+     typedef typename _TFunction::TOutput _TScalar;
+     typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
+     typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
 
-  auto filter = this->_CreateITK< _TFilter >( );
-  auto function = filter->GetFunction( );
-  if( function == NULL )
-  {
-    filter->SetFunction( _TFunction::New( ) );
-    function = filter->GetFunction( );
+     auto filter = this->_CreateITK< _TFilter >( );
+     auto function = filter->GetFunction( );
+     if( function == NULL )
+     {
+     filter->SetFunction( _TFunction::New( ) );
+     function = filter->GetFunction( );
 
-  } // fi
-  function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
-  function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
-  function->SetProfileSampling( this->m_Parameters.GetUint( "ProfileSampling" ) );
-  function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
-  filter->SetInput( image );
-  if( mask != NULL )
-    function->SetMask( mask );
-  filter->Update( );
-  this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+     } // fi
+     function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
+     function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
+     function->SetProfileSampling( this->m_Parameters.GetUint( "ProfileSampling" ) );
+     function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
+     filter->SetInput( image );
+     if( mask != NULL )
+     function->SetMask( mask );
+     filter->Update( );
+     this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+  */
 }
 
 // eof - $RCSfile$
index d1661187e0fdcff3c2530bb4179028418591b37e..8575a59f432af1a52e5b75f65f76f1ee3adf5626 100644 (file)
@@ -1,22 +1,26 @@
-#include <plugins/ImageGradientFilters/MFluxImageFilter.h>
+#include <ImageGradientFilters/MFluxImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
+#include <cpPlugins/DataObjects/Image_Demanglers.h>
 
-#include <cpExtensions/Algorithms/ImageFunctionFilter.h>
-#include <cpExtensions/Algorithms/MFluxMedialness.h>
+/* TODO
+   #include <cpExtensions/Algorithms/ImageFunctionFilter.h>
+   #include <cpExtensions/Algorithms/MFluxMedialness.h>
 
-#include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
-#include <cpExtensions/Algorithms/MFluxMedialness.hxx>
-#include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
-#include <itkImageFunction.hxx>
+   #include <cpExtensions/Algorithms/ImageFunctionFilter.hxx>
+   #include <cpExtensions/Algorithms/MFluxMedialness.hxx>
+   #include <cpExtensions/Algorithms/GradientImageFunctionBase.hxx>
+   #include <itkImageFunction.hxx>
+*/
 
 // -------------------------------------------------------------------------
 cpPluginsImageGradientFilters::MFluxImageFilter::
 MFluxImageFilter( )
   : Superclass( )
 {
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Input", true, false );
-  this->_ConfigureInput< cpPlugins::DataObjects::Image >( "Mask", false, false );
-  this->_ConfigureOutput< cpPlugins::DataObjects::Image >( "Output" );
+  typedef cpPlugins::DataObjects::Image _TImage;
+  this->_ConfigureInput< _TImage >( "Input", true, false );
+  this->_ConfigureInput< _TImage >( "Mask", false, false );
+  this->_ConfigureOutput< _TImage >( "Output" );
 
   this->m_Parameters.ConfigureAsReal( "MinRadius" );
   this->m_Parameters.ConfigureAsReal( "MaxRadius" );
@@ -39,9 +43,11 @@ cpPluginsImageGradientFilters::MFluxImageFilter::
 void cpPluginsImageGradientFilters::MFluxImageFilter::
 _GenerateData( )
 {
-  auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
-  else this->_Error( "Invalid input image." );
+  /* TODO
+     auto o = this->GetInputData( "Input" );
+     cpPlugins_Demangle_ImageCovariantVectors_Dims( o, _GD0 );
+     else this->_Error( "Invalid input image." );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -49,27 +55,29 @@ template< class _TImage >
 void cpPluginsImageGradientFilters::MFluxImageFilter::
 _GD0( _TImage* image )
 {
-  typedef typename _TImage::PixelType _TGradient;
-  typedef cpExtensions::Algorithms::MFluxMedialness< _TImage > _TFunction;
-  typedef typename _TFunction::TOutput _TScalar;
-  typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
-  typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
+  /* TODO
+     typedef typename _TImage::PixelType _TGradient;
+     typedef cpExtensions::Algorithms::MFluxMedialness< _TImage > _TFunction;
+     typedef typename _TFunction::TOutput _TScalar;
+     typedef itk::Image< _TScalar, _TImage::ImageDimension > _TOutputImage;
+     typedef cpExtensions::Algorithms::ImageFunctionFilter< _TImage, _TOutputImage, _TFunction > _TFilter;
 
-  auto filter = this->_CreateITK< _TFilter >( );
-  auto function = filter->GetFunction( );
-  if( function == NULL )
-  {
-    filter->SetFunction( _TFunction::New( ) );
-    function = filter->GetFunction( );
+     auto filter = this->_CreateITK< _TFilter >( );
+     auto function = filter->GetFunction( );
+     if( function == NULL )
+     {
+     filter->SetFunction( _TFunction::New( ) );
+     function = filter->GetFunction( );
 
-  } // fi
-  function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
-  function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
-  function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
-  function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
-  filter->SetInput( image );
-  filter->Update( );
-  this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+     } // fi
+     function->SetMinRadius( this->m_Parameters.GetReal( "MinRadius" ) );
+     function->SetMaxRadius( this->m_Parameters.GetReal( "MaxRadius" ) );
+     function->SetRadiusStep( this->m_Parameters.GetReal( "RadiusStep" ) );
+     function->SetRadialSampling( this->m_Parameters.GetUint( "RadialSampling" ) );
+     filter->SetInput( image );
+     filter->Update( );
+     this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
+  */
 }
 
 // eof - $RCSfile$
index 938ffd957d351ab1dd6bffd5c6e6d8ea7cd0b1c8..58fb656b4d0006002b8be8988daf8f09c76d9534 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __cpPluginsImageGradientFilters__MFluxImageFilter__h__
 #define __cpPluginsImageGradientFilters__MFluxImageFilter__h__
 
-#include <plugins/cpPluginsImageGradientFilters_Export.h>
+#include <cpPluginsImageGradientFilters_Export.h>
 #include <cpPlugins/BaseObjects/ProcessObject.h>
 
 namespace cpPluginsImageGradientFilters
@@ -19,7 +19,7 @@ namespace cpPluginsImageGradientFilters
 
   protected:
     template< class _TImage >
-      inline void _GD0( _TImage* image );
+    inline void _GD0( _TImage* image );
   };
 
 } // ecapseman
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$
index 89dbea5a2b9934e49fb29fd0ef115300c9fddf00..67615c0f7b78f413f6e55dee03557c21da83cf82 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __cpPluginsImageParaMorphologyFilters__BinaryDilateParaImageFilter__h__
 #define __cpPluginsImageParaMorphologyFilters__BinaryDilateParaImageFilter__h__
 
-#include <plugins/cpPluginsImageParaMorphologyFilters_Export.h>
+#include <cpPluginsImageParaMorphologyFilters_Export.h>
 #include <cpPlugins/BaseObjects/ProcessObject.h>
 
 namespace cpPluginsImageParaMorphologyFilters
@@ -19,7 +19,7 @@ namespace cpPluginsImageParaMorphologyFilters
 
   protected:
     template< class _TImage >
-      inline void _GD0( _TImage* image );
+    inline void _GD0( _TImage* image );
   };
 
 } // ecapseman
index c03f7a668df5e55add0ede3a7c74bfdf6b711db3..c123e19fb01b6553ae6148f3c9dc4ee0274d7faa 100644 (file)
@@ -1,19 +1,23 @@
-#include <plugins/ImageParaMorphologyFilters/BinaryErodeParaImageFilter.h>
+#include <ImageParaMorphologyFilters/BinaryErodeParaImageFilter.h>
 #include <cpPlugins/DataObjects/Image.h>
 
-#include <itkBinaryErodeParaImageFilter.h>
-#include <itkBinaryErodeParaImageFilter.hxx>
-#include <itkBinaryThresholdImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
-#include <itkParabolicErodeDilateImageFilter.hxx>
+/* TODO
+   #include <itkBinaryErodeParaImageFilter.h>
+   #include <itkBinaryErodeParaImageFilter.hxx>
+   #include <itkBinaryThresholdImageFilter.hxx>
+   #include <itkUnaryFunctorImageFilter.hxx>
+   #include <itkParabolicErodeDilateImageFilter.hxx>
+*/
 
 // -------------------------------------------------------------------------
 cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter::
 BinaryErodeParaImageFilter( )
   : 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::BinaryErodeParaImageFilter::
 void cpPluginsImageParaMorphologyFilters::BinaryErodeParaImageFilter::
 _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::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( ) );
+  /* TODO
+     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$
index 77eabf7f97832713802167492904cb00be9ec157..2e28ac6347d275a7dfc99bfb2c3067379a46718c 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __cpPluginsImageParaMorphologyFilters__BinaryErodeParaImageFilter__h__
 #define __cpPluginsImageParaMorphologyFilters__BinaryErodeParaImageFilter__h__
 
-#include <plugins/cpPluginsImageParaMorphologyFilters_Export.h>
+#include <cpPluginsImageParaMorphologyFilters_Export.h>
 #include <cpPlugins/BaseObjects/ProcessObject.h>
 
 namespace cpPluginsImageParaMorphologyFilters
@@ -19,7 +19,7 @@ namespace cpPluginsImageParaMorphologyFilters
 
   protected:
     template< class _TImage >
-      inline void _GD0( _TImage* image );
+    inline void _GD0( _TImage* image );
   };
 
 } // ecapseman