SimpleITK  2.0.0
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.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk {
33  namespace simple {
34 
51  public:
53 
56 
60 
63 \
64 
68  SITK_RETURN_SELF_TYPE_HEADER SetSeed1 ( std::vector<unsigned int> Seed1 ) { this->m_Seed1 = std::move(Seed1); return *this; }
69 
72  std::vector<unsigned int> GetSeed1() const { return this->m_Seed1; }\
73 
77  SITK_RETURN_SELF_TYPE_HEADER SetSeed2 ( std::vector<unsigned int> Seed2 ) { this->m_Seed2 = std::move(Seed2); return *this; }
78 
81  std::vector<unsigned int> GetSeed2() const { return this->m_Seed2; }\
82 
86  SITK_RETURN_SELF_TYPE_HEADER SetLower ( double Lower ) { this->m_Lower = Lower; return *this; }
87 
91  double GetLower() const { return this->m_Lower; }\
92 
96  SITK_RETURN_SELF_TYPE_HEADER SetUpper ( double Upper ) { this->m_Upper = Upper; return *this; }
97 
101  double GetUpper() const { return this->m_Upper; }\
102 
106  SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue ( uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue; return *this; }
107 
111  uint8_t GetReplaceValue() const { return this->m_ReplaceValue; }\
112 
116  SITK_RETURN_SELF_TYPE_HEADER SetIsolatedValueTolerance ( double IsolatedValueTolerance ) { this->m_IsolatedValueTolerance = IsolatedValueTolerance; return *this; }
117 
121  double GetIsolatedValueTolerance() const { return this->m_IsolatedValueTolerance; }\
122 
126  SITK_RETURN_SELF_TYPE_HEADER SetFindUpperThreshold ( bool FindUpperThreshold ) { this->m_FindUpperThreshold = FindUpperThreshold; return *this; }
127 
129  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOn() { return this->SetFindUpperThreshold(true); }
130  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOff() { return this->SetFindUpperThreshold(false); }
131 
135  bool GetFindUpperThreshold() const { return this->m_FindUpperThreshold; }
142  bool GetThresholdingFailed() const { return this->m_ThresholdingFailed; };
143 
150  double GetIsolatedValue() const { return this->m_IsolatedValue; };
151 
152 
154  std::string GetName() const { return std::string ("IsolatedConnectedImageFilter"); }
155 
157  std::string ToString() const;
158 
159 
162  Image Execute ( const Image& image1 );
163 
164  private:
165 
168  using MemberFunctionType = Image (Self::*)( const Image& image1 );
169  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
170 
171 
173 
174  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
175 
176 
177  std::vector<unsigned int> m_Seed1{std::vector<unsigned int>(3, 0)};
178 
179  std::vector<unsigned int> m_Seed2{std::vector<unsigned int>(3, 0)};
180 
181  double m_Lower{0};
182 
183  double m_Upper{1};
184 
185  uint8_t m_ReplaceValue{1u};
186 
187  double m_IsolatedValueTolerance{1.0};
188 
189  /* */
190  bool m_FindUpperThreshold{true};
191 
192 
193  bool m_ThresholdingFailed{false};
194 
195  double m_IsolatedValue{0.0};
196 
197 
198  };
199 
210  SITKBasicFilters_EXPORT 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 );
211 
213  }
214 }
215 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
sitkBasicFilters.h
itk::uint8_t
::uint8_t uint8_t
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::IsolatedConnectedImageFilter::GetThresholdingFailed
bool GetThresholdingFailed() const
Definition: sitkIsolatedConnectedImageFilter.h:142
itk::simple::IsolatedConnectedImageFilter::SetSeed1
Self & SetSeed1(std::vector< unsigned int > Seed1)
Definition: sitkIsolatedConnectedImageFilter.h:68
itk::simple::IsolatedConnectedImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkIsolatedConnectedImageFilter.h:174
itk::simple::BasicPixelIDTypeList
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::IsolatedConnectedImageFilter::GetName
std::string GetName() const
Definition: sitkIsolatedConnectedImageFilter.h:154
itk::simple::IsolatedConnectedImageFilter::SetSeed2
Self & SetSeed2(std::vector< unsigned int > Seed2)
Definition: sitkIsolatedConnectedImageFilter.h:77
itk::simple::IsolatedConnectedImageFilter::GetIsolatedValueTolerance
double GetIsolatedValueTolerance() const
Definition: sitkIsolatedConnectedImageFilter.h:121
itk::simple::IsolatedConnectedImageFilter::GetUpper
double GetUpper() const
Definition: sitkIsolatedConnectedImageFilter.h:101
itk::simple::IsolatedConnected
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.
itk::simple::IsolatedConnectedImageFilter::SetFindUpperThreshold
Self & SetFindUpperThreshold(bool FindUpperThreshold)
Definition: sitkIsolatedConnectedImageFilter.h:126
itk::simple::IsolatedConnectedImageFilter::GetSeed1
std::vector< unsigned int > GetSeed1() const
Definition: sitkIsolatedConnectedImageFilter.h:72
itk::simple::IsolatedConnectedImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkIsolatedConnectedImageFilter.h:62
itk::simple::IsolatedConnectedImageFilter::GetFindUpperThreshold
bool GetFindUpperThreshold() const
Definition: sitkIsolatedConnectedImageFilter.h:135
itk::simple::IsolatedConnectedImageFilter::GetReplaceValue
uint8_t GetReplaceValue() const
Definition: sitkIsolatedConnectedImageFilter.h:111
itk::simple::IsolatedConnectedImageFilter::SetUpper
Self & SetUpper(double Upper)
Definition: sitkIsolatedConnectedImageFilter.h:96
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::IsolatedConnectedImageFilter
Label pixels that are connected to one set of seeds but not another.
Definition: sitkIsolatedConnectedImageFilter.h:50
itk::simple::IsolatedConnectedImageFilter::FindUpperThresholdOn
Self & FindUpperThresholdOn()
Definition: sitkIsolatedConnectedImageFilter.h:129
itk
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::IsolatedConnectedImageFilter::SetReplaceValue
Self & SetReplaceValue(uint8_t ReplaceValue)
Definition: sitkIsolatedConnectedImageFilter.h:106
itk::simple::IsolatedConnectedImageFilter::FindUpperThresholdOff
Self & FindUpperThresholdOff()
Definition: sitkIsolatedConnectedImageFilter.h:130
itk::simple::IsolatedConnectedImageFilter::SetIsolatedValueTolerance
Self & SetIsolatedValueTolerance(double IsolatedValueTolerance)
Definition: sitkIsolatedConnectedImageFilter.h:116
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::IsolatedConnectedImageFilter::GetLower
double GetLower() const
Definition: sitkIsolatedConnectedImageFilter.h:91
itk::simple::IsolatedConnectedImageFilter::SetLower
Self & SetLower(double Lower)
Definition: sitkIsolatedConnectedImageFilter.h:86
itk::simple::IsolatedConnectedImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkIsolatedConnectedImageFilter.h:168
itk::simple::IsolatedConnectedImageFilter::GetIsolatedValue
double GetIsolatedValue() const
Definition: sitkIsolatedConnectedImageFilter.h:150
itk::simple::IsolatedConnectedImageFilter::GetSeed2
std::vector< unsigned int > GetSeed2() const
Definition: sitkIsolatedConnectedImageFilter.h:81