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 {
33  namespace simple {
34 
51  public:
53 
56 
60 
63 \
64 
70  SITK_RETURN_SELF_TYPE_HEADER SetSeed1 ( std::vector<unsigned int> Seed1 ) { this->m_Seed1 = std::move(Seed1); return *this; }
71 
74  std::vector<unsigned int> GetSeed1() const { return this->m_Seed1; }\
75 
81  SITK_RETURN_SELF_TYPE_HEADER SetSeed2 ( std::vector<unsigned int> Seed2 ) { this->m_Seed2 = std::move(Seed2); return *this; }
82 
85  std::vector<unsigned int> GetSeed2() const { return this->m_Seed2; }\
86 
90  SITK_RETURN_SELF_TYPE_HEADER SetLower ( double Lower ) { this->m_Lower = Lower; return *this; }
91 
95  double GetLower() const { return this->m_Lower; }\
96 
100  SITK_RETURN_SELF_TYPE_HEADER SetUpper ( double Upper ) { this->m_Upper = Upper; return *this; }
101 
105  double GetUpper() const { return this->m_Upper; }\
106 
110  SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue ( uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue; return *this; }
111 
115  uint8_t GetReplaceValue() const { return this->m_ReplaceValue; }\
116 
120  SITK_RETURN_SELF_TYPE_HEADER SetIsolatedValueTolerance ( double IsolatedValueTolerance ) { this->m_IsolatedValueTolerance = IsolatedValueTolerance; return *this; }
121 
125  double GetIsolatedValueTolerance() const { return this->m_IsolatedValueTolerance; }\
126 
130  SITK_RETURN_SELF_TYPE_HEADER SetFindUpperThreshold ( bool FindUpperThreshold ) { this->m_FindUpperThreshold = FindUpperThreshold; return *this; }
131 
133  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOn() { return this->SetFindUpperThreshold(true); }
134  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOff() { return this->SetFindUpperThreshold(false); }
135 
139  bool GetFindUpperThreshold() const { return this->m_FindUpperThreshold; }
146  bool GetThresholdingFailed() const { return this->m_ThresholdingFailed; };
147 
154  double GetIsolatedValue() const { return this->m_IsolatedValue; };
155 
156 
158  std::string GetName() const { return std::string ("IsolatedConnectedImageFilter"); }
159 
161  std::string ToString() const;
162 
163 
166  Image Execute ( const Image& image1 );
167 
168  private:
169 
172  using MemberFunctionType = Image (Self::*)( const Image& image1 );
173  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
174 
175 
177 
178  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
179 
180 
181  std::vector<unsigned int> m_Seed1{std::vector<unsigned int>(3, 0)};
182 
183  std::vector<unsigned int> m_Seed2{std::vector<unsigned int>(3, 0)};
184 
185  double m_Lower{0};
186 
187  double m_Upper{1};
188 
189  uint8_t m_ReplaceValue{1u};
190 
191  double m_IsolatedValueTolerance{1.0};
192 
193  /* */
194  bool m_FindUpperThreshold{true};
195 
196 
197  bool m_ThresholdingFailed{false};
198 
199  double m_IsolatedValue{0.0};
200 
201 
202  };
203 
214  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 );
215 
217  }
218 }
219 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
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:53
itk::simple::IsolatedConnectedImageFilter::GetThresholdingFailed
bool GetThresholdingFailed() const
Definition: sitkIsolatedConnectedImageFilter.h:146
itk::simple::IsolatedConnectedImageFilter::SetSeed1
Self & SetSeed1(std::vector< unsigned int > Seed1)
Definition: sitkIsolatedConnectedImageFilter.h:70
itk::simple::IsolatedConnectedImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkIsolatedConnectedImageFilter.h:178
sitkImageFilter.h
itk::simple::IsolatedConnectedImageFilter::GetName
std::string GetName() const
Definition: sitkIsolatedConnectedImageFilter.h:158
itk::simple::IsolatedConnectedImageFilter::SetSeed2
Self & SetSeed2(std::vector< unsigned int > Seed2)
Definition: sitkIsolatedConnectedImageFilter.h:81
itk::simple::IsolatedConnectedImageFilter::GetIsolatedValueTolerance
double GetIsolatedValueTolerance() const
Definition: sitkIsolatedConnectedImageFilter.h:125
itk::simple::IsolatedConnectedImageFilter::GetUpper
double GetUpper() const
Definition: sitkIsolatedConnectedImageFilter.h:105
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:130
itk::simple::IsolatedConnectedImageFilter::GetSeed1
std::vector< unsigned int > GetSeed1() const
Definition: sitkIsolatedConnectedImageFilter.h:74
itk::simple::IsolatedConnectedImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkIsolatedConnectedImageFilter.h:62
itk::simple::IsolatedConnectedImageFilter::GetFindUpperThreshold
bool GetFindUpperThreshold() const
Definition: sitkIsolatedConnectedImageFilter.h:139
itk::simple::IsolatedConnectedImageFilter::GetReplaceValue
uint8_t GetReplaceValue() const
Definition: sitkIsolatedConnectedImageFilter.h:115
itk::simple::IsolatedConnectedImageFilter::SetUpper
Self & SetUpper(double Upper)
Definition: sitkIsolatedConnectedImageFilter.h:100
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:133
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:110
itk::simple::IsolatedConnectedImageFilter::FindUpperThresholdOff
Self & FindUpperThresholdOff()
Definition: sitkIsolatedConnectedImageFilter.h:134
itk::simple::IsolatedConnectedImageFilter::SetIsolatedValueTolerance
Self & SetIsolatedValueTolerance(double IsolatedValueTolerance)
Definition: sitkIsolatedConnectedImageFilter.h:120
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::IsolatedConnectedImageFilter::GetLower
double GetLower() const
Definition: sitkIsolatedConnectedImageFilter.h:95
itk::simple::IsolatedConnectedImageFilter::SetLower
Self & SetLower(double Lower)
Definition: sitkIsolatedConnectedImageFilter.h:90
itk::simple::IsolatedConnectedImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkIsolatedConnectedImageFilter.h:172
itk::simple::IsolatedConnectedImageFilter::GetIsolatedValue
double GetIsolatedValue() const
Definition: sitkIsolatedConnectedImageFilter.h:154
itk::simple::IsolatedConnectedImageFilter::GetSeed2
std::vector< unsigned int > GetSeed2() const
Definition: sitkIsolatedConnectedImageFilter.h:85