ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkGrayscaleFunctionDilateImageFilter.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 itkGrayscaleFunctionDilateImageFilter_h
19 #define itkGrayscaleFunctionDilateImageFilter_h
20 
22 
23 namespace itk
24 {
49 template< typename TInputImage, typename TOutputImage, typename TKernel >
50 class ITK_TEMPLATE_EXPORT GrayscaleFunctionDilateImageFilter:
51  public MorphologyImageFilter< TInputImage, TOutputImage, TKernel >
52 {
53 public:
54  ITK_DISALLOW_COPY_AND_ASSIGN(GrayscaleFunctionDilateImageFilter);
55 
61 
63  itkNewMacro(Self);
64 
68 
70  using PixelType = typename Superclass::PixelType;
71 
73  using KernelIteratorType = typename Superclass::KernelIteratorType;
74 
76  using NeighborhoodIteratorType = typename Superclass::NeighborhoodIteratorType;
77 
79  using KernelType = typename Superclass::KernelType;
80 
82  using DefaultBoundaryConditionType = typename Superclass::DefaultBoundaryConditionType;
83 
85  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
86  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
87  static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
88 
90  using KernelPixelType = typename TKernel::PixelType;
91 
92 #ifdef ITK_USE_CONCEPT_CHECKING
93  // Begin concept checking
94  itkConceptMacro( SameDimensionCheck1,
96  itkConceptMacro( SameDimensionCheck2,
98  itkConceptMacro( InputConvertibleToOutputCheck,
100  itkConceptMacro( KernelConvertibleToInputCheck,
102  itkConceptMacro( InputAdditiveOperatorsCheck,
104  itkConceptMacro( InputGreaterThanComparableCheck,
106  itkConceptMacro( KernelGreaterThanComparableCheck,
108  // End concept checking
109 #endif
110 
111 protected:
113  ~GrayscaleFunctionDilateImageFilter() override = default;
114 
122  PixelType Evaluate(const NeighborhoodIteratorType & nit,
123  const KernelIteratorType kernelBegin,
124  const KernelIteratorType kernelEnd) override;
125 
126 private:
127  // Default boundary condition for dilation filter, defaults to
128  // NumericTraits<PixelType>::NonpositiveMin()
130 }; // end of class
131 } // end namespace itk
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkGrayscaleFunctionDilateImageFilter.hxx"
135 #endif
136 
137 #endif
typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
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 Superclass::KernelIteratorType KernelIteratorType
Base class for the morphological operations such as erosion and dialation.
typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
#define itkConceptMacro(name, concept)