ITK  5.3.0
Insight Toolkit
itkGrayscaleFunctionErodeImageFilter.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 itkGrayscaleFunctionErodeImageFilter_h
19 #define itkGrayscaleFunctionErodeImageFilter_h
20 
22 
23 namespace itk
24 {
49 template <typename TInputImage, typename TOutputImage, typename TKernel>
50 class ITK_TEMPLATE_EXPORT GrayscaleFunctionErodeImageFilter
51  : public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
52 {
53 public:
54  ITK_DISALLOW_COPY_AND_MOVE(GrayscaleFunctionErodeImageFilter);
55 
61 
63  itkNewMacro(Self);
64 
67 
69  using PixelType = typename Superclass::PixelType;
70 
72  using KernelIteratorType = typename Superclass::KernelIteratorType;
73 
75  using NeighborhoodIteratorType = typename Superclass::NeighborhoodIteratorType;
76 
78  using KernelType = typename Superclass::KernelType;
79 
81  using DefaultBoundaryConditionType = typename Superclass::DefaultBoundaryConditionType;
82 
84  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
85  static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
86  static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
87 
89  using KernelPixelType = typename TKernel::PixelType;
90 
91 #ifdef ITK_USE_CONCEPT_CHECKING
92  // Begin concept checking
96  itkConceptMacro(KernelConvertibleToInputCheck, (Concept::Convertible<KernelPixelType, PixelType>));
97  itkConceptMacro(InputAdditiveOperatorsCheck, (Concept::AdditiveOperators<PixelType>));
98  itkConceptMacro(InputLessThanComparableCheck, (Concept::LessThanComparable<PixelType>));
99  itkConceptMacro(KernelGreaterThanComparableCheck, (Concept::GreaterThanComparable<KernelPixelType>));
100  // End concept checking
101 #endif
102 
103 protected:
105  ~GrayscaleFunctionErodeImageFilter() override = default;
106 
114  PixelType
115  Evaluate(const NeighborhoodIteratorType & nit,
116  const KernelIteratorType kernelBegin,
117  const KernelIteratorType kernelEnd) override;
118 
119 private:
120  // Default boundary condition for erosion filter, defaults to
121  // NumericTraits<PixelType>::max()
123 }; // end of class
124 } // end namespace itk
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 # include "itkGrayscaleFunctionErodeImageFilter.hxx"
128 #endif
129 
130 #endif
itk::GrayscaleFunctionErodeImageFilter::NeighborhoodIteratorType
typename Superclass::NeighborhoodIteratorType NeighborhoodIteratorType
Definition: itkGrayscaleFunctionErodeImageFilter.h:75
itk::GrayscaleFunctionErodeImageFilter::m_ErodeBoundaryCondition
DefaultBoundaryConditionType m_ErodeBoundaryCondition
Definition: itkGrayscaleFunctionErodeImageFilter.h:122
itk::Concept::GreaterThanComparable
Definition: itkConceptChecking.h:284
itk::GrayscaleFunctionErodeImageFilter
Grayscale function erosion of an image.
Definition: itkGrayscaleFunctionErodeImageFilter.h:50
itk::GrayscaleFunctionErodeImageFilter::KernelPixelType
typename TKernel::PixelType KernelPixelType
Definition: itkGrayscaleFunctionErodeImageFilter.h:89
itk::SmartPointer< Self >
itk::Concept::SameDimension
Definition: itkConceptChecking.h:694
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::GrayscaleFunctionErodeImageFilter::DefaultBoundaryConditionType
typename Superclass::DefaultBoundaryConditionType DefaultBoundaryConditionType
Definition: itkGrayscaleFunctionErodeImageFilter.h:81
itk::MorphologyImageFilter
Base class for the morphological operations such as erosion and dilation.
Definition: itkMorphologyImageFilter.h:72
itk::GrayscaleFunctionErodeImageFilter::KernelIteratorType
typename Superclass::KernelIteratorType KernelIteratorType
Definition: itkGrayscaleFunctionErodeImageFilter.h:72
itk::Concept::AdditiveOperators
Definition: itkConceptChecking.h:358
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
itk::Concept::LessThanComparable
Definition: itkConceptChecking.h:262
itk::GrayscaleFunctionErodeImageFilter::PixelType
typename Superclass::PixelType PixelType
Definition: itkGrayscaleFunctionErodeImageFilter.h:69