SimpleITK  1.2.4
sitkIsolatedConnectedImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 *
3 * Copyright Insight Software Consortium
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 
65 
69  SITK_RETURN_SELF_TYPE_HEADER SetSeed1 ( const std::vector<unsigned int> & Seed1 ) { this->m_Seed1 = Seed1; return *this; }
70 
73  std::vector<unsigned int> GetSeed1() const { return this->m_Seed1; }
74 
78  SITK_RETURN_SELF_TYPE_HEADER SetSeed2 ( const std::vector<unsigned int> & Seed2 ) { this->m_Seed2 = Seed2; return *this; }
79 
82  std::vector<unsigned int> GetSeed2() const { return this->m_Seed2; }
83 
87  SITK_RETURN_SELF_TYPE_HEADER SetLower ( double Lower ) { this->m_Lower = Lower; return *this; }
88 
92  double GetLower() const { return this->m_Lower; }
93 
97  SITK_RETURN_SELF_TYPE_HEADER SetUpper ( double Upper ) { this->m_Upper = Upper; return *this; }
98 
102  double GetUpper() const { return this->m_Upper; }
103 
107  SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue ( uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue; return *this; }
108 
112  uint8_t GetReplaceValue() const { return this->m_ReplaceValue; }
113 
117  SITK_RETURN_SELF_TYPE_HEADER SetIsolatedValueTolerance ( double IsolatedValueTolerance ) { this->m_IsolatedValueTolerance = IsolatedValueTolerance; return *this; }
118 
122  double GetIsolatedValueTolerance() const { return this->m_IsolatedValueTolerance; }
123 
127  SITK_RETURN_SELF_TYPE_HEADER SetFindUpperThreshold ( bool FindUpperThreshold ) { this->m_FindUpperThreshold = FindUpperThreshold; return *this; }
128 
130  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOn() { return this->SetFindUpperThreshold(true); }
131  SITK_RETURN_SELF_TYPE_HEADER FindUpperThresholdOff() { return this->SetFindUpperThreshold(false); }
132 
136  bool GetFindUpperThreshold() const { return this->m_FindUpperThreshold; }
143  bool GetThresholdingFailed() const { return this->m_ThresholdingFailed; };
144 
151  double GetIsolatedValue() const { return this->m_IsolatedValue; };
152 
154  std::string GetName() const { return std::string ("IsolatedConnectedImageFilter"); }
155 
157  std::string ToString() const;
158 
159 
161  Image Execute ( const Image& image1 );
162 
163 
165  Image Execute ( const Image& image1, const std::vector<unsigned int> & seed1, const std::vector<unsigned int> & seed2, double lower, double upper, uint8_t replaceValue, double isolatedValueTolerance, bool findUpperThreshold );
166 
167  private:
168 
171  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
172  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
173 
174 
175  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
176 
177  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
178 
179 
180  std::vector<unsigned int> m_Seed1;
181  std::vector<unsigned int> m_Seed2;
182  double m_Lower;
183  double m_Upper;
186  /* */
188 
190 
192 
193  };
194 
195 
204  SITKBasicFilters_EXPORT Image IsolatedConnected ( const Image& image1, const std::vector<unsigned int> & seed1 = std::vector<unsigned int>(3, 0), const 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 );
205 
206  }
207 }
208 #endif
#define SITKBasicFilters_EXPORT
Image IsolatedConnected(const Image &image1, const std::vector< unsigned int > &seed1=std::vector< unsigned int >(3, 0), const 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.
Self & SetSeed1(const std::vector< unsigned int > &Seed1)
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
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
::uint8_t uint8_t
Self & SetSeed2(const std::vector< unsigned int > &Seed2)
The Image class for SimpleITK.
Definition: sitkImage.h:78
Self & SetIsolatedValueTolerance(double IsolatedValueTolerance)
Label pixels that are connected to one set of seeds but not another.
The base interface for SimpleITK filters that take one input image.