]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKDistanceMapFilters/SignedMaurerDistanceMapImageFilter.cxx
..
[cpPlugins.git] / plugins / ITKDistanceMapFilters / SignedMaurerDistanceMapImageFilter.cxx
index a8f5767aab96bb31aa785f34aa6785a2ae6ca072..5f5cc64827f14cf5925724aa452cc8b84cf0a20b 100644 (file)
@@ -19,12 +19,8 @@ SignedMaurerDistanceMapImageFilter( )
   this->m_Parameters.ConfigureAsBool( "UseImageSpacing", true );
 
   std::vector< std::string > choices;
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
   choices.push_back( "float" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
   choices.push_back( "double" );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
   this->m_Parameters.ConfigureAsChoices( "OutputResolution", choices );
 }
 
@@ -39,6 +35,7 @@ void cpPluginsITKDistanceMapFilters::SignedMaurerDistanceMapImageFilter::
 _GenerateData( )
 {
   auto o = this->GetInputData( "Input" );
+  std::cout << o << std::endl;
   cpPlugins_Demangle_Image_ScalarPixels_VisualDims_1( o, _GD0 )
     this->_Error( "Invalid input image dimension." );
 }
@@ -50,12 +47,8 @@ _GD0( _TImage* image )
 {
   std::string out_res =
     this->m_Parameters.GetSelectedChoice( "OutputResolution" );
-#ifdef cpPlugins_CONFIG_REAL_TYPES_float
   if( out_res == "float" ) this->_GD1< _TImage, float >( image );
-#endif // cpPlugins_CONFIG_REAL_TYPES_float
-#ifdef cpPlugins_CONFIG_REAL_TYPES_double
   if( out_res == "double" ) this->_GD1< _TImage, double >( image );
-#endif // cpPlugins_CONFIG_REAL_TYPES_double
 }
 
 // -------------------------------------------------------------------------
@@ -67,6 +60,7 @@ _GD1( _TImage* image )
   typedef
     itk::SignedMaurerDistanceMapImageFilter< _TImage, _TDMap >
     _TFilter;
+  std::cout << "_Z" << typeid( _TFilter ).name( ) << std::endl;
 
   // Get parameters
   double bv = this->m_Parameters.GetReal( "BackgroundValue" );