Create A Binary Ball Structuring Element

Synopsis

Create an elliptical structuring element

Results

Code

C++

#include "itkBinaryBallStructuringElement.h"

int
main(int, char *[])
{
  constexpr unsigned int Dimension = 3;
  using PixelType = float;

  using StructuringElementType = itk::BinaryBallStructuringElement<PixelType, Dimension>;
  StructuringElementType structuringElement;
  structuringElement.SetRadius(5);
  structuringElement.CreateStructuringElement();

  return EXIT_SUCCESS;
}

Classes demonstrated