ITK  5.2.0
Insight Toolkit
itkDilateObjectMorphologyImageFilter.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 itkDilateObjectMorphologyImageFilter_h
19 #define itkDilateObjectMorphologyImageFilter_h
20 
22 
23 namespace itk
24 {
46 template <typename TInputImage, typename TOutputImage, typename TKernel>
47 class ITK_TEMPLATE_EXPORT DilateObjectMorphologyImageFilter
48  : public ObjectMorphologyImageFilter<TInputImage, TOutputImage, TKernel>
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_MOVE(DilateObjectMorphologyImageFilter);
52 
56 
59 
61  itkNewMacro(Self);
62 
65 
67  using PixelType = typename Superclass::PixelType;
68 
70  using KernelType = TKernel;
71 
73  using KernelIteratorType = typename KernelType::ConstIterator;
74 
77 
78  using DefaultBoundaryConditionType = typename Superclass::DefaultBoundaryConditionType;
79 
81  using KernelPixelType = typename TKernel::PixelType;
82 
83 #ifdef ITK_USE_CONCEPT_CHECKING
84  // Begin concept checking
85  itkConceptMacro(KernelGreaterThanComparableCheck, (Concept::GreaterThanComparable<KernelPixelType>));
86  // End concept checking
87 #endif
88 
89 protected:
91  ~DilateObjectMorphologyImageFilter() override = default;
92  void
93  PrintSelf(std::ostream & os, Indent indent) const override;
94 
99  void
100  Evaluate(OutputNeighborhoodIteratorType & nit, const KernelType & kernel) override;
101 
102 private:
103  // Default boundary condition for dilation filter, defaults to
104  // NumericTraits<PixelType>::NonpositiveMin()
106 }; // end of class
107 } // end namespace itk
108 
109 #ifndef ITK_MANUAL_INSTANTIATION
110 # include "itkDilateObjectMorphologyImageFilter.hxx"
111 #endif
112 
113 #endif
itk::DilateObjectMorphologyImageFilter
dilation of an object in an image
Definition: itkDilateObjectMorphologyImageFilter.h:47
itk::Concept::GreaterThanComparable
Definition: itkConceptChecking.h:284
itkObjectMorphologyImageFilter.h
itk::DilateObjectMorphologyImageFilter::DefaultBoundaryConditionType
typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
Definition: itkDilateObjectMorphologyImageFilter.h:78
itk::DilateObjectMorphologyImageFilter::m_DilateBoundaryCondition
DefaultBoundaryConditionType m_DilateBoundaryCondition
Definition: itkDilateObjectMorphologyImageFilter.h:105
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::NeighborhoodIterator
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
Definition: itkNeighborhoodIterator.h:212
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::DilateObjectMorphologyImageFilter::PixelType
typename Superclass::PixelType PixelType
Definition: itkDilateObjectMorphologyImageFilter.h:67
itk::DilateObjectMorphologyImageFilter::KernelPixelType
typename TKernel::PixelType KernelPixelType
Definition: itkDilateObjectMorphologyImageFilter.h:81
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::DilateObjectMorphologyImageFilter::KernelType
TKernel KernelType
Definition: itkDilateObjectMorphologyImageFilter.h:70
itk::DilateObjectMorphologyImageFilter::KernelIteratorType
typename KernelType::ConstIterator KernelIteratorType
Definition: itkDilateObjectMorphologyImageFilter.h:73
itk::ObjectMorphologyImageFilter
Base class for the morphological operations being applied to isolated objects in an image.
Definition: itkObjectMorphologyImageFilter.h:74