std::string fpaPlugins::ImageRegionGrow::
_GenerateData( )
{
- cpPlugins::Interface::Image* input =
- this->GetInput< cpPlugins::Interface::Image >( "Input" );
+ auto input =
+ this->GetInputData< cpPlugins::Interface::Image >( "Input" );
if( input == NULL )
return( "fpaPlugins::ImageRegionGrow: No input image." );
typedef typename _TFilter::TGrowingFunction _TFunctor;
typedef typename I::PointType _TPoint;
- cpPlugins::Interface::PointList* seeds =
- this->GetInput< cpPlugins::Interface::PointList >( "Seeds" );
+ auto seeds =
+ this->GetInputData< cpPlugins::Interface::PointList >( "Seeds" );
if( seeds == NULL )
return( "fpaPlugins::ImageRegionGrow: No given seeds." );
I* image = dynamic_cast< I* >( data );
// Connect grow functor (or create a tautology)
typename _TFunctor::Pointer functor;
- cpPlugins::Interface::DataObject* functor_wrapper =
- this->GetInput< cpPlugins::Interface::DataObject >( "GrowFunction" );
+ auto functor_wrapper =
+ this->GetInputData< cpPlugins::Interface::DataObject >( "GrowFunction" );
if( functor_wrapper != NULL )
functor = functor_wrapper->GetITK< _TFunctor >( );
if( functor.IsNull( ) )
this->_DeconfigureDebugger( filter );
// Connect output
- cpPlugins::Interface::Image* out =
- this->GetOutput< cpPlugins::Interface::Image >( "Output" );
+ auto out =
+ this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
if( out != NULL )
{
out->SetITK< _TOut >( filter->GetOutput( ) );