18 #ifndef itkKernelImageFilter_h 19 #define itkKernelImageFilter_h 38 template<
typename TInputImage,
typename TOutputImage,
typename TKernel
60 typedef typename TInputImage::SizeType
SizeType;
73 TInputImage::ImageDimension);
83 virtual void SetKernel(
const KernelType & kernel);
85 itkGetConstReferenceMacro(Kernel, KernelType);
88 virtual void SetRadius(
const RadiusType & radius) ITK_OVERRIDE;
107 void operator=(const Self &) ITK_DELETE_FUNCTION;
109 template<typename T>
void MakeKernel( const RadiusType & radius, T & kernel )
111 kernel.SetRadius( radius );
112 for(
typename T::Iterator kit=kernel.Begin(); kit != kernel.End(); kit++ )
128 #ifndef ITK_MANUAL_INSTANTIATION 129 #include "itkKernelImageFilter.hxx" SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
void MakeKernel(const RadiusType &radius, FlatKernelType &kernel)
TInputImage::PixelType InputPixelType
void MakeKernel(const RadiusType &radius, T &kernel)
BoxImageFilter< TInputImage, TOutputImage > Superclass
TOutputImage OutputImageType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
FlatStructuringElement< itkGetStaticConstMacro(ImageDimension) > FlatKernelType
TInputImage::SizeType RadiusType
unsigned long SizeValueType
virtual void SetRadius(const SizeValueType &radius) override
TOutputImage::PixelType OutputPixelType
virtual void SetKernel(const KernelType &kernel)
TInputImage::OffsetType OffsetType
TInputImage::IndexType IndexType
virtual void SetRadius(const RadiusType &radius)
A base class for all the filters working on an arbitrary shaped neighborhood.
TInputImage InputImageType
A base class for all the filters working on a box neighborhood.
bool GetDecomposable() const
A class to support a variety of flat structuring elements, including versions created by decompositio...
static Self Box(RadiusType radius)
TInputImage::SizeType SizeType
Control indentation during Print() invocation.
static const unsigned int ImageDimension
TInputImage::RegionType RegionType
virtual void SetRadius(const RadiusType &radius) override