SimpleITK  2.0.0
sitkVectorConfidenceConnectedImageFilter.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 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 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 
47  public:
49 
52 
56 
59 \
60 
64  SITK_RETURN_SELF_TYPE_HEADER SetSeedList ( std::vector< std::vector<unsigned int> > SeedList ) { this->m_SeedList = std::move(SeedList); return *this; }
65 
69  std::vector< std::vector< unsigned int > > GetSeedList() const { return this->m_SeedList; }
71  SITK_RETURN_SELF_TYPE_HEADER AddSeed( std::vector< unsigned int > point ) { this->m_SeedList.push_back(std::move(point)); return *this;}
73  SITK_RETURN_SELF_TYPE_HEADER ClearSeeds( ) { this->m_SeedList.clear(); return *this;}
74 \
75 
79  SITK_RETURN_SELF_TYPE_HEADER SetNumberOfIterations ( unsigned int NumberOfIterations ) { this->m_NumberOfIterations = NumberOfIterations; return *this; }
80 
84  unsigned int GetNumberOfIterations() const { return this->m_NumberOfIterations; }\
85 
89  SITK_RETURN_SELF_TYPE_HEADER SetMultiplier ( double Multiplier ) { this->m_Multiplier = Multiplier; return *this; }
90 
94  double GetMultiplier() const { return this->m_Multiplier; }\
95 
99  SITK_RETURN_SELF_TYPE_HEADER SetInitialNeighborhoodRadius ( unsigned int InitialNeighborhoodRadius ) { this->m_InitialNeighborhoodRadius = InitialNeighborhoodRadius; return *this; }
100 
104  unsigned int GetInitialNeighborhoodRadius() const { return this->m_InitialNeighborhoodRadius; }\
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; }
121  std::vector<double> GetMean() const { return this->m_Mean; };
122 
129  std::vector<double> GetCovariance() const { return this->m_Covariance; };
130 
131 
133  std::string GetName() const { return std::string ("VectorConfidenceConnectedImageFilter"); }
134 
136  std::string ToString() const;
137 
138 
141  Image Execute ( const Image& image1 );
142 
143  private:
144 
147  using MemberFunctionType = Image (Self::*)( const Image& image1 );
148  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
149 
150 
152 
153  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
154 
155 
156  std::vector< std::vector<unsigned int> > m_SeedList{std::vector< std::vector<unsigned int > >()};
157 
158  unsigned int m_NumberOfIterations{4u};
159 
160  double m_Multiplier{4.5};
161 
162  unsigned int m_InitialNeighborhoodRadius{1u};
163 
164  uint8_t m_ReplaceValue{1u};
165 
166  /* Some global documentation */
167  std::vector<double> m_Mean{std::vector<double>()};
168  /* Some global documentation */
169  std::vector<double> m_Covariance{std::vector<double>()};
170 
171 
172  };
173 
184  SITKBasicFilters_EXPORT Image VectorConfidenceConnected ( const Image& image1, std::vector< std::vector<unsigned int> > seedList = std::vector< std::vector<unsigned int > >(), unsigned int numberOfIterations = 4u, double multiplier = 4.5, unsigned int initialNeighborhoodRadius = 1u, uint8_t replaceValue = 1u );
185 
187  }
188 }
189 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
itk::simple::VectorConfidenceConnectedImageFilter::GetInitialNeighborhoodRadius
unsigned int GetInitialNeighborhoodRadius() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:104
sitkBasicFilters.h
itk::uint8_t
::uint8_t uint8_t
itk::simple::VectorConfidenceConnectedImageFilter::GetSeedList
std::vector< std::vector< unsigned int > > GetSeedList() const
Get list of seeds.
Definition: sitkVectorConfidenceConnectedImageFilter.h:69
itk::simple::VectorConfidenceConnected
Image VectorConfidenceConnected(const Image &image1, std::vector< std::vector< unsigned int > > seedList=std::vector< std::vector< unsigned int > >(), unsigned int numberOfIterations=4u, double multiplier=4.5, unsigned int initialNeighborhoodRadius=1u, uint8_t replaceValue=1u)
Segment pixels with similar statistics using connectivity.
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::VectorConfidenceConnectedImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkVectorConfidenceConnectedImageFilter.h:147
itk::simple::VectorConfidenceConnectedImageFilter::SetSeedList
Self & SetSeedList(std::vector< std::vector< unsigned int > > SeedList)
Set list of image indexes for seeds.
Definition: sitkVectorConfidenceConnectedImageFilter.h:64
itk::simple::VectorConfidenceConnectedImageFilter::SetNumberOfIterations
Self & SetNumberOfIterations(unsigned int NumberOfIterations)
Definition: sitkVectorConfidenceConnectedImageFilter.h:79
itk::simple::VectorConfidenceConnectedImageFilter::AddSeed
Self & AddSeed(std::vector< unsigned int > point)
Add SeedList point.
Definition: sitkVectorConfidenceConnectedImageFilter.h:71
itk::simple::VectorConfidenceConnectedImageFilter::SetInitialNeighborhoodRadius
Self & SetInitialNeighborhoodRadius(unsigned int InitialNeighborhoodRadius)
Definition: sitkVectorConfidenceConnectedImageFilter.h:99
itk::simple::VectorConfidenceConnectedImageFilter::PixelIDTypeList
VectorPixelIDTypeList PixelIDTypeList
Definition: sitkVectorConfidenceConnectedImageFilter.h:58
sitkImageFilter.h
itk::simple::VectorConfidenceConnectedImageFilter::GetMultiplier
double GetMultiplier() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:94
itk::simple::VectorConfidenceConnectedImageFilter::GetName
std::string GetName() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:133
itk::simple::VectorConfidenceConnectedImageFilter::GetNumberOfIterations
unsigned int GetNumberOfIterations() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:84
itk::simple::VectorConfidenceConnectedImageFilter::SetReplaceValue
Self & SetReplaceValue(uint8_t ReplaceValue)
Definition: sitkVectorConfidenceConnectedImageFilter.h:109
itk::simple::VectorConfidenceConnectedImageFilter::ClearSeeds
Self & ClearSeeds()
Remove all SeedList points.
Definition: sitkVectorConfidenceConnectedImageFilter.h:73
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::VectorConfidenceConnectedImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkVectorConfidenceConnectedImageFilter.h:153
itk::simple::VectorPixelIDTypeList
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
Definition: sitkPixelIDTypeLists.h:134
itk
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::simple::VectorConfidenceConnectedImageFilter::GetReplaceValue
uint8_t GetReplaceValue() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:114
itk::Image
Definition: sitkPixelIDTypes.h:26
itk::simple::VectorConfidenceConnectedImageFilter::GetCovariance
std::vector< double > GetCovariance() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:129
itk::simple::VectorConfidenceConnectedImageFilter::SetMultiplier
Self & SetMultiplier(double Multiplier)
Definition: sitkVectorConfidenceConnectedImageFilter.h:89
itk::simple::VectorConfidenceConnectedImageFilter
Segment pixels with similar statistics using connectivity.
Definition: sitkVectorConfidenceConnectedImageFilter.h:46
itk::simple::VectorConfidenceConnectedImageFilter::GetMean
std::vector< double > GetMean() const
Definition: sitkVectorConfidenceConnectedImageFilter.h:121