ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkBasicDilateImageFilter.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 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:
49  public MorphologyImageFilter< TInputImage, TOutputImage, TKernel >
50 {
51 public:
52  ITK_DISALLOW_COPY_AND_ASSIGN(BasicDilateImageFilter);
53 
59 
61  itkNewMacro(Self);
62 
64  itkTypeMacro(BasicDilateImageFilter,
66 
68  using PixelType = typename Superclass::PixelType;
69 
71  using KernelIteratorType = typename Superclass::KernelIteratorType;
72 
74  using NeighborhoodIteratorType = typename Superclass::NeighborhoodIteratorType;
75 
77  using KernelType = typename Superclass::KernelType;
78 
80  using DefaultBoundaryConditionType = typename Superclass::DefaultBoundaryConditionType;
81 
83  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
84  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
85  static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
86 
88  using KernelPixelType = typename TKernel::PixelType;
89 
90 #ifdef ITK_USE_CONCEPT_CHECKING
91  // Begin concept checking
92  itkConceptMacro( InputConvertibleToOutputCheck,
94  itkConceptMacro( SameDimensionCheck1,
96  itkConceptMacro( SameDimensionCheck2,
98  itkConceptMacro( InputGreaterThanComparableCheck,
100  itkConceptMacro( KernelGreaterThanComparableCheck,
102  // End concept checking
103 #endif
104 
105 protected:
107  ~BasicDilateImageFilter() override = default;
108 
115  PixelType Evaluate(const NeighborhoodIteratorType & nit,
116  const KernelIteratorType kernelBegin,
117  const KernelIteratorType kernelEnd) override;
118 
119 private:
120  // Default boundary condition for dilation filter, defaults to
121  // NumericTraits<PixelType>::NonpositiveMin()
123 }; // end of class
124 } // end namespace itk
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkBasicDilateImageFilter.hxx"
128 #endif
129 
130 #endif
gray scale dilation of an image
typename Superclass::KernelIteratorType KernelIteratorType
typename Superclass::PixelType PixelType
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 TKernel::PixelType KernelPixelType
Base class for the morphological operations such as erosion and dialation.
typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
#define itkConceptMacro(name, concept)
DefaultBoundaryConditionType m_DilateBoundaryCondition