ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkAnchorErodeDilateImageFilter.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 itkAnchorErodeDilateImageFilter_h
19 #define itkAnchorErodeDilateImageFilter_h
20 
21 #include "itkKernelImageFilter.h"
22 #include "itkProgressReporter.h"
24 #include "itkBresenhamLine.h"
25 
26 namespace itk
27 {
38 template< typename TImage, typename TKernel,
39  typename TFunction1 >
40 class ITK_TEMPLATE_EXPORT AnchorErodeDilateImageFilter:
41  public KernelImageFilter< TImage, TImage, TKernel >
42 {
43 public:
44  ITK_DISALLOW_COPY_AND_ASSIGN(AnchorErodeDilateImageFilter);
45 
48  using Superclass =
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 
74  itkTypeMacro(AnchorErodeDilateImageFilter,
76 
78  itkSetMacro(Boundary, InputImagePixelType);
79  itkGetConstMacro(Boundary, InputImagePixelType);
81 
82 protected:
84  ~AnchorErodeDilateImageFilter() override = default;
85  void PrintSelf(std::ostream & os, Indent indent) const override;
86 
88  void DynamicThreadedGenerateData(const InputImageRegionType & outputRegionForThread) override;
89 
90 
91  // should be set by the meta filter
93 
94 private:
96 
97  // the class that operates on lines
99 }; // end of class
100 } // end namespace itk
101 
102 #ifndef ITK_MANUAL_INSTANTIATION
103 #include "itkAnchorErodeDilateImageFilter.hxx"
104 #endif
105 
106 #endif
class to implement erosions and dilations using anchor methods. This is the base class that must be i...
typename TInputImage::IndexType IndexType
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
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename InputImageType::ConstPointer InputImageConstPointer
class to implement erosions and dilations using anchor methods. This is the base class that must be i...