ITK  5.2.0
Insight Toolkit
itkBasicDilateImageFilter.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 itkBasicDilateImageFilter_h
19 #define itkBasicDilateImageFilter_h
20 
22 
23 namespace itk
24 {
47 template <typename TInputImage, typename TOutputImage, typename TKernel>
48 class ITK_TEMPLATE_EXPORT BasicDilateImageFilter : public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
49 {
50 public:
51  ITK_DISALLOW_COPY_AND_MOVE(BasicDilateImageFilter);
52 
58 
60  itkNewMacro(Self);
61 
64 
66  using PixelType = typename Superclass::PixelType;
67 
69  using KernelIteratorType = typename Superclass::KernelIteratorType;
70 
72  using NeighborhoodIteratorType = typename Superclass::NeighborhoodIteratorType;
73 
75  using KernelType = typename Superclass::KernelType;
76 
78  using DefaultBoundaryConditionType = typename Superclass::DefaultBoundaryConditionType;
79 
81  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
82  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
83  static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
84 
86  using KernelPixelType = typename TKernel::PixelType;
87 
88 #ifdef ITK_USE_CONCEPT_CHECKING
89  // Begin concept checking
93  itkConceptMacro(InputGreaterThanComparableCheck, (Concept::GreaterThanComparable<PixelType>));
94  itkConceptMacro(KernelGreaterThanComparableCheck, (Concept::GreaterThanComparable<KernelPixelType>));
95  // End concept checking
96 #endif
97 
98 protected:
100  ~BasicDilateImageFilter() override = default;
101 
108  PixelType
109  Evaluate(const NeighborhoodIteratorType & nit,
110  const KernelIteratorType kernelBegin,
111  const KernelIteratorType kernelEnd) override;
112 
113 private:
114  // Default boundary condition for dilation filter, defaults to
115  // NumericTraits<PixelType>::NonpositiveMin()
117 }; // end of class
118 } // end namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 # include "itkBasicDilateImageFilter.hxx"
122 #endif
123 
124 #endif
itk::Concept::GreaterThanComparable
Definition: itkConceptChecking.h:284
itk::BasicDilateImageFilter
Grayscale dilation of an image.
Definition: itkBasicDilateImageFilter.h:48
itk::SmartPointer< Self >
itk::BasicDilateImageFilter::DefaultBoundaryConditionType
typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
Definition: itkBasicDilateImageFilter.h:78
itk::BasicDilateImageFilter::NeighborhoodIteratorType
typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
Definition: itkBasicDilateImageFilter.h:72
itk::BasicDilateImageFilter::KernelIteratorType
typename Superclass::KernelIteratorType KernelIteratorType
Definition: itkBasicDilateImageFilter.h:69
itk::Concept::SameDimension
Definition: itkConceptChecking.h:694
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::MorphologyImageFilter
Base class for the morphological operations such as erosion and dilation.
Definition: itkMorphologyImageFilter.h:72
itk::BasicDilateImageFilter::KernelPixelType
typename TKernel::PixelType KernelPixelType
Definition: itkBasicDilateImageFilter.h:86
itk::BasicDilateImageFilter::m_DilateBoundaryCondition
DefaultBoundaryConditionType m_DilateBoundaryCondition
Definition: itkBasicDilateImageFilter.h:116
itk::BasicDilateImageFilter::PixelType
typename Superclass::PixelType PixelType
Definition: itkBasicDilateImageFilter.h:66
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
itkMorphologyImageFilter.h
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::Concept::Convertible
Definition: itkConceptChecking.h:216
itk::KernelImageFilter::KernelType
TKernel KernelType
Definition: itkKernelImageFilter.h:71