ITK  6.0.0
Insight Toolkit
itkBinaryClosingByReconstructionImageFilter.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 itkBinaryClosingByReconstructionImageFilter_h
19#define itkBinaryClosingByReconstructionImageFilter_h
20
22
23namespace itk
24{
25
48template <typename TInputImage, typename TKernel>
50 : public KernelImageFilter<TInputImage, TInputImage, TKernel>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(BinaryClosingByReconstructionImageFilter);
54
60
62 itkNewMacro(Self);
63
65 itkOverrideGetNameOfClassMacro(BinaryClosingByReconstructionImageFilter);
66
67 using InputImageType = TInputImage;
68 using OutputImageType = TInputImage;
71
73 using InputPixelType = typename TInputImage::PixelType;
74 using OutputPixelType = typename TInputImage::PixelType;
75
77 using KernelType = TKernel;
78
81 itkSetMacro(ForegroundValue, InputPixelType);
82
85 itkGetMacro(ForegroundValue, InputPixelType);
86
93 itkSetMacro(FullyConnected, bool);
94 itkGetConstReferenceMacro(FullyConnected, bool);
95 itkBooleanMacro(FullyConnected);
98protected:
101 void
102 PrintSelf(std::ostream & os, Indent indent) const override;
103
109 void
111
114 void
115 GenerateData() override;
116
117private:
118 InputPixelType m_ForegroundValue{};
119
120 bool m_FullyConnected{};
121
122}; // end of class
123
124} // end namespace itk
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkBinaryClosingByReconstructionImageFilter.hxx"
128#endif
129
130#endif
void PrintSelf(std::ostream &os, Indent indent) const override
~BinaryClosingByReconstructionImageFilter() override=default
Control indentation during Print() invocation.
Definition: itkIndent.h:50
A base class for all the filters working on an arbitrary shaped neighborhood.
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....