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.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkBasicFilters.h"
30 #include "sitkImageFilter.h"
31 
32 namespace itk::simple {
33 
50  public:
52 
55 
59 
62 \
63 
69  SITK_RETURN_SELF_TYPE_HEADER SetSeed1 ( std::vector<unsigned int> Seed1 ) { this->m_Seed1 = std::move(Seed1); return *this; }
70 
73  std::vector<unsigned int> GetSeed1() const { return this->m_Seed1; }\
74 
80  SITK_RETURN_SELF_TYPE_HEADER SetSeed2 ( std::vector<unsigned int> Seed2 ) { this->m_Seed2 = std::move(Seed2); return *this; }
81 
84  std::vector<unsigned int> GetSeed2() const { return this->m_Seed2; }\
85 
89  SITK_RETURN_SELF_TYPE_HEADER SetLower ( double Lower ) { this->m_Lower = Lower; return *this; }
90 
94  double GetLower() const { return this->m_Lower; }\
95 
99  SITK_RETURN_SELF_TYPE_HEADER SetUpper ( double Upper ) { this->m_Upper = Upper; return *this; }
100 
104  double GetUpper() const { return this->m_Upper; }\
105 
109  SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue ( uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue; return *this; }
110 
114  uint8_t GetReplaceValue() const { return this->m_ReplaceValue; }\
115 
119  SITK_RETURN_SELF_TYPE_HEADER SetIsolatedValueTolerance ( double IsolatedValueTolerance ) { this->m_IsolatedValueTolerance = IsolatedValueTolerance; return *this; }
120 
124  double GetIsolatedValueTolerance() const { return this->m_IsolatedValueTolerance; }\
125 
129  SITK_RETURN_SELF_TYPE_HEADER SetFindUpperThreshold ( bool FindUpperThreshold ) { this->m_FindUpperThreshold = FindUpperThreshold; return *this; }
130 
132  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOn() { return this->SetFindUpperThreshold(true); }
133  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOff() { return this->SetFindUpperThreshold(false); }
134 
138  bool GetFindUpperThreshold() const { return this->m_FindUpperThreshold; }
145  bool GetThresholdingFailed() const { return this->m_ThresholdingFailed; };
146 
153  double GetIsolatedValue() const { return this->m_IsolatedValue; };
154 
155 
157  std::string GetName() const { return std::string ("IsolatedConnectedImageFilter"); }
158 
160  std::string ToString() const;
161 
162 
165  Image Execute ( const Image& image1 );
166 
167  private:
168 
171  using MemberFunctionType = Image (Self::*)( const Image& image1 );
172  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
173 
174 
176 
177  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
178 
179 
180  std::vector<unsigned int> m_Seed1{std::vector<unsigned int>(3, 0)};
181 
182  std::vector<unsigned int> m_Seed2{std::vector<unsigned int>(3, 0)};
183 
184  double m_Lower{0};
185 
186  double m_Upper{1};
187 
188  uint8_t m_ReplaceValue{1u};
189 
190  double m_IsolatedValueTolerance{1.0};
191 
192  /* */
193  bool m_FindUpperThreshold{true};
194 
195 
196  bool m_ThresholdingFailed{false};
197 
198  double m_IsolatedValue{0.0};
199 
200 
201  };
202 
213  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 );
214 
216 }
217 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:29
itk::simple::BasicPixelIDTypeList
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
Definition: sitkPixelIDTypeLists.h:51
itk::simple::IsolatedConnectedImageFilter::GetThresholdingFailed
bool GetThresholdingFailed() const
Definition: sitkIsolatedConnectedImageFilter.h:145
itk::simple::IsolatedConnectedImageFilter::SetSeed1
Self & SetSeed1(std::vector< unsigned int > Seed1)
Definition: sitkIsolatedConnectedImageFilter.h:69
itk::simple::IsolatedConnectedImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkIsolatedConnectedImageFilter.h:177
sitkImageFilter.h
itk::simple::IsolatedConnectedImageFilter::GetName
std::string GetName() const
Definition: sitkIsolatedConnectedImageFilter.h:157
itk::simple::IsolatedConnectedImageFilter::SetSeed2
Self & SetSeed2(std::vector< unsigned int > Seed2)
Definition: sitkIsolatedConnectedImageFilter.h:80
itk::simple::IsolatedConnectedImageFilter::GetIsolatedValueTolerance
double GetIsolatedValueTolerance() const
Definition: sitkIsolatedConnectedImageFilter.h:124
itk::simple::IsolatedConnectedImageFilter::GetUpper
double GetUpper() const
Definition: sitkIsolatedConnectedImageFilter.h:104
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:129
itk::simple::IsolatedConnectedImageFilter::GetSeed1
std::vector< unsigned int > GetSeed1() const
Definition: sitkIsolatedConnectedImageFilter.h:73
itk::simple::IsolatedConnectedImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkIsolatedConnectedImageFilter.h:61
itk::simple::IsolatedConnectedImageFilter::GetFindUpperThreshold
bool GetFindUpperThreshold() const
Definition: sitkIsolatedConnectedImageFilter.h:138
itk::simple::IsolatedConnectedImageFilter::GetReplaceValue
uint8_t GetReplaceValue() const
Definition: sitkIsolatedConnectedImageFilter.h:114
itk::simple::IsolatedConnectedImageFilter::SetUpper
Self & SetUpper(double Upper)
Definition: sitkIsolatedConnectedImageFilter.h:99
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:49
itk::simple::IsolatedConnectedImageFilter::FindUpperThresholdOn
Self & FindUpperThresholdOn()
Definition: sitkIsolatedConnectedImageFilter.h:132
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:35
itk::simple::IsolatedConnectedImageFilter::SetReplaceValue
Self & SetReplaceValue(uint8_t ReplaceValue)
Definition: sitkIsolatedConnectedImageFilter.h:109
itk::simple::IsolatedConnectedImageFilter::FindUpperThresholdOff
Self & FindUpperThresholdOff()
Definition: sitkIsolatedConnectedImageFilter.h:133
itk::simple::IsolatedConnectedImageFilter::SetIsolatedValueTolerance
Self & SetIsolatedValueTolerance(double IsolatedValueTolerance)
Definition: sitkIsolatedConnectedImageFilter.h:119
itk::Image
Definition: sitkPixelIDTypes.h:28
itk::simple::IsolatedConnectedImageFilter::GetLower
double GetLower() const
Definition: sitkIsolatedConnectedImageFilter.h:94
itk::simple::IsolatedConnectedImageFilter::SetLower
Self & SetLower(double Lower)
Definition: sitkIsolatedConnectedImageFilter.h:89
itk::simple::IsolatedConnectedImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkIsolatedConnectedImageFilter.h:171
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::IsolatedConnectedImageFilter::GetIsolatedValue
double GetIsolatedValue() const
Definition: sitkIsolatedConnectedImageFilter.h:153
itk::simple::IsolatedConnectedImageFilter::GetSeed2
std::vector< unsigned int > GetSeed2() const
Definition: sitkIsolatedConnectedImageFilter.h:84