]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpaPlugins/ImageRegionGrow.cxx
...
[FrontAlgorithms.git] / lib / fpaPlugins / ImageRegionGrow.cxx
index 1f42de56722608af41e25f905af6a64aaf9f27b3..19eba80f431eb1565f36a3acf1b2f7110ab2f9aa 100644 (file)
@@ -48,8 +48,8 @@ fpaPlugins::ImageRegionGrow::
 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." );
 
@@ -72,8 +72,8 @@ _GD0( itk::DataObject* data )
   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 );
@@ -84,8 +84,8 @@ _GD0( itk::DataObject* 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( ) )
@@ -118,8 +118,8 @@ _GD0( itk::DataObject* data )
   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( ) );