]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKDistanceMapFilters/SignedMaurerDistanceMapImageFilter.cxx
...
[cpPlugins.git] / plugins / ITKDistanceMapFilters / SignedMaurerDistanceMapImageFilter.cxx
index a8f5767aab96bb31aa785f34aa6785a2ae6ca072..b92b881918fffeb59f7de490a6b2ae383f4c0f1c 100644 (file)
@@ -1,5 +1,5 @@
 #include <ITKDistanceMapFilters/SignedMaurerDistanceMapImageFilter.h>
-#include <cpInstances/Image.h>
+#include <cpInstances/DataObjects/Image.h>
 
 #include <itkSignedMaurerDistanceMapImageFilter.h>
 
@@ -8,7 +8,7 @@ cpPluginsITKDistanceMapFilters::SignedMaurerDistanceMapImageFilter::
 SignedMaurerDistanceMapImageFilter( )
   : Superclass( )
 {
-  typedef cpInstances::Image _TImage;
+  typedef cpInstances::DataObjects::Image _TImage;
 
   this->_ConfigureInput< _TImage >( "Input", true, false );
   this->_ConfigureOutput< _TImage >( "Output" );
@@ -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 );
 }
 
@@ -50,12 +46,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
 }
 
 // -------------------------------------------------------------------------