inline std::string cpPlugins::BasicFilters::BinaryErodeImageFilter::
_RealGD( itk::DataObject* image )
{
- //typedef itk::Image<I, I::ImageDimension> ImageType;
- typedef itk::BinaryBallStructuringElement< I::PixelType, I::ImageDimension> StructuringElementType;
+ //typedef itk::Image<I, I::ImageDimension> ImageType;
+ typedef itk::BinaryBallStructuringElement< typename I::PixelType, I::ImageDimension> StructuringElementType;
typedef itk::BinaryErodeImageFilter< I, O, StructuringElementType > _F;
typedef typename _F::RadiusType _RT;
rad_val.Fill( this->m_Parameters.GetValueAsUint( "Radius" ) );
// Configure filter
-
+
StructuringElementType structuringElement;
structuringElement.SetRadius(rad_val);
structuringElement.CreateStructuringElement();