: Superclass( )
{
this->_AddInput( "ReferenceImage" );
- this->_MakeOutput< GrowFunction >( "Output" );
+ this->_AddOutput< GrowFunction >( "Output" );
this->m_Parameters->ConfigureAsReal( "LowerThreshold" );
this->m_Parameters->ConfigureAsReal( "UpperThreshold" );
_GD0( itk::DataObject* data )
{
typedef fpa::Image::Functors::RegionGrowThresholdFunction< I > _F;
- typename _F::Pointer functor = _F::New( );
+ typename _F::Pointer f = _F::New( );
+ f->SetLowerThreshold( this->m_Parameters->GetReal( "LowerThreshold" ) );
+ f->SetUpperThreshold( this->m_Parameters->GetReal( "UpperThreshold" ) );
// Connect output
GrowFunction* out = this->GetOutput< GrowFunction >( "Output" );
if( out != NULL )
{
- out->SetITK< _F >( functor );
+ out->SetITK< _F >( f );
return( "" );
}
else