this->_MakeOutput< cpPlugins::Interface::Image >( 0 );
using namespace cpPlugins::Interface;
- this->m_DefaultParameters.Configure(Parameters::Real, "Radius");
-
- this->m_DefaultParameters.SetValueAsReal("Radius", 3);
-
+ this->m_DefaultParameters.Configure( Parameters::Uint, "Radius" );
+
+ this->m_DefaultParameters.SetValueAsUint( "Radius", 3 );
+
this->m_Parameters = this->m_DefaultParameters;
}
_RealGD( itk::DataObject* image )
{
typedef itk::MedianImageFilter< I, O > _F;
- typedef typename O::PixelType _OP;
+ typedef typename _F::RadiusType _RT;
// Get parameters
-
- _OP rad_val = _OP(this->m_Parameters.GetValueAsReal("Radius"));
-
+ _RT rad_val;
+ rad_val.Fill( this->m_Parameters.GetValueAsUint( "Radius" ) );
// Configure filter
_F* filter = dynamic_cast< _F* >( this->m_RealProcessObject.GetPointer( ) );
} // fi
filter->SetInput( dynamic_cast< I* >( image ) );
-
- filter->SetRadius(rad_val);
-
+ filter->SetRadius( rad_val );
+
filter->Update( );
// Connect output