ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkVanHerkGilWermanErodeDilateImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 > class KernelImageFilter;
29 
40 template< typename TImage, typename TKernel, typename TFunction1 >
41 class ITK_TEMPLATE_EXPORT VanHerkGilWermanErodeDilateImageFilter:
42  public KernelImageFilter< TImage, TImage, TKernel >
43 {
44 public:
45  ITK_DISALLOW_COPY_AND_ASSIGN(VanHerkGilWermanErodeDilateImageFilter);
46 
49  using Superclass =
53 
57  using KernelType = TKernel;
58 
59  using InputImageType = TImage;
60  using InputImagePointer = typename InputImageType::Pointer;
61  using InputImageConstPointer = typename InputImageType::ConstPointer;
63  using InputImagePixelType = typename InputImageType::PixelType;
64  using IndexType = typename TImage::IndexType;
65  using SizeType = typename TImage::SizeType;
66 
68  static constexpr unsigned int InputImageDimension = TImage::ImageDimension;
69  static constexpr unsigned int OutputImageDimension = TImage::ImageDimension;
70 
72  itkNewMacro(Self);
73 
77 
79  itkSetMacro(Boundary, InputImagePixelType);
80  itkGetConstMacro(Boundary, InputImagePixelType);
82 
83 protected:
85  ~VanHerkGilWermanErodeDilateImageFilter() override = default;
86  void PrintSelf(std::ostream & os, Indent indent) const override;
87 
89  void 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
typename TInputImage::IndexType IndexType
class to implement erosions and dilations using anchor methods. This is the base class that must be i...
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::Pointer InputImagePointer
typename TInputImage::SizeType SizeType
A base class for all the filters working on an arbitrary shaped neighborhood.
typename InputImageType::RegionType InputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename InputImageType::ConstPointer InputImageConstPointer