18 #ifndef itkKernelImageFilter_h
19 #define itkKernelImageFilter_h
38 template<
typename TInputImage,
typename TOutputImage,
typename TKernel
72 itkStaticConstMacro(ImageDimension,
unsigned int,
73 TInputImage::ImageDimension);
83 virtual void SetKernel(
const KernelType & kernel);
88 virtual void SetRadius(
const RadiusType & radius) ITK_OVERRIDE;
93 Superclass::SetRadius(radius);
100 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
110 kernel.SetRadius( radius );
111 for(
typename T::Iterator kit=kernel.Begin(); kit != kernel.End(); kit++ )
121 kernel = FlatKernelType::Box( radius );
127 #ifndef ITK_MANUAL_INSTANTIATION
128 #include "itkKernelImageFilter.hxx"
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
void MakeKernel(const RadiusType &radius, FlatKernelType &kernel)
TInputImage::PixelType InputPixelType
void MakeKernel(const RadiusType &radius, T &kernel)
BoxImageFilter< TInputImage, TOutputImage > Superclass
TOutputImage OutputImageType
FlatStructuringElement< itkGetStaticConstMacro(ImageDimension) > FlatKernelType
~KernelImageFilter() override
TInputImage::SizeType RadiusType
Base class for all process objects that output image data.
unsigned long SizeValueType
virtual void SetRadius(const SizeValueType &radius) override
TOutputImage::PixelType OutputPixelType
TInputImage::OffsetType OffsetType
TInputImage::IndexType IndexType
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...
TInputImage::SizeType RadiusType
TInputImage::SizeType SizeType
Control indentation during Print() invocation.
ImageBaseType::SizeType SizeType
TInputImage::RegionType RegionType
ImageBaseType::IndexType IndexType