18#ifndef sitkCreateKernel_h
19#define sitkCreateKernel_h
28#define sitkKernelPolygonCreateMacro(n) \
29 case sitkPolygon##n: \
30 return ITKKernelType::Polygon(radius, n)
32template <
unsigned int VImageDimension>
43 return ITKKernelType::Annulus(radius, 1,
false);
45 return ITKKernelType::Ball(radius);
47 return ITKKernelType::Box(radius);
49 return ITKKernelType::Cross(radius);
61#undef sitkKernelPolygonCreateMacro
TITKVector SITKCommon_HIDDEN sitkSTLVectorToITK(const std::vector< TType > &in)
Copy the elements of an std::vector into an ITK fixed width vector.
@ sitkBall
Ball (sphere in 3D, circle in 2D) shaped structuring element.
@ sitkBox
Box shaped structuring element.
@ sitkCross
Cross shaped structuring element.
@ sitkAnnulus
Annulus, ring, shaped structuring element.
itk::FlatStructuringElement< VImageDimension > CreateKernel(KernelEnum kernelType, const std::vector< uint32_t > &size)
#define sitkKernelPolygonCreateMacro(n)
#define sitkExceptionMacro(x)