SimpleITK  
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.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
32
33namespace itk::simple {
34
45public:
47
50
54
57
58
59
60
64 void
65 SetSeedList(std::vector< std::vector<unsigned int> > SeedList )
66 { this->m_SeedList = std::move(SeedList); }
67
70 std::vector< std::vector< unsigned int > >
71 GetSeedList() const { return this->m_SeedList; }
73 void
74 AddSeed( std::vector< unsigned int > point ) { this->m_SeedList.push_back(std::move(point));}
76 void
77 ClearSeeds( ) { this->m_SeedList.clear();}
78
79
83 void
84 SetLower(double Lower )
85 { this->m_Lower = Lower; }
86
89 double
90 GetLower() const { return this->m_Lower; }
91
92
96 void
97 SetUpper(double Upper )
98 { this->m_Upper = Upper; }
99
102 double
103 GetUpper() const { return this->m_Upper; }
104
105
110 void
111 SetReplaceValue(uint8_t ReplaceValue )
112 { this->m_ReplaceValue = ReplaceValue; }
113
117 uint8_t
118 GetReplaceValue() const { return this->m_ReplaceValue; }
119
120 typedef enum { FaceConnectivity, FullConnectivity } ConnectivityType;
121
125 void
128
131 ConnectivityType
132 GetConnectivity() const { return this->m_Connectivity; }
133
134
136 std::string GetName() const { return std::string("ConnectedThresholdImageFilter"); }
137
139 std::string ToString() const;
140
141
143 Image Execute(const Image &image1);
144
145
146private:
148 using MemberFunctionType = Image (Self::*)(const Image &image1);
149 template <class TImageType> Image ExecuteInternal(const Image &image1);
152
153
154 std::vector< std::vector<unsigned int> > m_SeedList{ std::vector< std::vector<unsigned int > >() };
155
156 double m_Lower{ 0 };
157
158 double m_Upper{ 1 };
159
160 /* Pixels that lie within Lower and Upper (inclusive)
161will be replaced with this value. The default is 1. */
162 uint8_t m_ReplaceValue{ 1u };
163
165
166
167
168
169
170
171
172};
173
174
184 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
185);
186
188
189}
190#endif
std::vector< std::vector< unsigned int > > GetSeedList() const
Get list of seeds.
std::vector< std::vector< unsigned int > > m_SeedList
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetSeedList(std::vector< std::vector< unsigned int > > SeedList)
Set list of image indexes for seeds.
Image ExecuteInternal(const Image &image1)
void AddSeed(std::vector< unsigned int > point)
Add SeedList point.
Image Execute(const Image &image1)
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
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.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
#define SITKBasicFilters_EXPORT