]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpaPlugins/ImageRegionGrow.cxx
Plugins updated
[FrontAlgorithms.git] / lib / fpaPlugins / ImageRegionGrow.cxx
index 642976524b594e46013375b9ad77d5dc89b968d6..86c67e748480012ab377284e6248b6af573c03d6 100644 (file)
@@ -13,12 +13,17 @@ ImageRegionGrow( )
   this->_AddInput( "GrowFunction" );
   this->_MakeOutput< cpPlugins::Interface::Image >( "Output" );
 
-  this->m_Parameters->ConfigureAsBool( "VisualDebug", false );
-  this->m_Parameters->ConfigureAsBool( "StopAtOneFront", false );
-  this->m_Parameters->ConfigureAsReal( "InsideValue", 1 );
-  this->m_Parameters->ConfigureAsReal( "OutsideValue", 0 );
+  this->m_Parameters->ConfigureAsBool( "VisualDebug" );
+  this->m_Parameters->ConfigureAsBool( "StopAtOneFront" );
+  this->m_Parameters->ConfigureAsReal( "InsideValue" );
+  this->m_Parameters->ConfigureAsReal( "OutsideValue" );
   this->m_Parameters->ConfigureAsPointList( "Seeds" );
 
+  this->m_Parameters->SetBool( "VisualDebug", false );
+  this->m_Parameters->SetBool( "StopAtOneFront", false );
+  this->m_Parameters->SetReal( "InsideValue", 1 );
+  this->m_Parameters->SetReal( "OutsideValue", 0 );
+
   std::vector< std::string > orders;
   orders.push_back( "1" );
   orders.push_back( "2" );
@@ -57,6 +62,7 @@ _GD0( itk::DataObject* data )
   typedef itk::Image< _TOutPixel, I::ImageDimension > _TOut;
   typedef fpa::Image::RegionGrow< I, _TOut >          _TFilter;
   typedef typename _TFilter::TGrowingFunction         _TFunctor;
+  typedef typename I::PointType                       _TPoint;
 
   I* image = dynamic_cast< I* >( data );
 
@@ -83,8 +89,8 @@ _GD0( itk::DataObject* data )
   filter->SetOutsideValue( _TOutPixel( params->GetReal( "OutsideValue" ) ) );
 
   // Assign seeds
-  std::vector< typename I::PointType > seeds;
-  params->GetPointList( seeds, "Seeds", I::ImageDimension );
+  std::vector< _TPoint > seeds =
+    params->GetPointList< _TPoint >( "Seeds", I::ImageDimension );
   for( auto sIt = seeds.begin( ); sIt != seeds.end( ); ++sIt )
   {
     typename I::IndexType idx;