ITK  5.0.0
Insight Segmentation and Registration Toolkit
WikiExamples/Morphology/BinaryBallStructuringElement.cxx
#include "itkImage.h"
int main(int, char *[])
{
using StructuringElementType = itk::BinaryBallStructuringElement<float, 2>;
StructuringElementType structuringElement;
structuringElement.SetRadius(5);
structuringElement.CreateStructuringElement();
return EXIT_SUCCESS;
}