]> Creatis software - cpPlugins.git/blobdiff - plugins/ImageDistanceMaps/BinaryContourImageFilter.cxx
...
[cpPlugins.git] / plugins / ImageDistanceMaps / BinaryContourImageFilter.cxx
index c6d0e165767b36cd9a5fb3f9648a26fd9bf80447..e9b9c0a509893523d275e014f6ccfac1eb640863 100644 (file)
@@ -14,13 +14,9 @@ BinaryContourImageFilter( )
   this->_ConfigureInput< _TImage >( "Input", true, false );
   this->_ConfigureOutput< _TImage >( "Output" );
 
-  this->m_Parameters.ConfigureAsReal( "BackgroundValue" );
-  this->m_Parameters.ConfigureAsReal( "ForegroundValue" );
-  this->m_Parameters.ConfigureAsBool( "FullyConnected" );
-
-  this->m_Parameters.SetReal( "BackgroundValue", 0 );
-  this->m_Parameters.SetReal( "ForegroundValue", 1 );
-  this->m_Parameters.SetBool( "FullyConnected", false );
+  this->m_Parameters.ConfigureAsReal( "BackgroundValue", 0 );
+  this->m_Parameters.ConfigureAsReal( "ForegroundValue", 1 );
+  this->m_Parameters.ConfigureAsBool( "FullyConnected", false );
 }
 
 // -------------------------------------------------------------------------
@@ -34,7 +30,7 @@ void cpPluginsImageDistanceMaps::BinaryContourImageFilter::
 _GenerateData( )
 {
   auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_Image_VisualDims( o, _GD0, )
+  cpPlugins_Demangle_Image_VisualDims_1( o, _GD0 )
     this->_Error( "Invalid input image dimension." );
 }
 
@@ -43,7 +39,7 @@ template< class _TImage >
 void cpPluginsImageDistanceMaps::BinaryContourImageFilter::
 _GD0( _TImage* image )
 {
-  cpPlugins_Demangle_Image_ScalarPixels( image, _GD1, _TImage::ImageDimension, )
+  cpPlugins_Demangle_Image_ScalarPixels_1( image, _GD1, _TImage::ImageDimension )
     this->_Error( "Invalid input image pixel type." );
 }