18 #ifndef itkBinaryMorphologyImageFilter_h
19 #define itkBinaryMorphologyImageFilter_h
102 template<
typename TInputImage,
typename TOutputImage,
typename TKernel >
109 itkStaticConstMacro(InputImageDimension,
unsigned int,
110 TInputImage::ImageDimension);
111 itkStaticConstMacro(OutputImageDimension,
unsigned int,
112 TOutputImage::ImageDimension);
116 itkStaticConstMacro(KernelDimension,
unsigned int,
117 TKernel::NeighborhoodDimension);
157 itkGetStaticConstMacro(OutputImageDimension) > ) );
182 itkSetMacro(BoundaryToForeground,
bool);
183 itkGetConstReferenceMacro(BoundaryToForeground,
bool);
184 itkBooleanMacro(BoundaryToForeground);
188 void SetKernel(
const KernelType & kernel) ITK_OVERRIDE;
193 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
197 void AnalyzeKernel();
209 typedef typename ComponentVectorType::const_iterator
215 {
return m_KernelDifferenceSets[code]; }
220 {
return m_KernelCCVector.begin(); }
225 {
return m_KernelCCVector.end(); }
248 #ifndef ITK_MANUAL_INSTANTIATION
249 #include "itkBinaryMorphologyImageFilter.hxx"
std::vector< NeighborIndexContainer > NeighborIndexContainerContainer
InputImageType::SizeType InputSizeType
KernelType::ConstIterator KernelIteratorType
InputImageType::IndexValueType IndexValueType
OutputPixelType m_BackgroundValue
TOutputImage OutputImageType
ComponentVectorConstIterator KernelCCVectorEnd()
SmartPointer< const Self > ConstPointer
bool m_BoundaryToForeground
InputImageType::SizeValueType InputSizeValueType
virtual ~BinaryMorphologyImageFilter() override
signed long IndexValueType
TInputImage InputImageType
TInputImage::PixelType InputPixelType
OutputImageType::PixelType OutputPixelType
SmartPointer< Self > Pointer
TOutputImage::PixelType OutputPixelType
NeighborIndexContainerContainer m_KernelDifferenceSets
Base class for all process objects that output image data.
unsigned long SizeValueType
NeighborIndexContainer & GetDifferenceSet(unsigned int code)
KernelImageFilter< InputImageType, OutputImageType, TKernel > Superclass
NumericTraits< InputPixelType >::RealType InputRealType
InputImageType::PixelType InputPixelType
OutputImageType::RegionType OutputImageRegionType
InputPixelType m_ForegroundValue
A base class for all the filters working on an arbitrary shaped neighborhood.
std::vector< OffsetType > NeighborIndexContainer
InputImageType::IndexType IndexType
std::vector< OffsetType > ComponentVectorType
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.
ComponentVectorType::const_iterator ComponentVectorConstIterator
ImageBaseType::SizeType SizeType
ComponentVectorConstIterator KernelCCVectorBegin()
Define additional traits for native types such as int or float.
InputImageType::OffsetType OffsetType
#define itkConceptMacro(name, concept)
std::vector< OffsetType > m_KernelCCVector
InputImageType::RegionType InputImageRegionType
ImageBaseType::IndexType IndexType
BinaryMorphologyImageFilter Self