SimpleITK  
sitkVotingBinaryIterativeHoleFillingImageFilter.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* http://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 sitkVotingBinaryIterativeHoleFillingImageFilter_h
19#define sitkVotingBinaryIterativeHoleFillingImageFilter_h
20
21/*
22 * WARNING: DO NOT EDIT THIS FILE!
23 * THIS FILE IS AUTOMATICALLY GENERATED BY THE SIMPLEITK BUILD PROCESS.
24 * Please look at sitkImageFilterTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
70public:
72
75
79
82
83
84
85
89 void
90 SetRadius(std::vector<unsigned int> Radius )
91 { this->m_Radius = std::move(Radius); }
92
94 void
95 SetRadius( unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value); }
99 std::vector<unsigned int>
100 GetRadius() const { return this->m_Radius; }
101
102
107 void
108 SetMaximumNumberOfIterations(unsigned int MaximumNumberOfIterations )
109 { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations; }
110
114 unsigned int
116
117
124 void
125 SetMajorityThreshold(unsigned int MajorityThreshold )
126 { this->m_MajorityThreshold = MajorityThreshold; }
127
133 unsigned int
135
136
140 void
141 SetForegroundValue(double ForegroundValue )
142 { this->m_ForegroundValue = ForegroundValue; }
143
146 double
147 GetForegroundValue() const { return this->m_ForegroundValue; }
148
149
153 void
154 SetBackgroundValue(double BackgroundValue )
155 { this->m_BackgroundValue = BackgroundValue; }
156
159 double
160 GetBackgroundValue() const { return this->m_BackgroundValue; }
161
162
164 std::string GetName() const { return std::string("VotingBinaryIterativeHoleFillingImageFilter"); }
165
167 std::string ToString() const;
168
169
171 Image Execute(const Image &image1);
172
173
174private:
176 using MemberFunctionType = Image (Self::*)(const Image &image1);
177 template <class TImageType> Image ExecuteInternal(const Image &image1);
180
181
182 std::vector<unsigned int> m_Radius{ std::vector<unsigned int>(3, 1) };
183
184 unsigned int m_MaximumNumberOfIterations{ 10u };
185
186 unsigned int m_MajorityThreshold{ 1u };
187
188 double m_ForegroundValue{ 1.0 };
189
190 double m_BackgroundValue{ 0.0 };
191
192
193
194
195
196
197
198};
199
200
210 const Image &image1, std::vector<unsigned int> radius = std::vector<unsigned int>(3, 1), unsigned int maximumNumberOfIterations = 10u, unsigned int majorityThreshold = 1u, double foregroundValue = 1.0, double backgroundValue = 0.0
211);
212
214
215}
216#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A class used to instantiate and generate function object to templated member functions.
Image VotingBinaryIterativeHoleFilling(const Image &image1, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1), unsigned int maximumNumberOfIterations=10u, unsigned int majorityThreshold=1u, double foregroundValue=1.0, double backgroundValue=0.0)
Fills in holes and cavities by iteratively applying a voting operation.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > > IntegerPixelIDTypeList
#define SITKBasicFilters_EXPORT