SimpleITK  2.0.0rc2.post23
sitkConnectedThresholdImageFilter.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 sitkConnectedThresholdImageFilter_h
19 #define sitkConnectedThresholdImageFilter_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 
43  public:
45 
48 
52 
55 \
56 
60  SITK_RETURN_SELF_TYPE_HEADER SetSeedList ( std::vector< std::vector<unsigned int> > SeedList ) { this->m_SeedList = std::move(SeedList); return *this; }
61 
65  std::vector< std::vector< unsigned int > > GetSeedList() const { return this->m_SeedList; }
67  SITK_RETURN_SELF_TYPE_HEADER AddSeed( std::vector< unsigned int > point ) { this->m_SeedList.push_back(std::move(point)); return *this;}
69  SITK_RETURN_SELF_TYPE_HEADER ClearSeeds( ) { this->m_SeedList.clear(); return *this;}
70 \
71 
75  SITK_RETURN_SELF_TYPE_HEADER SetLower ( double Lower ) { this->m_Lower = Lower; return *this; }
76 
80  double GetLower() const { return this->m_Lower; }\
81 
85  SITK_RETURN_SELF_TYPE_HEADER SetUpper ( double Upper ) { this->m_Upper = Upper; return *this; }
86 
90  double GetUpper() const { return this->m_Upper; }\
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; }
101 
102  typedef enum {FaceConnectivity,FullConnectivity} ConnectivityType;\
103 
107  SITK_RETURN_SELF_TYPE_HEADER SetConnectivity ( ConnectivityType Connectivity ) { this->m_Connectivity = Connectivity; return *this; }
108 
112  ConnectivityType GetConnectivity() const { return this->m_Connectivity; }
113 
115  std::string GetName() const { return std::string ("ConnectedThresholdImageFilter"); }
116 
118  std::string ToString() const;
119 
120 
123  Image Execute ( const Image& image1 );
124 
125  private:
126 
129  using MemberFunctionType = Image (Self::*)( const Image& image1 );
130  template <class TImageType> Image ExecuteInternal ( const Image& image1 );
131 
132 
134 
135  std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
136 
137 
138  std::vector< std::vector<unsigned int> > m_SeedList{std::vector< std::vector<unsigned int > >()};
139 
140  double m_Lower{0};
141 
142  double m_Upper{1};
143 
144  /* Pixels that lie within Lower and Upper (inclusive)
145 will be replaced with this value. The default is 1. */
146  uint8_t m_ReplaceValue{1u};
147 
149 
150 
151  };
152 
163  SITKBasicFilters_EXPORT Image ConnectedThreshold ( const Image& image1, std::vector< std::vector<unsigned int> > seedList = std::vector< std::vector<unsigned int > >(), double lower = 0, double upper = 1, uint8_t replaceValue = 1u, ConnectedThresholdImageFilter::ConnectivityType connectivity = itk::simple::ConnectedThresholdImageFilter::FaceConnectivity );
164 
166  }
167 }
168 #endif
Connectivity
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:75
itk::simple::ConnectedThresholdImageFilter::ClearSeeds
Self & ClearSeeds()
Remove all SeedList points.
Definition: sitkConnectedThresholdImageFilter.h:69
itk::simple::ConnectedThresholdImageFilter::GetLower
double GetLower() const
Definition: sitkConnectedThresholdImageFilter.h:80
sitkBasicFilters.h
itk::uint8_t
::uint8_t uint8_t
itk::simple::ConnectedThresholdImageFilter::SetLower
Self & SetLower(double Lower)
Definition: sitkConnectedThresholdImageFilter.h:75
itk::simple::detail::MemberFunctionAddressor
Definition: sitkDetail.h:32
itk::simple::ConnectedThresholdImageFilter::PixelIDTypeList
BasicPixelIDTypeList PixelIDTypeList
Definition: sitkConnectedThresholdImageFilter.h:54
itk::simple::ConnectedThresholdImageFilter::SetReplaceValue
Self & SetReplaceValue(uint8_t ReplaceValue)
Definition: sitkConnectedThresholdImageFilter.h:95
itk::simple::ConnectedThresholdImageFilter::GetSeedList
std::vector< std::vector< unsigned int > > GetSeedList() const
Get list of seeds.
Definition: sitkConnectedThresholdImageFilter.h:65
itk::simple::ConnectedThresholdImageFilter::GetReplaceValue
uint8_t GetReplaceValue() const
Definition: sitkConnectedThresholdImageFilter.h:100
itk::simple::ConnectedThresholdImageFilter::AddSeed
Self & AddSeed(std::vector< unsigned int > point)
Add SeedList point.
Definition: sitkConnectedThresholdImageFilter.h:67
itk::simple::BasicPixelIDTypeList
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
Definition: sitkPixelIDTypeLists.h:53
sitkImageFilter.h
itk::simple::ConnectedThresholdImageFilter::SetSeedList
Self & SetSeedList(std::vector< std::vector< unsigned int > > SeedList)
Set list of image indexes for seeds.
Definition: sitkConnectedThresholdImageFilter.h:60
itk::simple::ConnectedThresholdImageFilter::m_MemberFactory
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Definition: sitkConnectedThresholdImageFilter.h:135
itk::simple::ConnectedThresholdImageFilter::FaceConnectivity
@ FaceConnectivity
Definition: sitkConnectedThresholdImageFilter.h:102
itk::simple::ConnectedThresholdImageFilter::MemberFunctionType
Image(Self::*)(const Image &image1) MemberFunctionType
Definition: sitkConnectedThresholdImageFilter.h:129
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
itk::simple::ConnectedThresholdImageFilter::GetName
std::string GetName() const
Definition: sitkConnectedThresholdImageFilter.h:115
itk::simple::ConnectedThresholdImageFilter
Label pixels that are connected to a seed and lie within a range of values.
Definition: sitkConnectedThresholdImageFilter.h:42
itk::simple::ConnectedThresholdImageFilter::ConnectivityType
ConnectivityType
Definition: sitkConnectedThresholdImageFilter.h:102
itk::simple::ConnectedThresholdImageFilter::SetConnectivity
Self & SetConnectivity(ConnectivityType Connectivity)
Definition: sitkConnectedThresholdImageFilter.h:107
itk::simple::ConnectedThresholdImageFilter::SetUpper
Self & SetUpper(double Upper)
Definition: sitkConnectedThresholdImageFilter.h:85
itk::simple::ConnectedThresholdImageFilter::GetUpper
double GetUpper() const
Definition: sitkConnectedThresholdImageFilter.h:90
itk::simple::ConnectedThreshold
Image ConnectedThreshold(const Image &image1, std::vector< std::vector< unsigned int > > seedList=std::vector< std::vector< unsigned int > >(), double lower=0, double upper=1, uint8_t replaceValue=1u, ConnectedThresholdImageFilter::ConnectivityType connectivity=itk::simple::ConnectedThresholdImageFilter::FaceConnectivity)
Label pixels that are connected to a seed and lie within a range of values.
itk
itk::simple::ConnectedThresholdImageFilter::GetConnectivity
ConnectivityType GetConnectivity() const
Definition: sitkConnectedThresholdImageFilter.h:112
itk::simple::ImageFilter
The base interface for SimpleITK filters that take one input image.
Definition: sitkImageFilter.h:36
itk::Image
Definition: sitkPixelIDTypes.h:26