18 #ifndef sitkCreateKernel_h
19 #define sitkCreateKernel_h
31 #define sitkKernelPolygonCreateMacro(n) \
32 case sitkPolygon##n: return ITKKernelType::Polygon( radius, n )
34 template<
unsigned int VImageDimension >
40 typename ITKKernelType::SizeType radius = sitkSTLVectorToITK<typename ITKKernelType::SizeType>( size );
45 return ITKKernelType::Annulus( radius, 1,
false );
47 return ITKKernelType::Ball( radius );
49 return ITKKernelType::Box( radius );
51 return ITKKernelType::Cross( radius );
63 #undef sitkKernelPolygonCreateMacro
73 #endif // sitkCreateKernel_h
itk::FlatStructuringElement< VImageDimension > CreateKernel(KernelEnum kernelType, const std::vector< uint32_t > &size)
#define sitkKernelPolygonCreateMacro(n)
#define sitkExceptionMacro(x)