ITK  5.2.0
Insight Toolkit
itkVanHerkGilWermanErodeDilateImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkVanHerkGilWermanErodeDilateImageFilter_h
19 #define itkVanHerkGilWermanErodeDilateImageFilter_h
20 
21 #include "itkKernelImageFilter.h"
22 #include "itkProgressReporter.h"
23 #include "itkBresenhamLine.h"
24 
25 namespace itk
26 {
27 
28 template <typename TInputImage, typename TOutputImage, typename TKernel>
29 class KernelImageFilter;
30 
41 template <typename TImage, typename TKernel, typename TFunction1>
42 class ITK_TEMPLATE_EXPORT VanHerkGilWermanErodeDilateImageFilter : public KernelImageFilter<TImage, TImage, TKernel>
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_MOVE(VanHerkGilWermanErodeDilateImageFilter);
46 
52 
56  using KernelType = TKernel;
57 
58  using InputImageType = TImage;
59  using InputImagePointer = typename InputImageType::Pointer;
60  using InputImageConstPointer = typename InputImageType::ConstPointer;
62  using InputImagePixelType = typename InputImageType::PixelType;
63  using IndexType = typename TImage::IndexType;
64  using SizeType = typename TImage::SizeType;
65 
67  static constexpr unsigned int InputImageDimension = TImage::ImageDimension;
68  static constexpr unsigned int OutputImageDimension = TImage::ImageDimension;
69 
71  itkNewMacro(Self);
72 
75 
77  itkSetMacro(Boundary, InputImagePixelType);
78  itkGetConstMacro(Boundary, InputImagePixelType);
80 
81 protected:
83  ~VanHerkGilWermanErodeDilateImageFilter() override = default;
84  void
85  PrintSelf(std::ostream & os, Indent indent) const override;
86 
88  void
89  DynamicThreadedGenerateData(const InputImageRegionType & outputRegionForThread) override;
90 
91 
92  // should be set by the meta filter
94 
95 private:
97 
98 }; // end of class
99 } // end namespace itk
100 
101 #ifndef ITK_MANUAL_INSTANTIATION
102 # include "itkVanHerkGilWermanErodeDilateImageFilter.hxx"
103 #endif
104 
105 #endif
itkBresenhamLine.h
itkProgressReporter.h
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageToImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkImageToImageFilter.h:133
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itkKernelImageFilter.h
itk::BoxImageFilter::IndexType
typename TInputImage::IndexType IndexType
Definition: itkBoxImageFilter.h:61
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::KernelImageFilter< TImage, TImage, TKernel >::KernelType
TKernel KernelType
Definition: itkKernelImageFilter.h:71
itk::BoxImageFilter::SizeType
typename TInputImage::SizeType SizeType
Definition: itkBoxImageFilter.h:60
itk::KernelImageFilter
A base class for all the filters working on an arbitrary shaped neighborhood.
Definition: itkKernelImageFilter.h:41
itk::VanHerkGilWermanErodeDilateImageFilter::m_Boundary
InputImagePixelType m_Boundary
Definition: itkVanHerkGilWermanErodeDilateImageFilter.h:93
itk::VanHerkGilWermanErodeDilateImageFilter
class to implement erosions and dilations using anchor methods. This is the base class that must be i...
Definition: itkVanHerkGilWermanErodeDilateImageFilter.h:42
itk::ImageToImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::ImageToImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToImageFilter.h:131
itk::BresenhamLine
Definition: itkBresenhamLine.h:32