ITK  5.2.0
Insight Toolkit
itkAnchorErodeDilateImageFilter.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 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, typename TFunction1>
39 class ITK_TEMPLATE_EXPORT AnchorErodeDilateImageFilter : public KernelImageFilter<TImage, TImage, TKernel>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(AnchorErodeDilateImageFilter);
43 
49 
53  using KernelType = TKernel;
54 
55  using InputImageType = TImage;
56  using InputImagePointer = typename InputImageType::Pointer;
57  using InputImageConstPointer = typename InputImageType::ConstPointer;
59  using InputImagePixelType = typename InputImageType::PixelType;
60  using IndexType = typename TImage::IndexType;
61  using SizeType = typename TImage::SizeType;
62 
64  static constexpr unsigned int InputImageDimension = TImage::ImageDimension;
65  static constexpr unsigned int OutputImageDimension = TImage::ImageDimension;
66 
68  itkNewMacro(Self);
69 
72 
74  itkSetMacro(Boundary, InputImagePixelType);
75  itkGetConstMacro(Boundary, InputImagePixelType);
77 
78 protected:
80  ~AnchorErodeDilateImageFilter() override = default;
81  void
82  PrintSelf(std::ostream & os, Indent indent) const override;
83 
85  void
86  DynamicThreadedGenerateData(const InputImageRegionType & outputRegionForThread) override;
87 
88 
89  // should be set by the meta filter
91 
92 private:
94 
95  // the class that operates on lines
97 }; // end of class
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 # include "itkAnchorErodeDilateImageFilter.hxx"
102 #endif
103 
104 #endif
itk::AnchorErodeDilateImageFilter::m_Boundary
InputImagePixelType m_Boundary
Definition: itkAnchorErodeDilateImageFilter.h:90
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
itkAnchorErodeDilateLine.h
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::AnchorErodeDilateLine
class to implement erosions and dilations using anchor methods. This is the base class that must be i...
Definition: itkAnchorErodeDilateLine.h:37
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::ImageToImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::AnchorErodeDilateImageFilter
class to implement erosions and dilations using anchor methods. This is the base class that must be i...
Definition: itkAnchorErodeDilateImageFilter.h:39
itk::ImageToImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkImageToImageFilter.h:131
itk::BresenhamLine
Definition: itkBresenhamLine.h:32