18 #ifndef itkBinaryMorphologyImageFilter_h
19 #define itkBinaryMorphologyImageFilter_h
102 template <
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);
184 SetKernel(
const KernelType & kernel)
override;
190 PrintSelf(std::ostream & os,
Indent indent)
const override;
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"