SimpleITK  
sitkBinaryMinMaxCurvatureFlowImageFilter.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 sitkBinaryMinMaxCurvatureFlowImageFilter_h
19#define sitkBinaryMinMaxCurvatureFlowImageFilter_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
78public:
80
83
87
90
91
92
93
96 void
97 SetTimeStep(double TimeStep )
98 { this->m_TimeStep = TimeStep; }
99
101 double
102 GetTimeStep() const { return this->m_TimeStep; }
103
104
107 void
108 SetNumberOfIterations(uint32_t NumberOfIterations )
109 { this->m_NumberOfIterations = NumberOfIterations; }
110
112 uint32_t
114
115
118 void
119 SetStencilRadius(int StencilRadius )
120 { this->m_StencilRadius = StencilRadius; }
121
123 int
124 GetStencilRadius() const { return this->m_StencilRadius; }
125
126
130 void
132 { this->m_Threshold = Threshold; }
133
136 double
137 GetThreshold() const { return this->m_Threshold; }
138
139
141 std::string GetName() const { return std::string("BinaryMinMaxCurvatureFlowImageFilter"); }
142
144 std::string ToString() const;
145
146
148#ifndef SWIG
149 Image Execute(Image&& image1);
150#endif
151 Image Execute(const Image &image1);
152
153
154private:
156 using MemberFunctionType = Image (Self::*)(const Image &image1);
157 template <class TImageType> Image ExecuteInternal(const Image &image1);
160
161
162 /* Time step for PDE solver */
163 double m_TimeStep{ 0.05 };
164
165 /* Number of iterations to run */
166 uint32_t m_NumberOfIterations{ 5u };
167
169
170 double m_Threshold{ 0.0 };
171
172
173
174
175
176
177
178 bool m_InPlace{false};
179
180};
181
182
191#ifndef SWIG
193 Image&& image1, double timeStep = 0.05, uint32_t numberOfIterations = 5u, int stencilRadius = 2, double threshold = 0.0
194);
195
196
197#endif
199 const Image &image1, double timeStep = 0.05, uint32_t numberOfIterations = 5u, int stencilRadius = 2, double threshold = 0.0
200);
201
203
204}
205#endif
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 BinaryMinMaxCurvatureFlow(Image &&image1, double timeStep=0.05, uint32_t numberOfIterations=5u, int stencilRadius=2, double threshold=0.0)
Denoise a binary image using min/max curvature flow.
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< float >, BasicPixelID< double > > RealPixelIDTypeList
#define SITKBasicFilters_EXPORT