SimpleITK  
sitkIsolatedConnectedImageFilter.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 sitkIsolatedConnectedImageFilter_h
19#define sitkIsolatedConnectedImageFilter_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
67public:
69
72
76
79
80
81
82
89 void
90 SetSeed1(std::vector<unsigned int> Seed1 )
91 { this->m_Seed1 = std::move(Seed1); }
92
94 std::vector<unsigned int>
95 GetSeed1() const { return this->m_Seed1; }
96
97
103 void
104 SetSeed2(std::vector<unsigned int> Seed2 )
105 { this->m_Seed2 = std::move(Seed2); }
106
108 std::vector<unsigned int>
109 GetSeed2() const { return this->m_Seed2; }
110
111
115 void
116 SetLower(double Lower )
117 { this->m_Lower = Lower; }
118
121 double
122 GetLower() const { return this->m_Lower; }
123
124
128 void
129 SetUpper(double Upper )
130 { this->m_Upper = Upper; }
131
134 double
135 GetUpper() const { return this->m_Upper; }
136
137
142 void
143 SetReplaceValue(uint8_t ReplaceValue )
144 { this->m_ReplaceValue = ReplaceValue; }
145
149 uint8_t
150 GetReplaceValue() const { return this->m_ReplaceValue; }
151
152
156 void
157 SetIsolatedValueTolerance(double IsolatedValueTolerance )
158 { this->m_IsolatedValueTolerance = IsolatedValueTolerance; }
159
162 double
164
165
170 void
171 SetFindUpperThreshold(bool FindUpperThreshold )
172 { this->m_FindUpperThreshold = FindUpperThreshold; }
173
175 void
177 void
183 bool
185
186
193 bool GetThresholdingFailed() const { return this->m_ThresholdingFailed; }
194
201 double GetIsolatedValue() const { return this->m_IsolatedValue; }
202
204 std::string GetName() const { return std::string("IsolatedConnectedImageFilter"); }
205
207 std::string ToString() const;
208
209
211 Image Execute(const Image &image1);
212
213
214private:
216 using MemberFunctionType = Image (Self::*)(const Image &image1);
217 template <class TImageType> Image ExecuteInternal(const Image &image1);
220
221
222 std::vector<unsigned int> m_Seed1{ std::vector<unsigned int>(3, 0) };
223
224 std::vector<unsigned int> m_Seed2{ std::vector<unsigned int>(3, 0) };
225
226 double m_Lower{ 0 };
227
228 double m_Upper{ 1 };
229
230 uint8_t m_ReplaceValue{ 1u };
231
233
235
236
237
238 bool m_ThresholdingFailed{ false };
239 double m_IsolatedValue{ 0.0 };
240
241
242
243
244};
245
246
256 const Image &image1, std::vector<unsigned int> seed1 = std::vector<unsigned int>(3, 0), std::vector<unsigned int> seed2 = std::vector<unsigned int>(3, 0), double lower = 0, double upper = 1, uint8_t replaceValue = 1u, double isolatedValueTolerance = 1.0, bool findUpperThreshold = true
257);
258
260
261}
262#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image Execute(const Image &image1)
void SetIsolatedValueTolerance(double IsolatedValueTolerance)
Image ExecuteInternal(const Image &image1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetSeed1(std::vector< unsigned int > Seed1)
A class used to instantiate and generate function object to templated member functions.
Image IsolatedConnected(const Image &image1, std::vector< unsigned int > seed1=std::vector< unsigned int >(3, 0), std::vector< unsigned int > seed2=std::vector< unsigned int >(3, 0), double lower=0, double upper=1, uint8_t replaceValue=1u, double isolatedValueTolerance=1.0, bool findUpperThreshold=true)
Label pixels that are connected to one set of seeds but not another.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
#define SITKBasicFilters_EXPORT