ITK  6.0.0
Insight Toolkit
itkBinaryMorphologicalClosingImageFilter.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 itkBinaryMorphologicalClosingImageFilter_h
19#define itkBinaryMorphologicalClosingImageFilter_h
20
22
23namespace itk
24{
57template <typename TInputImage, typename TOutputImage, typename TKernel>
59 : public KernelImageFilter<TInputImage, TOutputImage, TKernel>
60{
61public:
62 ITK_DISALLOW_COPY_AND_MOVE(BinaryMorphologicalClosingImageFilter);
63
69
71 itkNewMacro(Self);
72
74 itkOverrideGetNameOfClassMacro(BinaryMorphologicalClosingImageFilter);
75
76 using InputImageType = TInputImage;
77 using OutputImageType = TOutputImage;
80
82 using InputPixelType = typename TInputImage::PixelType;
83 using OutputPixelType = typename TInputImage::PixelType;
84
86 using KernelType = TKernel;
87
90 itkSetMacro(ForegroundValue, InputPixelType);
91
94 itkGetConstMacro(ForegroundValue, InputPixelType);
95
98 itkSetMacro(SafeBorder, bool);
99 itkGetConstReferenceMacro(SafeBorder, bool);
100 itkBooleanMacro(SafeBorder);
103protected:
106 void
107 PrintSelf(std::ostream & os, Indent indent) const override;
108
111 void
112 GenerateData() override;
113
114private:
115 InputPixelType m_ForegroundValue{};
116
117 bool m_SafeBorder{};
118}; // end of class
119} // end namespace itk
120
121#ifndef ITK_MANUAL_INSTANTIATION
122# include "itkBinaryMorphologicalClosingImageFilter.hxx"
123#endif
124
125#endif
void PrintSelf(std::ostream &os, Indent indent) const override
~BinaryMorphologicalClosingImageFilter() override=default
typename TInputImage::PixelType InputPixelType
typename TOutputImage::PixelType OutputPixelType
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
A base class for all the filters working on an arbitrary shaped neighborhood.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....