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" );
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 );
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;