SimpleITK  
sitkDiscreteGaussianDerivativeImageFilter.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 sitkDiscreteGaussianDerivativeImageFilter_h
19#define sitkDiscreteGaussianDerivativeImageFilter_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
67public:
69
72
76
79
80
81
82
86 void
87 SetVariance(std::vector<double> Variance )
88 { this->m_Variance = std::move(Variance); }
89
91 void
92 SetVariance( double value ) { this->m_Variance = std::vector<double>(3, value); }
98 std::vector<double>
99 GetVariance() const { return this->m_Variance; }
100
101
105 void
106 SetOrder(std::vector<unsigned int> Order )
107 { this->m_Order = std::move(Order); }
108
110 void
111 SetOrder( unsigned int value ) { this->m_Order = std::vector<unsigned int>(3, value); }
116 std::vector<unsigned int>
117 GetOrder() const { return this->m_Order; }
118
119
124 void
125 SetMaximumKernelWidth(unsigned int MaximumKernelWidth )
126 { this->m_MaximumKernelWidth = MaximumKernelWidth; }
127
131 unsigned int
133
134
138 void
139 SetMaximumError(double MaximumError )
140 { this->m_MaximumError = MaximumError; }
141
145 double
146 GetMaximumError() const { return this->m_MaximumError; }
147
148
153 void
154 SetUseImageSpacing(bool UseImageSpacing )
155 { this->m_UseImageSpacing = UseImageSpacing; }
156
158 void
159 UseImageSpacingOn() { return this->SetUseImageSpacing(true); }
160 void
161 UseImageSpacingOff() { return this->SetUseImageSpacing(false); }
166 bool
167 GetUseImageSpacing() const { return this->m_UseImageSpacing; }
168
169
174 void
175 SetNormalizeAcrossScale(bool NormalizeAcrossScale )
176 { this->m_NormalizeAcrossScale = NormalizeAcrossScale; }
177
179 void
181 void
187 bool
189
190
192 std::string GetName() const { return std::string("DiscreteGaussianDerivativeImageFilter"); }
193
195 std::string ToString() const;
196
197
199 Image Execute(const Image &image1);
200
201
202private:
204 using MemberFunctionType = Image (Self::*)(const Image &image1);
205 template <class TImageType> Image ExecuteInternal(const Image &image1);
208
209
210 std::vector<double> m_Variance{ std::vector<double>(3, 0.0) };
211
212 std::vector<unsigned int> m_Order{ std::vector<unsigned int>(3, 1) };
213
214 unsigned int m_MaximumKernelWidth{ 32u };
215
216 double m_MaximumError{ 0.01 };
217
218 bool m_UseImageSpacing{ true };
219
221
222
223
224
225
226
227
228};
229
230
240 const Image &image1, std::vector<double> variance = std::vector<double>(3, 0.0), std::vector<unsigned int> order = std::vector<unsigned int>(3, 1), unsigned int maximumKernelWidth = 32u, double maximumError = 0.01, bool useImageSpacing = true, bool normalizeAcrossScale = false
241);
242
244
245}
246#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.
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
Image DiscreteGaussianDerivative(const Image &image1, std::vector< double > variance=std::vector< double >(3, 0.0), std::vector< unsigned int > order=std::vector< unsigned int >(3, 1), unsigned int maximumKernelWidth=32u, double maximumError=0.01, bool useImageSpacing=true, bool normalizeAcrossScale=false)
Calculates image derivatives using discrete derivative gaussian kernels. This filter calculates Gauss...
#define SITKBasicFilters_EXPORT