SimpleITK  
sitkGaborImageSource.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 sitkGaborImageSource_h
19#define sitkGaborImageSource_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 sitkImageSourceTemplate.h.jinja to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
31
32#include "sitkImageFilter.h"
33
34namespace itk::simple {
35
52public:
54
57
61
64
65
66
67
68
69
72 void
74 { this->m_OutputPixelType = OutputPixelType; }
75
78 GetOutputPixelType() const { return this->m_OutputPixelType; }
79
80
83 void
84 SetSize(std::vector<unsigned int> Size )
85 { this->m_Size = std::move(Size); }
86
88 std::vector<unsigned int>
89 GetSize() const { return this->m_Size; }
90
91
95 void
96 SetSigma(std::vector<double> Sigma )
97 { this->m_Sigma = std::move(Sigma); }
98
100 void
101 SetSigma( double value ) { this->m_Sigma = std::vector<double>(3, value); }
105 std::vector<double>
106 GetSigma() const { return this->m_Sigma; }
107
108
112 void
113 SetMean(std::vector<double> Mean )
114 { this->m_Mean = std::move(Mean); }
115
117 void
118 SetMean( double value ) { this->m_Mean = std::vector<double>(3, value); }
122 std::vector<double>
123 GetMean() const { return this->m_Mean; }
124
125
129 void
130 SetFrequency(double Frequency )
131 { this->m_Frequency = Frequency; }
132
135 double
136 GetFrequency() const { return this->m_Frequency; }
137
138
141 void
142 SetOrigin(std::vector<double> Origin )
143 { this->m_Origin = std::move(Origin); }
144
146 std::vector<double>
147 GetOrigin() const { return this->m_Origin; }
148
149
152 void
153 SetSpacing(std::vector<double> Spacing )
154 { this->m_Spacing = std::move(Spacing); }
155
157 std::vector<double>
158 GetSpacing() const { return this->m_Spacing; }
159
160
163 void
164 SetDirection(std::vector<double> Direction )
165 { this->m_Direction = Direction; }
166
168 std::vector<double>
169 GetDirection() const { return this->m_Direction; }
170
171
173 std::string GetName() const { return std::string("GaborImageSource"); }
174
176 std::string ToString() const;
177
178
181
182
183
184private:
187 template <class TImageType> Image ExecuteInternal();
188
191
192
193
194 PixelIDValueEnum m_OutputPixelType{ itk::simple::sitkFloat32 };
195
196 std::vector<unsigned int> m_Size{ std::vector<unsigned int>(3, 64) };
197
198 std::vector<double> m_Sigma{ std::vector<double>(3, 16.0) };
199
200 std::vector<double> m_Mean{ std::vector<double>(3, 32.0) };
201
202 double m_Frequency{ 0.4 };
203
204 std::vector<double> m_Origin{ std::vector<double>(3, 0.0) };
205
206 std::vector<double> m_Spacing{ std::vector<double>(3, 1.0) };
207
208 /* Passing a zero sized array, defaults to identiy matrix. The size of the array must exactly match the direction matrix for the dimension of the image. */
209 std::vector<double> m_Direction{ std::vector<double>() };
210
211
212
213
214
215
216
217
218};
219
220
221
232
233
234 PixelIDValueEnum outputPixelType = itk::simple::sitkFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> sigma = std::vector<double>(3, 16.0), std::vector<double> mean = std::vector<double>(3, 32.0), double frequency = 0.4, std::vector<double> origin = std::vector<double>(3, 0.0), std::vector<double> spacing = std::vector<double>(3, 1.0), std::vector<double> direction = std::vector<double>()
235);
236}
237#endif
void SetSize(std::vector< unsigned int > Size)
void SetSpacing(std::vector< double > Spacing)
std::string ToString() const
void SetMean(std::vector< double > Mean)
std::vector< double > GetDirection() const
std::vector< double > GetSpacing() const
void SetOrigin(std::vector< double > Origin)
std::vector< double > GetMean() const
void SetSigma(std::vector< double > Sigma)
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
std::vector< double > GetOrigin() const
void SetFrequency(double Frequency)
std::vector< unsigned int > GetSize() const
PixelIDValueEnum GetOutputPixelType() const
void SetDirection(std::vector< double > Direction)
std::vector< unsigned int > m_Size
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
std::vector< double > GetSigma() const
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
Image Mean(const Image &image1, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1))
Applies an averaging filter to an image.
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 GaborSource(PixelIDValueEnum outputPixelType=itk::simple::sitkFloat32, std::vector< unsigned int > size=std::vector< unsigned int >(3, 64), std::vector< double > sigma=std::vector< double >(3, 16.0), std::vector< double > mean=std::vector< double >(3, 32.0), double frequency=0.4, std::vector< double > origin=std::vector< double >(3, 0.0), std::vector< double > spacing=std::vector< double >(3, 1.0), std::vector< double > direction=std::vector< double >())
Generate an n-dimensional image of a Gabor filter.
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT