ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryMorphologicalOpeningImageFilter.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 itkBinaryMorphologicalOpeningImageFilter_h
19#define itkBinaryMorphologicalOpeningImageFilter_h
20
22
23namespace itk
24{
56
57template <typename TInputImage, typename TOutputImage, typename TKernel>
59 : public KernelImageFilter<TInputImage, TOutputImage, TKernel>
60{
61public:
62 ITK_DISALLOW_COPY_AND_MOVE(BinaryMorphologicalOpeningImageFilter);
63
69
71 itkNewMacro(Self);
72
74 itkOverrideGetNameOfClassMacro(BinaryMorphologicalOpeningImageFilter);
75
76 using InputImageType = TInputImage;
77 using OutputImageType = TOutputImage;
78 using InputImagePointer = typename InputImageType::Pointer;
79 using OutputImageRegionType = typename OutputImageType::RegionType;
80
82 using PixelType = typename TInputImage::PixelType;
83
85 using KernelType = TKernel;
86
89 itkSetMacro(ForegroundValue, PixelType);
90
93 itkGetConstMacro(ForegroundValue, PixelType);
94
96 itkSetMacro(BackgroundValue, PixelType);
97
99 itkGetConstMacro(BackgroundValue, PixelType);
100
101protected:
104 void
105 PrintSelf(std::ostream & os, Indent indent) const override;
106
109 void
110 GenerateData() override;
111
112private:
114
116}; // end of class
117} // end namespace itk
118
119#ifndef ITK_MANUAL_INSTANTIATION
120# include "itkBinaryMorphologicalOpeningImageFilter.hxx"
121#endif
122
123#endif
KernelImageFilter< TInputImage, TOutputImage, TKernel > Superclass
~BinaryMorphologicalOpeningImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
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....