18 #ifndef itkBinaryMorphologyImageFilter_h
19 #define itkBinaryMorphologyImageFilter_h
102 template<
typename TInputImage,
typename TOutputImage,
typename TKernel >
111 static constexpr
unsigned int InputImageDimension = TInputImage::ImageDimension;
112 static constexpr
unsigned int OutputImageDimension = TOutputImage::ImageDimension;
115 static constexpr
unsigned int KernelDimension = TKernel::NeighborhoodDimension;
155 Self::OutputImageDimension > ) );
180 itkSetMacro(BoundaryToForeground,
bool);
181 itkGetConstReferenceMacro(BoundaryToForeground,
bool);
182 itkBooleanMacro(BoundaryToForeground);
186 void SetKernel(
const KernelType & kernel)
override;
191 void PrintSelf(std::ostream & os,
Indent indent)
const override;
195 void AnalyzeKernel();
212 {
return m_KernelDifferenceSets[code]; }
217 {
return m_KernelCCVector.begin(); }
222 {
return m_KernelCCVector.end(); }
243 #ifndef ITK_MANUAL_INSTANTIATION
244 #include "itkBinaryMorphologyImageFilter.hxx"
OutputPixelType m_BackgroundValue
typename KernelType::ConstIterator KernelIteratorType
ComponentVectorConstIterator KernelCCVectorEnd()
bool m_BoundaryToForeground
Define numeric traits for std::vector.
typename NumericTraits< InputPixelType >::RealType InputRealType
unsigned long SizeValueType
typename TInputImage::IndexType IndexType
typename TOutputImage::PixelType OutputPixelType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
NeighborIndexContainerContainer m_KernelDifferenceSets
Base class for all process objects that output image data.
TInputImage InputImageType
NeighborIndexContainer & GetDifferenceSet(unsigned int code)
typename InputImageType::SizeValueType InputSizeValueType
typename TInputImage::OffsetType OffsetType
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
TOutputImage OutputImageType
typename TInputImage::PixelType InputPixelType
InputPixelType m_ForegroundValue
A base class for all the filters working on an arbitrary shaped neighborhood.
signed long IndexValueType
typename ComponentVectorType::const_iterator ComponentVectorConstIterator
std::vector< OffsetType > NeighborIndexContainer
typename InputImageType::RegionType InputImageRegionType
std::vector< NeighborIndexContainer > NeighborIndexContainerContainer
Base class for filters that take an image as input and produce an image as output.
Base class for fast binary dilation and erosion.
Control indentation during Print() invocation.
typename InputImageType::IndexValueType IndexValueType
ComponentVectorConstIterator KernelCCVectorBegin()
typename InputImageType::SizeType InputSizeType
ImageBaseType::RegionType RegionType
#define itkConceptMacro(name, concept)
std::vector< OffsetType > ComponentVectorType
std::vector< OffsetType > m_KernelCCVector