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.in to make changes.
25 */
26
27#include <memory>
28
29#include "sitkBasicFilters.h"
30#include "sitkImageFilter.h"
31
32namespace itk::simple {
33
42 public:
44
47
51
54
55
56
57\
58
61 SITK_RETURN_SELF_TYPE_HEADER SetOutputPixelType ( PixelIDValueEnum OutputPixelType ) { this->m_OutputPixelType = OutputPixelType; return *this; }
62
66
69 SITK_RETURN_SELF_TYPE_HEADER SetSize ( std::vector<unsigned int> Size ) { this->m_Size = std::move(Size); return *this; }
70
73 std::vector<unsigned int> GetSize() const { return this->m_Size; }\
74
77 SITK_RETURN_SELF_TYPE_HEADER SetOrigin ( std::vector<double> Origin ) { this->m_Origin = std::move(Origin); return *this; }
78
81 std::vector<double> GetOrigin() const { return this->m_Origin; }\
82
85 SITK_RETURN_SELF_TYPE_HEADER SetSpacing ( std::vector<double> Spacing ) { this->m_Spacing = std::move(Spacing); return *this; }
86
89 std::vector<double> GetSpacing() const { return this->m_Spacing; }\
90
93 SITK_RETURN_SELF_TYPE_HEADER SetDirection ( std::vector<double> Direction ) { this->m_Direction = Direction; return *this; }
94
97 std::vector<double> GetDirection() const { return this->m_Direction; }
98
100 std::string GetName() const { return std::string ("PhysicalPointImageSource"); }
101
103 std::string ToString() const;
104
105
107
109
110
112 void SetReferenceImage(const Image & refImage );
113
114
115 private:
116
118
120 template <class TImageType> Image ExecuteInternal ( );
121
122
124
125 std::unique_ptr<detail::MemberFunctionFactory<MemberFunctionType> > m_MemberFactory;
126
127
128 PixelIDValueEnum m_OutputPixelType{itk::simple::sitkVectorFloat32};
129
130 std::vector<unsigned int> m_Size{std::vector<unsigned int>(3, 64)};
131
132 std::vector<double> m_Origin{std::vector<double>(3, 0.0)};
133
134 std::vector<double> m_Spacing{std::vector<double>(3, 1.0)};
135
136 /* 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. */
137 std::vector<double> m_Direction{std::vector<double>()};
138
139
140
141
142
143 };
144
145
146
155SITKBasicFilters_EXPORT 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>() );
156}
157#endif
The Image class for SimpleITK.
Definition sitkImage.h:77
void SetReferenceImage(const Image &refImage)
Self & SetDirection(std::vector< double > Direction)
Self & SetOutputPixelType(PixelIDValueEnum OutputPixelType)
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetSize(std::vector< unsigned int > Size)
Self & SetOrigin(std::vector< double > Origin)
Self & SetSpacing(std::vector< double > Spacing)
std::vector< unsigned int > GetSize() const
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