ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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 * 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 itkBasicDilateImageFilter_h
19#define itkBasicDilateImageFilter_h
20
22
23namespace itk
24{
46
47template <typename TInputImage, typename TOutputImage, typename TKernel>
48class ITK_TEMPLATE_EXPORT BasicDilateImageFilter : public MorphologyImageFilter<TInputImage, TOutputImage, TKernel>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(BasicDilateImageFilter);
52
58
60 itkNewMacro(Self);
61
63 itkOverrideGetNameOfClassMacro(BasicDilateImageFilter);
64
66 using typename Superclass::PixelType;
67
69 using typename Superclass::KernelIteratorType;
70
73
75 using typename Superclass::KernelType;
76
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
91 itkConceptMacro(InputGreaterThanComparableCheck, (Concept::GreaterThanComparable<PixelType>));
92 itkConceptMacro(KernelGreaterThanComparableCheck, (Concept::GreaterThanComparable<KernelPixelType>));
93
94protected:
96 ~BasicDilateImageFilter() override = default;
97
106 const KernelIteratorType kernelBegin,
107 const KernelIteratorType kernelEnd) override;
108
109private:
110 // Default boundary condition for dilation filter, defaults to
111 // NumericTraits<PixelType>::NonpositiveMin()
113}; // end of class
114} // end namespace itk
115
116#ifndef ITK_MANUAL_INSTANTIATION
117# include "itkBasicDilateImageFilter.hxx"
118#endif
119
120#endif
ConstantBoundaryCondition< InputImageType > DefaultBoundaryConditionType
MorphologyImageFilter< TInputImage, TOutputImage, TKernel > Superclass
PixelType Evaluate(const NeighborhoodIteratorType &nit, const KernelIteratorType kernelBegin, const KernelIteratorType kernelEnd) override
~BasicDilateImageFilter() override=default
typename TKernel::PixelType KernelPixelType
ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
SmartPointer< const Self > ConstPointer
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....