18#ifndef itkBinaryMorphologyImageFilter_h
19#define itkBinaryMorphologyImageFilter_h
102template <
typename TInputImage,
typename TOutputImage,
typename TKernel>
110 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
111 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
114 static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
177 itkSetMacro(BoundaryToForeground,
bool);
178 itkGetConstReferenceMacro(BoundaryToForeground,
bool);
179 itkBooleanMacro(BoundaryToForeground);
214 return m_KernelDifferenceSets[code];
219 ComponentVectorConstIterator
222 return m_KernelCCVector.begin();
227 ComponentVectorConstIterator
230 return m_KernelCCVector.end();
233 bool m_BoundaryToForeground{};
248 std::vector<OffsetType> m_KernelCCVector{};
252#ifndef ITK_MANUAL_INSTANTIATION
253# include "itkBinaryMorphologyImageFilter.hxx"
Base class for fast binary dilation and erosion.
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::SizeType InputSizeType
typename KernelType::ConstIterator KernelIteratorType
ComponentVectorConstIterator KernelCCVectorEnd()
typename InputImageType::SizeValueType InputSizeValueType
~BinaryMorphologyImageFilter() override=default
ComponentVectorConstIterator KernelCCVectorBegin()
typename ComponentVectorType::const_iterator ComponentVectorConstIterator
std::vector< NeighborIndexContainer > NeighborIndexContainerContainer
typename NumericTraits< InputPixelType >::RealType InputRealType
BinaryMorphologyImageFilter()
void SetKernel(const KernelType &kernel) override
std::vector< OffsetType > ComponentVectorType
typename InputImageType::IndexValueType IndexValueType
NeighborIndexContainer & GetDifferenceSet(unsigned int code)
std::vector< OffsetType > NeighborIndexContainer
typename TInputImage::PixelType InputPixelType
typename TInputImage::IndexType IndexType
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::OffsetType OffsetType
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
TInputImage InputImageType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
A base class for all the filters working on an arbitrary shaped neighborhood.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType