SimpleITK  
sitkPhysicalPointImageSource.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 sitkPhysicalPointImageSource_h
19#define sitkPhysicalPointImageSource_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
46public:
48
51
55
58
59
60
61
62
63
66 void
68 { this->m_OutputPixelType = OutputPixelType; }
69
72 GetOutputPixelType() const { return this->m_OutputPixelType; }
73
74
77 void
78 SetSize(std::vector<unsigned int> Size )
79 { this->m_Size = std::move(Size); }
80
82 std::vector<unsigned int>
83 GetSize() const { return this->m_Size; }
84
85
88 void
89 SetOrigin(std::vector<double> Origin )
90 { this->m_Origin = std::move(Origin); }
91
93 std::vector<double>
94 GetOrigin() const { return this->m_Origin; }
95
96
99 void
100 SetSpacing(std::vector<double> Spacing )
101 { this->m_Spacing = std::move(Spacing); }
102
104 std::vector<double>
105 GetSpacing() const { return this->m_Spacing; }
106
107
110 void
111 SetDirection(std::vector<double> Direction )
112 { this->m_Direction = Direction; }
113
115 std::vector<double>
116 GetDirection() const { return this->m_Direction; }
117
118
120 std::string GetName() const { return std::string("PhysicalPointImageSource"); }
121
123 std::string ToString() const;
124
125
130 const Image & refImage
131 );
132
133
134
135
136private:
139 template <class TImageType> Image ExecuteInternal();
140
143
144
145
146 PixelIDValueEnum m_OutputPixelType{ itk::simple::sitkVectorFloat32 };
147
148 std::vector<unsigned int> m_Size{ std::vector<unsigned int>(3, 64) };
149
150 std::vector<double> m_Origin{ std::vector<double>(3, 0.0) };
151
152 std::vector<double> m_Spacing{ std::vector<double>(3, 1.0) };
153
154 /* 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. */
155 std::vector<double> m_Direction{ std::vector<double>() };
156
157
158
159
160
161
162
163
164};
165
166
167
178
179
180 PixelIDValueEnum outputPixelType = itk::simple::sitkVectorFloat32, std::vector<unsigned int> size = std::vector<unsigned int>(3, 64), 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>()
181);
182}
183#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetReferenceImage(const Image &refImage)
void SetSize(std::vector< unsigned int > Size)
void SetDirection(std::vector< double > Direction)
void SetSpacing(std::vector< double > Spacing)
static const detail::MemberFunctionFactory< MemberFunctionType > & GetMemberFunctionFactory()
std::vector< unsigned int > GetSize() const
void SetOutputPixelType(PixelIDValueEnum OutputPixelType)
void SetOrigin(std::vector< double > Origin)
A class used to instantiate and generate function object to templated member functions.
Image PhysicalPointSource(PixelIDValueEnum outputPixelType=itk::simple::sitkVectorFloat32, std::vector< unsigned int > size=std::vector< unsigned int >(3, 64), 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 image of the physical locations of each pixel.
typelist2::typelist< VectorPixelID< int8_t >, VectorPixelID< uint8_t >, VectorPixelID< int16_t >, VectorPixelID< uint16_t >, VectorPixelID< int32_t >, VectorPixelID< uint32_t >, VectorPixelID< float >, VectorPixelID< double > > VectorPixelIDTypeList
PixelIDValueEnum
Enumerated values of pixelIDs.
#define SITKBasicFilters_EXPORT