]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx
...
[FrontAlgorithms.git] / lib / fpaPlugins / ThresholdImageGrowFunctionSource.cxx
index 99bac98e9db274f313a8ccb71744f3928c7a39de..eabd396be9dcb5dc20679952fbb1f576f37f4d45 100644 (file)
@@ -30,8 +30,8 @@ fpaPlugins::ThresholdImageGrowFunctionSource::
 std::string fpaPlugins::ThresholdImageGrowFunctionSource::
 _GenerateData( )
 {
-  cpPlugins::Interface::Image* image =
-    this->GetInput< cpPlugins::Interface::Image >( "ReferenceImage" );
+  auto image =
+    this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" );
   if( image == NULL )
     return( "fpaPlugins::ThresholdImageGrowFunctionSource: No input reference image." );
 
@@ -55,7 +55,7 @@ _GD0( itk::DataObject* data )
   f->SetUpperThreshold( this->m_Parameters->GetReal( "UpperThreshold" ) );
 
   // Connect output
-  GrowFunction* out = this->GetOutput< GrowFunction >( "Output" );
+  auto out = this->GetOutputData< GrowFunction >( "Output" );
   if( out != NULL )
   {
     out->SetITK< _F >( f );