SimpleITK  
sitkGridImageSource.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 sitkGridImageSource_h
19#define sitkGridImageSource_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
62public:
64
67
71
74
75
76
77
78
79
82 void
84 { this->m_OutputPixelType = OutputPixelType; }
85
88 GetOutputPixelType() const { return this->m_OutputPixelType; }
89
90
93 void
94 SetSize(std::vector<unsigned int> Size )
95 { this->m_Size = std::move(Size); }
96
98 std::vector<unsigned int>
99 GetSize() const { return this->m_Size; }
100
101
105 void
106 SetSigma(std::vector<double> Sigma )
107 { this->m_Sigma = std::move(Sigma); }
108
110 void
111 SetSigma( double value ) { this->m_Sigma = std::vector<double>(3, value); }
115 std::vector<double>
116 GetSigma() const { return this->m_Sigma; }
117
118
122 void
123 SetGridSpacing(std::vector<double> GridSpacing )
124 { this->m_GridSpacing = std::move(GridSpacing); }
125
128 std::vector<double>
129 GetGridSpacing() const { return this->m_GridSpacing; }
130
131
135 void
136 SetGridOffset(std::vector<double> GridOffset )
137 { this->m_GridOffset = std::move(GridOffset); }
138
141 std::vector<double>
142 GetGridOffset() const { return this->m_GridOffset; }
143
144
148 void
149 SetScale(double Scale )
150 { this->m_Scale = Scale; }
151
154 double
155 GetScale() const { return this->m_Scale; }
156
157
160 void
161 SetOrigin(std::vector<double> Origin )
162 { this->m_Origin = std::move(Origin); }
163
165 std::vector<double>
166 GetOrigin() const { return this->m_Origin; }
167
168
171 void
172 SetSpacing(std::vector<double> Spacing )
173 { this->m_Spacing = std::move(Spacing); }
174
176 std::vector<double>
177 GetSpacing() const { return this->m_Spacing; }
178
179
182 void
183 SetDirection(std::vector<double> Direction )
184 { this->m_Direction = Direction; }
185
187 std::vector<double>
188 GetDirection() const { return this->m_Direction; }
189
190
194 void
195 SetWhichDimensions(std::vector<bool> WhichDimensions )
196 { this->m_WhichDimensions = std::move(WhichDimensions); }
197
200 std::vector<bool>
201 GetWhichDimensions() const { return this->m_WhichDimensions; }
202
203
205 std::string GetName() const { return std::string("GridImageSource"); }
206
208 std::string ToString() const;
209
210
213
214
215
216private:
219 template <class TImageType> Image ExecuteInternal();
220
223
224
225
226 PixelIDValueEnum m_OutputPixelType{ itk::simple::sitkFloat32 };
227
228 std::vector<unsigned int> m_Size{ std::vector<unsigned int>(3, 64) };
229
230 std::vector<double> m_Sigma{ std::vector<double>(3, 0.5) };
231
232 std::vector<double> m_GridSpacing{ std::vector<double>(3, 4.0) };
233
234 std::vector<double> m_GridOffset{ std::vector<double>(3, 0.0) };
235
236 double m_Scale{ 255.0 };
237
238 std::vector<double> m_Origin{ std::vector<double>(3, 0.0) };
239
240 std::vector<double> m_Spacing{ std::vector<double>(3, 1.0) };
241
242 /* 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. */
243 std::vector<double> m_Direction{ std::vector<double>() };
244
245 std::vector<bool> m_WhichDimensions{ std::vector<bool>(3, true) };
246
247
248
249
250
251
252
253
254};
255
256
257
268
269
270 PixelIDValueEnum outputPixelType = itk::simple::sitkFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), std::vector<double> sigma = std::vector<double>(3, 0.5), std::vector<double> gridSpacing = std::vector<double>(3, 4.0), std::vector<double> gridOffset = std::vector<double>(3, 0.0), double scale = 255.0, 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>(), std::vector<bool> whichDimensions = std::vector<bool>(3, true)
271);
272}
273#endif
std::string ToString() const
void SetGridSpacing(std::vector< double > GridSpacing)
std::vector< bool > m_WhichDimensions
std::vector< double > GetDirection() const
void SetOrigin(std::vector< double > Origin)
std::vector< double > m_GridOffset
std::vector< unsigned int > GetSize() const
void SetSize(std::vector< unsigned int > Size)
std::vector< double > m_Direction
std::vector< unsigned int > m_Size
std::vector< double > GetOrigin() const
std::vector< double > GetGridOffset() const
std::vector< bool > GetWhichDimensions() const
void SetDirection(std::vector< double > Direction)
BasicPixelIDTypeList PixelIDTypeList
std::vector< double > GetGridSpacing() const
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
void SetSpacing(std::vector< double > Spacing)
std::vector< double > GetSigma() const
std::vector< double > m_GridSpacing
void SetGridOffset(std::vector< double > GridOffset)
void SetWhichDimensions(std::vector< bool > WhichDimensions)
std::vector< double > GetSpacing() const
PixelIDValueEnum GetOutputPixelType() const
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
void SetSigma(std::vector< double > Sigma)
The Image class for SimpleITK.
Definition sitkImage.h:77
A class used to instantiate and generate function object to templated member functions.
Image GridSource(PixelIDValueEnum outputPixelType=itk::simple::sitkFloat32, std::vector< unsigned int > size=std::vector< unsigned int >(3, 64), std::vector< double > sigma=std::vector< double >(3, 0.5), std::vector< double > gridSpacing=std::vector< double >(3, 4.0), std::vector< double > gridOffset=std::vector< double >(3, 0.0), double scale=255.0, 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 >(), std::vector< bool > whichDimensions=std::vector< bool >(3, true))
Generate an n-dimensional image of a grid.
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