SimpleITK  
sitkMinMaxCurvatureFlowImageFilter.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 sitkMinMaxCurvatureFlowImageFilter_h
19#define sitkMinMaxCurvatureFlowImageFilter_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
79public:
81
84
88
91
92
93
94
97 void
98 SetTimeStep(double TimeStep )
99 { this->m_TimeStep = TimeStep; }
100
102 double
103 GetTimeStep() const { return this->m_TimeStep; }
104
105
108 void
109 SetNumberOfIterations(uint32_t NumberOfIterations )
110 { this->m_NumberOfIterations = NumberOfIterations; }
111
113 uint32_t
115
116
120 void
121 SetStencilRadius(int StencilRadius )
122 { this->m_StencilRadius = StencilRadius; }
123
126 int
127 GetStencilRadius() const { return this->m_StencilRadius; }
128
129
131 std::string GetName() const { return std::string("MinMaxCurvatureFlowImageFilter"); }
132
134 std::string ToString() const;
135
136
138#ifndef SWIG
139 Image Execute(Image&& image1);
140#endif
141 Image Execute(const Image &image1);
142
143
144private:
146 using MemberFunctionType = Image (Self::*)(const Image &image1);
147 template <class TImageType> Image ExecuteInternal(const Image &image1);
150
151
152 /* Time step for PDE solver */
153 double m_TimeStep{ 0.05 };
154
155 /* Number of iterations to run */
156 uint32_t m_NumberOfIterations{ 5u };
157
159
160
161
162
163
164
165
166 bool m_InPlace{false};
167
168};
169
170
179#ifndef SWIG
181 Image&& image1, double timeStep = 0.05, uint32_t numberOfIterations = 5u, int stencilRadius = 2
182);
183
184
185#endif
187 const Image &image1, double timeStep = 0.05, uint32_t numberOfIterations = 5u, int stencilRadius = 2
188);
189
191
192}
193#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
Image ExecuteInternal(const Image &image1)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
A class used to instantiate and generate function object to templated member functions.
Image MinMaxCurvatureFlow(Image &&image1, double timeStep=0.05, uint32_t numberOfIterations=5u, int stencilRadius=2)
Denoise an image using min/max curvature flow.
typelist2::typelist< BasicPixelID< float >, BasicPixelID< double > > RealPixelIDTypeList
#define SITKBasicFilters_EXPORT