SimpleITK  
sitkGaussianImageSource.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 sitkGaussianImageSource_h
19#define sitkGaussianImageSource_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
50public:
52
55
59
62
63
64
65
66
67
70 void
72 { this->m_OutputPixelType = OutputPixelType; }
73
76 GetOutputPixelType() const { return this->m_OutputPixelType; }
77
78
81 void
82 SetSize(std::vector<unsigned int> Size )
83 { this->m_Size = std::move(Size); }
84
86 std::vector<unsigned int>
87 GetSize() const { return this->m_Size; }
88
89
93 void
94 SetSigma(std::vector<double> Sigma )
95 { this->m_Sigma = std::move(Sigma); }
96
98 void
99 SetSigma( double value ) { this->m_Sigma = std::vector<double>(3, value); }
103 std::vector<double>
104 GetSigma() const { return this->m_Sigma; }
105
106
110 void
111 SetMean(std::vector<double> Mean )
112 { this->m_Mean = std::move(Mean); }
113
115 void
116 SetMean( double value ) { this->m_Mean = std::vector<double>(3, value); }
120 std::vector<double>
121 GetMean() const { return this->m_Mean; }
122
123
127 void
128 SetScale(double Scale )
129 { this->m_Scale = Scale; }
130
133 double
134 GetScale() const { return this->m_Scale; }
135
136
139 void
140 SetOrigin(std::vector<double> Origin )
141 { this->m_Origin = std::move(Origin); }
142
144 std::vector<double>
145 GetOrigin() const { return this->m_Origin; }
146
147
150 void
151 SetSpacing(std::vector<double> Spacing )
152 { this->m_Spacing = std::move(Spacing); }
153
155 std::vector<double>
156 GetSpacing() const { return this->m_Spacing; }
157
158
161 void
162 SetDirection(std::vector<double> Direction )
163 { this->m_Direction = Direction; }
164
166 std::vector<double>
167 GetDirection() const { return this->m_Direction; }
168
169
173 void
174 SetNormalized(bool Normalized )
175 { this->m_Normalized = Normalized; }
176
178 void
179 NormalizedOn() { return this->SetNormalized(true); }
180 void
181 NormalizedOff() { return this->SetNormalized(false); }
185 bool
186 GetNormalized() const { return this->m_Normalized; }
187
188
190 std::string GetName() const { return std::string("GaussianImageSource"); }
191
193 std::string ToString() const;
194
195
198
199
200
201private:
204 template <class TImageType> Image ExecuteInternal();
205
208
209
210
211 PixelIDValueEnum m_OutputPixelType{ itk::simple::sitkFloat32 };
212
213 std::vector<unsigned int> m_Size{ std::vector<unsigned int>(3, 64) };
214
215 std::vector<double> m_Sigma{ std::vector<double>(3, 16.0) };
216
217 std::vector<double> m_Mean{ std::vector<double>(3, 32.0) };
218
219 double m_Scale{ 255 };
220
221 std::vector<double> m_Origin{ std::vector<double>(3, 0.0) };
222
223 std::vector<double> m_Spacing{ std::vector<double>(3, 1.0) };
224
225 /* 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. */
226 std::vector<double> m_Direction{ std::vector<double>() };
227
228 bool m_Normalized{ false };
229
230
231
232
233
234
235
236
237};
238
239
240
251
252
253 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 scale = 255, 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>(), bool normalized = false
254);
255}
256#endif
PixelIDValueEnum GetOutputPixelType() const
std::string ToString() const
void SetDirection(std::vector< double > Direction)
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
std::vector< double > GetMean() const
std::vector< double > GetSpacing() const
std::vector< double > GetSigma() const
std::vector< double > GetDirection() const
std::vector< unsigned int > GetSize() const
void SetSigma(std::vector< double > Sigma)
void SetSize(std::vector< unsigned int > Size)
void SetMean(std::vector< double > Mean)
void SetOrigin(std::vector< double > Origin)
void SetSpacing(std::vector< double > Spacing)
std::vector< double > GetOrigin() const
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.
Image GaussianSource(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 scale=255, 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 >(), bool normalized=false)
Generate an n-dimensional image of a Gaussian.
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
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT