SimpleITK  
sitkIsolatedWatershedImageFilter.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 sitkIsolatedWatershedImageFilter_h
19#define sitkIsolatedWatershedImageFilter_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
47public:
49
52
56
59
60
61
62
67 void
68 SetSeed1(std::vector<uint32_t> Seed1 )
69 { this->m_Seed1 = std::move(Seed1); }
70
74 std::vector<uint32_t>
75 GetSeed1() const { return this->m_Seed1; }
76
77
82 void
83 SetSeed2(std::vector<uint32_t> Seed2 )
84 { this->m_Seed2 = std::move(Seed2); }
85
89 std::vector<uint32_t>
90 GetSeed2() const { return this->m_Seed2; }
91
92
96 void
98 { this->m_Threshold = Threshold; }
99
102 double
103 GetThreshold() const { return this->m_Threshold; }
104
105
109 void
110 SetUpperValueLimit(double UpperValueLimit )
111 { this->m_UpperValueLimit = UpperValueLimit; }
112
115 double
116 GetUpperValueLimit() const { return this->m_UpperValueLimit; }
117
118
122 void
123 SetIsolatedValueTolerance(double IsolatedValueTolerance )
124 { this->m_IsolatedValueTolerance = IsolatedValueTolerance; }
125
128 double
130
131
136 void
137 SetReplaceValue1(uint8_t ReplaceValue1 )
138 { this->m_ReplaceValue1 = ReplaceValue1; }
139
143 uint8_t
144 GetReplaceValue1() const { return this->m_ReplaceValue1; }
145
146
151 void
152 SetReplaceValue2(uint8_t ReplaceValue2 )
153 { this->m_ReplaceValue2 = ReplaceValue2; }
154
158 uint8_t
159 GetReplaceValue2() const { return this->m_ReplaceValue2; }
160
161
163 std::string GetName() const { return std::string("IsolatedWatershedImageFilter"); }
164
166 std::string ToString() const;
167
168
170 Image Execute(const Image &image1);
171
172
173private:
175 using MemberFunctionType = Image (Self::*)(const Image &image1);
176 template <class TImageType> Image ExecuteInternal(const Image &image1);
179
180
181 std::vector<uint32_t> m_Seed1{ std::vector<uint32_t>(3, 0) };
182
183 std::vector<uint32_t> m_Seed2{ std::vector<uint32_t>(3, 0) };
184
185 double m_Threshold{ 0.0 };
186
187 double m_UpperValueLimit{ 1.0 };
188
190
191 uint8_t m_ReplaceValue1{ 1u };
192
193 uint8_t m_ReplaceValue2{ 2u };
194
195
196
197
198
199
200
201};
202
203
213 const Image &image1, std::vector<uint32_t> seed1 = std::vector<uint32_t>(3, 0), std::vector<uint32_t> seed2 = std::vector<uint32_t>(3, 0), double threshold = 0.0, double upperValueLimit = 1.0, double isolatedValueTolerance = 0.001, uint8_t replaceValue1 = 1u, uint8_t replaceValue2 = 2u
214);
215
217
218}
219#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
Image ExecuteInternal(const Image &image1)
void SetIsolatedValueTolerance(double IsolatedValueTolerance)
Image Execute(const Image &image1)
A class used to instantiate and generate function object to templated member functions.
Image Threshold(Image &&image1, double lower=0.0, double upper=1.0, double outsideValue=0.0)
Set image values to a user-specified value if they are below, above, or outside threshold values.
Image IsolatedWatershed(const Image &image1, std::vector< uint32_t > seed1=std::vector< uint32_t >(3, 0), std::vector< uint32_t > seed2=std::vector< uint32_t >(3, 0), double threshold=0.0, double upperValueLimit=1.0, double isolatedValueTolerance=0.001, uint8_t replaceValue1=1u, uint8_t replaceValue2=2u)
Isolate watershed basins using two seeds.
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