SimpleITK  1.0.1
sitkVectorConfidenceConnectedImageFilter.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 sitkVectorConfidenceConnectedImageFilter_h
19 #define sitkVectorConfidenceConnectedImageFilter_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 sitkRegionGrowingImageFilterTemplate.h.in to make changes.
25  */
26 
27 #include <memory>
28 
29 #include "sitkImageFilter.h"
30 #include "sitkBasicFilters.h"
31 
32 namespace itk {
33  namespace simple {
34 
47  public:
49 
53 
56 
59 
60 
61 
65  SITK_RETURN_SELF_TYPE_HEADER SetNumberOfIterations ( unsigned int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations; return *this; }
66 
70  unsigned int GetNumberOfIterations() const { return this->m_NumberOfIterations; }
71 
75  SITK_RETURN_SELF_TYPE_HEADER SetMultiplier ( double Multiplier ) { this->m_Multiplier = Multiplier; return *this; }
76 
80  double GetMultiplier() const { return this->m_Multiplier; }
81 
85  SITK_RETURN_SELF_TYPE_HEADER SetInitialNeighborhoodRadius ( unsigned int InitialNeighborhoodRadius ) { this->m_InitialNeighborhoodRadius = InitialNeighborhoodRadius; return *this; }
86 
90  unsigned int GetInitialNeighborhoodRadius() const { return this->m_InitialNeighborhoodRadius; }
91 
95  SITK_RETURN_SELF_TYPE_HEADER SetReplaceValue ( uint8_t ReplaceValue ) { this->m_ReplaceValue = ReplaceValue; return *this; }
96 
100  uint8_t GetReplaceValue() const { return this->m_ReplaceValue; }
107  std::vector<double> GetMean() const { return this->m_Mean; };
108 
115  std::vector<double> GetCovariance() const { return this->m_Covariance; };
116 
118  SITK_RETURN_SELF_TYPE_HEADER SetSeedList ( const std::vector< std::vector<unsigned int> > &t )
119  {
120  this->m_SeedList = t; return *this;
121  }
122 
124  std::vector< std::vector<unsigned int> > GetSeedList() const
125  {
126  return this->m_SeedList;
127  }
128 
130  SITK_RETURN_SELF_TYPE_HEADER ClearSeeds( )
131  {
132  this->m_SeedList.clear();
133  return *this;
134  }
135 
137  SITK_RETURN_SELF_TYPE_HEADER SetSeed( const std::vector<unsigned int> &idx )
138  {
139  this->m_SeedList.clear();
140  this->m_SeedList.push_back(idx);
141  return *this;
142  }
143 
145  SITK_RETURN_SELF_TYPE_HEADER AddSeed( const std::vector<unsigned int> &idx )
146  {
147  this->m_SeedList.push_back(idx);
148  return *this;
149  }
150 
152  std::string GetName() const { return std::string ("VectorConfidenceConnectedImageFilter"); }
153 
155  std::string ToString() const;
156 
157 
159  Image Execute ( const Image& image1 );
160 
161 
163  Image Execute ( const Image& image1, const std::vector< std::vector<unsigned int> > &seedList, unsigned int numberOfIterations, double multiplier, unsigned int initialNeighborhoodRadius, uint8_t replaceValue );
164 
165  private:
166 
169  typedef Image (Self::*MemberFunctionType)( const Image& image1 );
170  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
171 
172 
173 
174  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
175 
176  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
177 
178 
179  unsigned int m_NumberOfIterations;
180  double m_Multiplier;
183  /* Some global documentation */
184  std::vector<double> m_Mean;
185  /* Some global documentation */
186  std::vector<double> m_Covariance;
187 
188 
190  std::vector< std::vector<unsigned int> > m_SeedList;
191 
192  };
193 
194 
201 Image SITKBasicFilters_EXPORT VectorConfidenceConnected ( const Image& image1, const std::vector< std::vector<unsigned int> > &seedList, unsigned int numberOfIterations = 4u, double multiplier = 4.5, unsigned int initialNeighborhoodRadius = 1u, uint8_t replaceValue = 1u );
202 
203 
204  } // end namespace simple
205 } // end namespace itk
206 #endif
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#define SITKBasicFilters_EXPORT
::uint8_t uint8_t
std::vector< std::vector< unsigned int > > GetSeedList() const
The main Image class for SimpleITK.
Definition: sitkImage.h:54
Self & SetSeedList(const std::vector< std::vector< unsigned int > > &t)
Segment pixels with similar statistics using connectivity.
typelist::MakeTypeList< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > >::Type VectorPixelIDTypeList
Image VectorConfidenceConnected(const Image &image1, const std::vector< std::vector< unsigned int > > &seedList, unsigned int numberOfIterations=4u, double multiplier=4.5, unsigned int initialNeighborhoodRadius=1u, uint8_t replaceValue=1u)
The base interface for SimpleITK filters that take one input image.
Self & SetInitialNeighborhoodRadius(unsigned int InitialNeighborhoodRadius)