SimpleITK  
sitkDoubleThresholdImageFilter.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 sitkDoubleThresholdImageFilter_h
19#define sitkDoubleThresholdImageFilter_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
60public:
62
65
69
72
73
74
75
81 void
82 SetThreshold1(double Threshold1 )
83 { this->m_Threshold1 = Threshold1; }
84
87 double
88 GetThreshold1() const { return this->m_Threshold1; }
89
90
96 void
97 SetThreshold2(double Threshold2 )
98 { this->m_Threshold2 = Threshold2; }
99
102 double
103 GetThreshold2() const { return this->m_Threshold2; }
104
105
111 void
112 SetThreshold3(double Threshold3 )
113 { this->m_Threshold3 = Threshold3; }
114
117 double
118 GetThreshold3() const { return this->m_Threshold3; }
119
120
126 void
127 SetThreshold4(double Threshold4 )
128 { this->m_Threshold4 = Threshold4; }
129
132 double
133 GetThreshold4() const { return this->m_Threshold4; }
134
135
139 void
140 SetInsideValue(uint8_t InsideValue )
141 { this->m_InsideValue = InsideValue; }
142
145 uint8_t
146 GetInsideValue() const { return this->m_InsideValue; }
147
148
152 void
153 SetOutsideValue(uint8_t OutsideValue )
154 { this->m_OutsideValue = OutsideValue; }
155
158 uint8_t
159 GetOutsideValue() const { return this->m_OutsideValue; }
160
161
166 void
167 SetFullyConnected(bool FullyConnected )
168 { this->m_FullyConnected = FullyConnected; }
169
171 void
172 FullyConnectedOn() { return this->SetFullyConnected(true); }
173 void
174 FullyConnectedOff() { return this->SetFullyConnected(false); }
179 bool
180 GetFullyConnected() const { return this->m_FullyConnected; }
181
182
184 std::string GetName() const { return std::string("DoubleThresholdImageFilter"); }
185
187 std::string ToString() const;
188
189
191 Image Execute(const Image &image1);
192
193
194private:
196 using MemberFunctionType = Image (Self::*)(const Image &image1);
197 template <class TImageType> Image ExecuteInternal(const Image &image1);
200
201
202 double m_Threshold1{ 0.0 };
203
204 double m_Threshold2{ 1.0 };
205
206 double m_Threshold3{ 254.0 };
207
208 double m_Threshold4{ 255.0 };
209
210 uint8_t m_InsideValue{ 1u };
211
212 uint8_t m_OutsideValue{ 0u };
213
214 bool m_FullyConnected{ false };
215
216
217
218
219
220
221
222};
223
224
234 const Image &image1, double threshold1 = 0.0, double threshold2 = 1.0, double threshold3 = 254.0, double threshold4 = 255.0, uint8_t insideValue = 1u, uint8_t outsideValue = 0u, bool fullyConnected = false
235);
236
238
239}
240#endif
Image ExecuteInternal(const Image &image1)
Image Execute(const Image &image1)
Image(Self::*)(const Image &image1) MemberFunctionType
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
Image DoubleThreshold(const Image &image1, double threshold1=0.0, double threshold2=1.0, double threshold3=254.0, double threshold4=255.0, uint8_t insideValue=1u, uint8_t outsideValue=0u, bool fullyConnected=false)
Binarize an input image using double thresholding.
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