]> Creatis software - cpPlugins.git/blobdiff - plugins/ImageDistanceMaps/BinaryContourImageFilter.cxx
...
[cpPlugins.git] / plugins / ImageDistanceMaps / BinaryContourImageFilter.cxx
index ade258036a556c3fe4dcf07f7cf0a9e3aed80a3d..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 );
 }
 
 // -------------------------------------------------------------------------