SimpleITK  
sitkGradientAnisotropicDiffusionImageFilter.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 sitkGradientAnisotropicDiffusionImageFilter_h
19#define sitkGradientAnisotropicDiffusionImageFilter_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
62public:
64
67
71
74
75
76
77
80 void
81 SetTimeStep(double TimeStep )
82 { this->m_TimeStep = TimeStep; }
83
85 double
86 GetTimeStep() const { return this->m_TimeStep; }
87
88
91 void
92 SetConductanceParameter(double ConductanceParameter )
93 { this->m_ConductanceParameter = ConductanceParameter; }
94
96 double
98
99
102 void
103 SetConductanceScalingUpdateInterval(unsigned int ConductanceScalingUpdateInterval )
104 { this->m_ConductanceScalingUpdateInterval = ConductanceScalingUpdateInterval; }
105
107 unsigned int
109
110
113 void
114 SetNumberOfIterations(uint32_t NumberOfIterations )
115 { this->m_NumberOfIterations = NumberOfIterations; }
116
118 uint32_t
120
121
123 std::string GetName() const { return std::string("GradientAnisotropicDiffusionImageFilter"); }
124
126 std::string ToString() const;
127
128
130#ifndef SWIG
131 Image Execute(Image&& image1);
132#endif
133 Image Execute(const Image &image1);
136 Image & inImage
137 );
138
139
140
141private:
143 using MemberFunctionType = Image (Self::*)(const Image &image1);
144 template <class TImageType> Image ExecuteInternal(const Image &image1);
147
148
149 /* Time step for PDE solver */
150 double m_TimeStep{ 0.125 };
151
152 /* Conductance parameter governing sensitivity of the conductance equation. */
154
155 /* Interval at which a new scaling for the conductance term is calculated. */
157
158 /* Number of iterations to run */
159 uint32_t m_NumberOfIterations{ 5u };
160
161
162
163
164
165
166
167 bool m_InPlace{false};
168
169};
170
171
180#ifndef SWIG
182 Image&& image1, double timeStep = 0.125, double conductanceParameter = 3, unsigned int conductanceScalingUpdateInterval = 1u, uint32_t numberOfIterations = 5u
183);
184
185
186#endif
188 const Image &image1, double timeStep = 0.125, double conductanceParameter = 3, unsigned int conductanceScalingUpdateInterval = 1u, uint32_t numberOfIterations = 5u
189);
190
192
193}
194#endif
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetConductanceScalingUpdateInterval(unsigned int ConductanceScalingUpdateInterval)
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
Image GradientAnisotropicDiffusion(Image &&image1, double timeStep=0.125, double conductanceParameter=3, unsigned int conductanceScalingUpdateInterval=1u, uint32_t numberOfIterations=5u)
This filter performs anisotropic diffusion on a scalar itk::Image using the classic Perona-Malik,...
typelist2::typelist< BasicPixelID< float >, BasicPixelID< double > > RealPixelIDTypeList
#define SITKBasicFilters_EXPORT