ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBasicErodeImageFilter.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 * https://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 itkBasicErodeImageFilter_h
19#define itkBasicErodeImageFilter_h
20
22
23namespace itk
24{
45template <typename TInputImage, typename TOutputImage, typename TKernel>
46class ITK_TEMPLATE_EXPORT BasicErodeImageFilter : public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
47{
48public:
49 ITK_DISALLOW_COPY_AND_MOVE(BasicErodeImageFilter);
50
56
58 itkNewMacro(Self);
59
61 itkOverrideGetNameOfClassMacro(BasicErodeImageFilter);
62
64 using typename Superclass::PixelType;
65
67 using typename Superclass::KernelIteratorType;
68
71
73 using typename Superclass::KernelType;
74
77
79 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
80 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
81 static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
82
84 using KernelPixelType = typename TKernel::PixelType;
85
89 itkConceptMacro(InputLessThanComparableCheck, (Concept::LessThanComparable<PixelType>));
90 itkConceptMacro(KernelGreaterThanComparableCheck, (Concept::GreaterThanComparable<KernelPixelType>));
91
92protected:
94 ~BasicErodeImageFilter() override = default;
95
104 const KernelIteratorType kernelBegin,
105 const KernelIteratorType kernelEnd) override;
106
107private:
108 // Default boundary condition for erosion filter, defaults to
109 // NumericTraits<PixelType>::max()
111}; // end of class
112} // end namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkBasicErodeImageFilter.hxx"
116#endif
117
118#endif
ConstantBoundaryCondition< InputImageType > DefaultBoundaryConditionType
SmartPointer< const Self > ConstPointer
typename TKernel::PixelType KernelPixelType
MorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass
ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
~BasicErodeImageFilter() override=default
PixelType Evaluate(const NeighborhoodIteratorType &nit, const KernelIteratorType kernelBegin, const KernelIteratorType kernelEnd) override
ConstantBoundaryCondition< InputImageType > DefaultBoundaryConditionType
typename KernelType::ConstIterator KernelIteratorType
ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
typename TInputImage::PixelType PixelType
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....