SimpleITK  
sitkThresholdImageFilter.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 sitkThresholdImageFilter_h
19#define sitkThresholdImageFilter_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
59public:
61
64
68
71
72
73
74
78 void
79 SetLower(double Lower )
80 { this->m_Lower = Lower; }
81
84 double
85 GetLower() const { return this->m_Lower; }
86
87
91 void
92 SetUpper(double Upper )
93 { this->m_Upper = Upper; }
94
97 double
98 GetUpper() const { return this->m_Upper; }
99
100
105 void
106 SetOutsideValue(double OutsideValue )
107 { this->m_OutsideValue = OutsideValue; }
108
111 double
112 GetOutsideValue() const { return this->m_OutsideValue; }
113
114
116 std::string GetName() const { return std::string("ThresholdImageFilter"); }
117
119 std::string ToString() const;
120
121
123#ifndef SWIG
124 Image Execute(Image&& image1);
125#endif
126 Image Execute(const Image &image1);
128 double threshold
129 );
130
132 double threshold
133 );
134
136 double lower,
137 double upper
138 );
139
140
141
142private:
144 using MemberFunctionType = Image (Self::*)(const Image &image1);
145 template <class TImageType> Image ExecuteInternal(const Image &image1);
148
149
150 double m_Lower{ 0.0 };
151
152 double m_Upper{ 1.0 };
153
154 double m_OutsideValue{ 0.0 };
155
156
157
158
159
160
161
162 bool m_InPlace{false};
163
164};
165
166
175#ifndef SWIG
177 Image&& image1, double lower = 0.0, double upper = 1.0, double outsideValue = 0.0
178);
179
180
181#endif
183 const Image &image1, double lower = 0.0, double upper = 1.0, double outsideValue = 0.0
184);
185
187
188}
189#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void ThresholdBelow(double threshold)
Image Execute(const Image &image1)
Image ExecuteInternal(const Image &image1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void ThresholdOutside(double lower, double upper)
Image(Self::*)(const Image &image1) MemberFunctionType
void ThresholdAbove(double threshold)
Image Execute(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.
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