ITK  6.0.0
Insight Toolkit
itkDilateObjectMorphologyImageFilter.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 itkDilateObjectMorphologyImageFilter_h
19#define itkDilateObjectMorphologyImageFilter_h
20
22
23namespace itk
24{
46template <typename TInputImage, typename TOutputImage, typename TKernel>
47class ITK_TEMPLATE_EXPORT DilateObjectMorphologyImageFilter
48 : public ObjectMorphologyImageFilter<TInputImage, TOutputImage, TKernel>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(DilateObjectMorphologyImageFilter);
52
56
59
61 itkNewMacro(Self);
62
64 itkOverrideGetNameOfClassMacro(DilateObjectMorphologyImageFilter);
65
67 using typename Superclass::PixelType;
68
70 using KernelType = TKernel;
71
73 using KernelIteratorType = typename KernelType::ConstIterator;
74
77
78 using typename Superclass::DefaultBoundaryConditionType;
79
81 using KernelPixelType = typename TKernel::PixelType;
82
83#ifdef ITK_USE_CONCEPT_CHECKING
84 // Begin concept checking
85 itkConceptMacro(KernelGreaterThanComparableCheck, (Concept::GreaterThanComparable<KernelPixelType>));
86 // End concept checking
87#endif
88
89protected:
92 void
93 PrintSelf(std::ostream & os, Indent indent) const override;
94
99 void
100 Evaluate(OutputNeighborhoodIteratorType & nit, const KernelType & kernel) override;
101
102private:
103 // Default boundary condition for dilation filter, defaults to
104 // NumericTraits<PixelType>::NonpositiveMin()
105 DefaultBoundaryConditionType m_DilateBoundaryCondition{};
106}; // end of class
107} // end namespace itk
108
109#ifndef ITK_MANUAL_INSTANTIATION
110# include "itkDilateObjectMorphologyImageFilter.hxx"
111#endif
112
113#endif
void Evaluate(OutputNeighborhoodIteratorType &nit, const KernelType &kernel) override
~DilateObjectMorphologyImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
Base class for all process objects that output image data.
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
Base class for the morphological operations being applied to isolated objects in an image.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....