+
+ // Instantiate functors
+ auto cost_conversion = this->GetInputData< _TFunctor >( "ConversionFunction" );
+ if( cost_conversion != NULL )
+ {
+ cost_conversion->Instantiate( filter );
+ auto cost_conversion_functor = cost_conversion->GetFunctor< _TConversionFunction >( );
+ if( cost_conversion_functor != NULL )
+ filter->SetConversionFunction( cost_conversion_functor );
+
+ } // fi
+
+ auto vertex = this->GetInputData< _TFunctor >( "VertexFunction" );
+ if( vertex != NULL )
+ {
+ vertex->Instantiate( filter );
+ auto vertex_functor = vertex->GetFunctor< _TVertexFunction >( );
+ if( vertex_functor != NULL )
+ filter->SetVertexFunction( vertex_functor );
+
+ } // fi
+
+ // Finish filter's configuration