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