ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkDilateObjectMorphologyImageFilter.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 itkDilateObjectMorphologyImageFilter_h
19 #define itkDilateObjectMorphologyImageFilter_h
20 
22 
23 namespace itk
24 {
45 template< typename TInputImage, typename TOutputImage, typename TKernel >
46 class ITK_TEMPLATE_EXPORT DilateObjectMorphologyImageFilter:
47  public ObjectMorphologyImageFilter< TInputImage, TOutputImage, TKernel >
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(DilateObjectMorphologyImageFilter);
51 
55 
58 
60  itkNewMacro(Self);
61 
64 
66  using PixelType = typename Superclass::PixelType;
67 
69  using KernelType = TKernel;
70 
72  using KernelIteratorType = typename KernelType::ConstIterator;
73 
76 
77  using DefaultBoundaryConditionType = typename Superclass::DefaultBoundaryConditionType;
78 
80  using KernelPixelType = typename TKernel::PixelType;
81 
82 #ifdef ITK_USE_CONCEPT_CHECKING
83  // Begin concept checking
84  itkConceptMacro( KernelGreaterThanComparableCheck,
86  // End concept checking
87 #endif
88 
89 protected:
91  ~DilateObjectMorphologyImageFilter() override = default;
92  void PrintSelf(std::ostream & os, Indent indent) const override;
93 
98  void Evaluate(OutputNeighborhoodIteratorType & nit,
99  const KernelType & kernel) override;
100 
101 private:
102  // Default boundary condition for dilation filter, defaults to
103  // NumericTraits<PixelType>::NonpositiveMin()
105 }; // end of class
106 } // end namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include "itkDilateObjectMorphologyImageFilter.hxx"
110 #endif
111 
112 #endif
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.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
#define itkConceptMacro(name, concept)
Base class for the morphological operations being applied to isolated objects in an image...
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.