SimpleITK  
sitkDiscreteGaussianImageFilter.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 sitkDiscreteGaussianImageFilter_h
19#define sitkDiscreteGaussianImageFilter_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
66public:
68
71
75
78
79
80
81
84 void
85 SetVariance(std::vector<double> Variance )
86 { this->m_Variance = std::move(Variance); }
87
89 void
90 SetVariance( double value ) { this->m_Variance = std::vector<double>(3, value); }
96 std::vector<double>
97 GetVariance() const { return this->m_Variance; }
98
99
104 void
105 SetMaximumKernelWidth(unsigned int MaximumKernelWidth )
106 { this->m_MaximumKernelWidth = MaximumKernelWidth; }
107
111 unsigned int
113
114
117 void
118 SetMaximumError(std::vector<double> MaximumError )
119 { this->m_MaximumError = std::move(MaximumError); }
120
122 void
123 SetMaximumError( double value ) { this->m_MaximumError = std::vector<double>(3, value); }
128 std::vector<double>
129 GetMaximumError() const { return this->m_MaximumError; }
130
131
137 void
138 SetUseImageSpacing(bool UseImageSpacing )
139 { this->m_UseImageSpacing = UseImageSpacing; }
140
142 void
143 UseImageSpacingOn() { return this->SetUseImageSpacing(true); }
144 void
145 UseImageSpacingOff() { return this->SetUseImageSpacing(false); }
151 bool
152 GetUseImageSpacing() const { return this->m_UseImageSpacing; }
153
154
156 std::string GetName() const { return std::string("DiscreteGaussianImageFilter"); }
157
159 std::string ToString() const;
160
161
163 Image Execute(const Image &image1);
164
165
166private:
168 using MemberFunctionType = Image (Self::*)(const Image &image1);
169 template <class TImageType> Image ExecuteInternal(const Image &image1);
172
173
174 std::vector<double> m_Variance{ std::vector<double>(3,1.0) };
175
176 unsigned int m_MaximumKernelWidth{ 32u };
177
178 std::vector<double> m_MaximumError{ std::vector<double>(3, 0.01) };
179
180 bool m_UseImageSpacing{ true };
181
182
183
184
185
186
187
188};
189
190
200 const Image &image1, std::vector<double> variance = std::vector<double>(3,1.0), unsigned int maximumKernelWidth = 32u, std::vector<double> maximumError = std::vector<double>(3, 0.01), bool useImageSpacing = true
201);
202
204
205}
206#endif
void SetMaximumKernelWidth(unsigned int MaximumKernelWidth)
Image ExecuteInternal(const Image &image1)
Image(Self::*)(const Image &image1) MemberFunctionType
Image Execute(const Image &image1)
void SetMaximumError(std::vector< double > MaximumError)
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.
SITKBasicFilters_EXPORT Image DiscreteGaussian(const Image &image1, double variance, unsigned int maximumKernelWidth=32u, double maximumError=0.01, bool useImageSpacing=true)
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
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