ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryDilateImageFilter.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 itkBinaryDilateImageFilter_h
19#define itkBinaryDilateImageFilter_h
20
21#include <vector>
22#include <queue>
25
26namespace itk
27{
62template <typename TInputImage, typename TOutputImage, typename TKernel>
63class ITK_TEMPLATE_EXPORT BinaryDilateImageFilter
64 : public BinaryMorphologyImageFilter<TInputImage, TOutputImage, TKernel>
65{
66public:
67 ITK_DISALLOW_COPY_AND_MOVE(BinaryDilateImageFilter);
68
70 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
71 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
72
74 static constexpr unsigned int KernelDimension = TKernel::NeighborhoodDimension;
75
77 using InputImageType = TInputImage;
78 using OutputImageType = TOutputImage;
79 using KernelType = TKernel;
80
84
87
89 itkNewMacro(Self);
90
92 itkOverrideGetNameOfClassMacro(BinaryDilateImageFilter);
93
95 using KernelIteratorType = typename KernelType::ConstIterator;
96
98 using InputPixelType = typename InputImageType::PixelType;
99 using OutputPixelType = typename OutputImageType::PixelType;
101 using OffsetType = typename InputImageType::OffsetType;
102 using IndexType = typename InputImageType::IndexType;
103
104 using InputImageRegionType = typename InputImageType::RegionType;
105 using OutputImageRegionType = typename OutputImageType::RegionType;
106 using InputSizeType = typename InputImageType::SizeType;
107
111 void
113 {
114 this->SetForegroundValue(value);
115 }
116
120 InputPixelType
122 {
123 return this->GetForegroundValue();
124 }
125
126protected:
128 ~BinaryDilateImageFilter() override = default;
129 void
130 PrintSelf(std::ostream & os, Indent indent) const override;
131
132 void
133 GenerateData() override;
134
135 // type inherited from the superclass
137};
138} // end namespace itk
139
140#ifndef ITK_MANUAL_INSTANTIATION
141# include "itkBinaryDilateImageFilter.hxx"
142#endif
143
144#endif
void SetDilateValue(const InputPixelType &value)
void PrintSelf(std::ostream &os, Indent indent) const override
typename KernelType::ConstIterator KernelIteratorType
typename OutputImageType::RegionType OutputImageRegionType
SmartPointer< const Self > ConstPointer
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::PixelType InputPixelType
void GenerateData() override
typename InputImageType::SizeType InputSizeType
typename NumericTraits< InputPixelType >::RealType InputRealType
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::IndexType IndexType
typename InputImageType::OffsetType OffsetType
BinaryMorphologyImageFilter< InputImageType, OutputImageType, KernelType > Superclass
~BinaryDilateImageFilter() override=default
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....