SimpleITK  1.2.4
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 
52 
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  friend struct detail::MemberFunctionAddressor<MemberFunctionType>;
174 
175  nsstd::auto_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
176 
177 
178  unsigned int m_NumberOfIterations;
179  double m_Multiplier;
182  /* Some global documentation */
183  std::vector<double> m_Mean;
184  /* Some global documentation */
185  std::vector<double> m_Covariance;
186 
187 
189  std::vector< std::vector<unsigned int> > m_SeedList;
190 
191  };
192 
193 
200 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 );
201 
202 
203  } // end namespace simple
204 } // end namespace itk
205 #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 Image class for SimpleITK.
Definition: sitkImage.h:78
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)