]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/fpa/RegionGrowThresholdFunction.cxx
...
[FrontAlgorithms.git] / plugins / fpa / RegionGrowThresholdFunction.cxx
index 8dc341f1b6dbe9ce40fce099ce4dbb81599e3dd6..4e8ca64e73267a09aac2729ecdad61b9a751bba8 100644 (file)
@@ -28,8 +28,7 @@ fpaPlugins::RegionGrowThresholdFunction::
 void fpaPlugins::RegionGrowThresholdFunction::
 _GenerateData( )
 {
-  auto image =
-    this->GetInputData( "ReferenceImage" )->GetITK< itk::DataObject >( );
+  auto image = this->GetInputData< itk::DataObject >( "ReferenceImage" );
   cpPlugins_Image_Demangle_Pixel_AllScalars     ( _GD0, image, 2 );
   else cpPlugins_Image_Demangle_Pixel_AllScalars( _GD0, image, 3 );
   else this->_Error( "No valid input image." );
@@ -44,7 +43,7 @@ _GD0( _TImage* image )
     fpa::Image::Functors::RegionGrowThresholdFunction< _TImage >
     _TFunctor;
 
-  auto out = this->GetOutputData( "Output" );
+  auto out = this->GetOutput( "Output" );
   auto f = out->GetITK< _TFunctor >( );
   if( f == NULL )
   {